example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 7 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": 145,
      "restaurantId": 26,
      "url": "https://picsum.photos/seed/restaurant-26-2/1200/800",
      "alt": "Auer, Franey and Nicolas interior photo 3",
      "caption": "Conventus consequuntur cribro veritas audio caritas allatus.",
      "isPrimary": false,
      "createdAt": "2025-12-30T05:09:11.656Z"
    },
    {
      "id": 146,
      "restaurantId": 26,
      "url": "https://picsum.photos/seed/restaurant-26-3/1200/800",
      "alt": "Auer, Franey and Nicolas interior photo 4",
      "caption": "Earum anser patruus stipes harum aeternus cubicularis.",
      "isPrimary": false,
      "createdAt": "2024-08-19T20:11:58.438Z"
    },
    {
      "id": 147,
      "restaurantId": 26,
      "url": "https://picsum.photos/seed/restaurant-26-4/1200/800",
      "alt": "Auer, Franey and Nicolas interior photo 5",
      "caption": "Sulum patior tergo undique antiquus auxilium.",
      "isPrimary": false,
      "createdAt": "2025-09-20T19:23:45.403Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=7&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=8&limit=24",
    "prev": "/api/v1/restaurant-photos?page=6&limit=24"
  }
}