example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 20 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": 457,
      "restaurantId": 83,
      "url": "https://picsum.photos/seed/restaurant-83-4/1200/800",
      "alt": "Roob - Fisher interior photo 5",
      "caption": "Conturbo contigo nisi tenax aestas.",
      "isPrimary": false,
      "createdAt": "2026-01-06T19:38:53.503Z"
    },
    {
      "id": 458,
      "restaurantId": 84,
      "url": "https://picsum.photos/seed/restaurant-84-0/1200/800",
      "alt": "Price LLC interior photo 1",
      "caption": "Doloribus admoveo patruus corroboro.",
      "isPrimary": true,
      "createdAt": "2026-01-12T00:22:43.810Z"
    },
    {
      "id": 459,
      "restaurantId": 84,
      "url": "https://picsum.photos/seed/restaurant-84-1/1200/800",
      "alt": "Price LLC interior photo 2",
      "caption": "Abeo tepidus degenero aetas canonicus aqua ad aufero.",
      "isPrimary": false,
      "createdAt": "2025-01-10T13:43:24.007Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=20&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=21&limit=24",
    "prev": "/api/v1/restaurant-photos?page=19&limit=24"
  }
}