restaurant-photos
restaurant-photos
Page 18 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": 409,
"restaurantId": 76,
"url": "https://picsum.photos/seed/restaurant-76-2/1200/800",
"alt": "Grimes, Durgan and Grady interior photo 3",
"caption": "Admoveo maiores aro magnam vae nobis surgo comprehendo socius benigne.",
"isPrimary": false,
"createdAt": "2026-03-08T12:31:40.823Z"
},
{
"id": 410,
"restaurantId": 76,
"url": "https://picsum.photos/seed/restaurant-76-3/1200/800",
"alt": "Grimes, Durgan and Grady interior photo 4",
"caption": "Utilis supra supplanto deleniti tenetur amet patior quos.",
"isPrimary": false,
"createdAt": "2025-03-21T01:42:08.640Z"
},
{
"id": 411,
"restaurantId": 76,
"url": "https://picsum.photos/seed/restaurant-76-4/1200/800",
"alt": "Grimes, Durgan and Grady interior photo 5",
"caption": "Depereo confido nulla ultio adamo.",
"isPrimary": false,
"createdAt": "2025-03-19T07:11:44.863Z"
}
],
"meta": {
"page": 18,
"limit": 24,
"total": 555,
"totalPages": 24
},
"links": {
"self": "/api/v1/restaurant-photos?page=18&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=19&limit=24",
"prev": "/api/v1/restaurant-photos?page=17&limit=24"
}
}