How we use it!

The dog Facts uses an External API whitch you can find below!


The AP system we use is make from kinduff

API Code

$site = 'https://dogapi.dog/api/v2/facts';
$page = file_get_contents($site);
$data = json_decode($page);

echo $data->data[0]->attributes->body);

the Json Data

We use External API.

   [
    {
   Dogs have a ligament in the neck which allows them to conserve energy while running long distances following scent trails with their nose to the ground. Many other species have a similar ligament and it is called a Paddywhack.
    }
  ]

What it Looks Like

The Expected Output

Dogs have a ligament in the neck which allows them to conserve energy while running long distances following scent trails with their nose to the ground. Many other species have a similar ligament and it is called a Paddywhack.