Learn how to integrate random dog puppys into your applications using our simple API
Our puppy API is simple to integrate into your applications. Just make a GET request to the endpoint.
$url = 'https://api.sykes.pet/puppy'; $response = file_get_contents($url); $data = json_decode($response); $puppy = $data->puppy; echo $puppy;
fetch('https://api.sykes.pet/puppy')
.then(response => response.json())
.then(data => {
console.log(data.puppy);
// Display the puppy in your application
});
The API returns a JSON object with the following structure:
{
"data": {
"puppy": "Random dog puppy url",
"message": "please submit images via [email protected]"
"warning": "Do not use these direct urls, as they may change at any time."
}
}
Note: Message and Warning Fields don't change, they are always the same values, Not needed for production.
{
"data": {
"puppy": "https://api.sykes.pet/puppy/imgs/puppy95.jpg",
"message": "please submit images via [email protected]",
"warning": "No warning available"
}
}
We allow up to 100 requests per hour per IP address. If you need higher limits, please contact us.
"https://api.sykes.pet/puppy/imgs/puppy95.jpg"
Our public API provides random dog puppys sourced from various dog image repositories. Each request returns a new puppy image URL. Want to contribute? You can submit your own puppy images via email to [email protected].
The API is updated regularly with new puppys to keep your applications fresh and engaging.