- Core API's
- >
- Photos API
- >
- Photos - Show
Photos - Show API
Get the specified Photo.
Method GET
Parameters
Name | Details | Type | Required |
---|---|---|---|
id
|
The ID of the Photo. | integer | Yes |
How to Use
fetch('https://simplecrudapi.com/api/photos/1')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
Response
{
"data": {
"id": 1,
"title": "Sunset Over the Ocean",
"description": "A breathtaking view of the sunset over the ocean, captured during a peaceful evening walk. The vibrant colors and tranquil waves create the perfect harmony.",
"url": "https:\/\/via.placeholder.com\/640x480.png\/000088?text=Sunset",
"uploaded_at": "2024-11-09 20:09:42"
}
}
Try Now
fetch('https://simplecrudapi.com/api/photos/1')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));