The dog Facts uses an External API whitch you can find below!
The AP system we use is make from kinduff
$site = 'https://dogapi.dog/api/v2/facts'; $page = file_get_contents($site); $data = json_decode($page); echo $data->data[0]->attributes->body);
We use External API.
[
{
The smallest dog on record was a matchbox-size Yorkshire Terrier. It was 2.5" tall at the shoulder, 3.5" from nose tip to tail, and weighed only 4 ounces.
}
]
The Expected Output
The smallest dog on record was a matchbox-size Yorkshire Terrier. It was 2.5" tall at the shoulder, 3.5" from nose tip to tail, and weighed only 4 ounces.