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.
[
{
Chocolate contains a substance known as theobromine (similar to caffeine) which can kill dogs or, at the very least, make them violently ill.
}
]
The Expected Output
Chocolate contains a substance known as theobromine (similar to caffeine) which can kill dogs or, at the very least, make them violently ill.