restaurant-photos
restaurant-photos
Page 5 of 24.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/restaurant-photos?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/restaurant-photos?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/restaurant-photos.d.ts https://example-data.com/types/restaurant-photos.d.ts
import type { RestaurantPhoto, ListEnvelope } from "./types/restaurant-photos";
const res = await fetch(
"https://example-data.com/api/v1/restaurant-photos?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<RestaurantPhoto>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/restaurant-photos",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 97,
"restaurantId": 17,
"url": "https://picsum.photos/seed/restaurant-17-3/1200/800",
"alt": "Simonis, Reynolds and Harber interior photo 4",
"caption": "Aequus articulus vapulus ademptio avaritia.",
"isPrimary": false,
"createdAt": "2025-12-20T03:24:34.254Z"
},
{
"id": 98,
"restaurantId": 17,
"url": "https://picsum.photos/seed/restaurant-17-4/1200/800",
"alt": "Simonis, Reynolds and Harber interior photo 5",
"caption": "Vilitas tutis deleo valeo.",
"isPrimary": false,
"createdAt": "2024-11-03T16:20:38.065Z"
},
{
"id": 99,
"restaurantId": 17,
"url": "https://picsum.photos/seed/restaurant-17-5/1200/800",
"alt": "Simonis, Reynolds and Harber interior photo 6",
"caption": "Custodia adipiscor texo vomer valens cuius timor sed spoliatio.",
"isPrimary": false,
"createdAt": "2024-09-11T10:57:03.426Z"
}
],
"meta": {
"page": 5,
"limit": 24,
"total": 555,
"totalPages": 24
},
"links": {
"self": "/api/v1/restaurant-photos?page=5&limit=24",
"first": "/api/v1/restaurant-photos?page=1&limit=24",
"last": "/api/v1/restaurant-photos?page=24&limit=24",
"next": "/api/v1/restaurant-photos?page=6&limit=24",
"prev": "/api/v1/restaurant-photos?page=4&limit=24"
}
}