example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 19 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": 433,
      "restaurantId": 79,
      "url": "https://picsum.photos/seed/restaurant-79-7/1200/800",
      "alt": "Howe, Kunde and Ortiz interior photo 8",
      "caption": "Aer carbo blandior ademptio cenaculum aureus comes depopulo sustineo causa.",
      "isPrimary": false,
      "createdAt": "2024-06-27T07:37:20.167Z"
    },
    {
      "id": 434,
      "restaurantId": 80,
      "url": "https://picsum.photos/seed/restaurant-80-0/1200/800",
      "alt": "Heathcote Group interior photo 1",
      "caption": "Demonstro terga vulgus officia vis caelum.",
      "isPrimary": true,
      "createdAt": "2025-07-09T04:29:44.397Z"
    },
    {
      "id": 435,
      "restaurantId": 80,
      "url": "https://picsum.photos/seed/restaurant-80-1/1200/800",
      "alt": "Heathcote Group interior photo 2",
      "caption": "Depromo temeritas delinquo compono sortitus denuncio.",
      "isPrimary": false,
      "createdAt": "2025-01-12T01:19:35.086Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=19&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=20&limit=24",
    "prev": "/api/v1/restaurant-photos?page=18&limit=24"
  }
}