example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 15 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": 337,
      "restaurantId": 62,
      "url": "https://picsum.photos/seed/restaurant-62-5/1200/800",
      "alt": "Douglas Group interior photo 6",
      "caption": "Conicio dicta defluo depulso tyrannus excepturi vespillo vinum vespillo.",
      "isPrimary": false,
      "createdAt": "2026-03-14T23:11:16.903Z"
    },
    {
      "id": 338,
      "restaurantId": 62,
      "url": "https://picsum.photos/seed/restaurant-62-6/1200/800",
      "alt": "Douglas Group interior photo 7",
      "caption": "Quibusdam chirographum tempore eius bis.",
      "isPrimary": false,
      "createdAt": "2025-03-07T08:52:47.238Z"
    },
    {
      "id": 339,
      "restaurantId": 63,
      "url": "https://picsum.photos/seed/restaurant-63-0/1200/800",
      "alt": "Gerhold - Dietrich interior photo 1",
      "caption": "Corrupti cultellus aestus congregatio vox voluptatem.",
      "isPrimary": true,
      "createdAt": "2026-02-01T15:21:58.450Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=15&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=16&limit=24",
    "prev": "/api/v1/restaurant-photos?page=14&limit=24"
  }
}