example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 21 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": 481,
      "restaurantId": 89,
      "url": "https://picsum.photos/seed/restaurant-89-1/1200/800",
      "alt": "Weimann, Herzog and Wisoky interior photo 2",
      "caption": "Bis sol via conatus auctus auxilium aggredior adipiscor.",
      "isPrimary": false,
      "createdAt": "2025-09-29T21:27:02.515Z"
    },
    {
      "id": 482,
      "restaurantId": 89,
      "url": "https://picsum.photos/seed/restaurant-89-2/1200/800",
      "alt": "Weimann, Herzog and Wisoky interior photo 3",
      "caption": "Tamquam venustas reiciendis crapula deduco.",
      "isPrimary": false,
      "createdAt": "2025-04-22T12:10:12.804Z"
    },
    {
      "id": 483,
      "restaurantId": 89,
      "url": "https://picsum.photos/seed/restaurant-89-3/1200/800",
      "alt": "Weimann, Herzog and Wisoky interior photo 4",
      "caption": "Bonus sui possimus debilito tabella ait caste.",
      "isPrimary": false,
      "createdAt": "2024-11-25T10:21:47.144Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=21&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=22&limit=24",
    "prev": "/api/v1/restaurant-photos?page=20&limit=24"
  }
}