example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 10 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": 217,
      "restaurantId": 38,
      "url": "https://picsum.photos/seed/restaurant-38-4/1200/800",
      "alt": "Hartmann, Dach and Kub interior photo 5",
      "caption": "Ipsum terra brevis sublime amitto victus.",
      "isPrimary": false,
      "createdAt": "2025-10-19T11:45:06.790Z"
    },
    {
      "id": 218,
      "restaurantId": 38,
      "url": "https://picsum.photos/seed/restaurant-38-5/1200/800",
      "alt": "Hartmann, Dach and Kub interior photo 6",
      "caption": "Civitas tribuo bene traho.",
      "isPrimary": false,
      "createdAt": "2024-07-04T20:13:52.718Z"
    },
    {
      "id": 219,
      "restaurantId": 38,
      "url": "https://picsum.photos/seed/restaurant-38-6/1200/800",
      "alt": "Hartmann, Dach and Kub interior photo 7",
      "caption": "Molestiae subito voluptas cuppedia versus umerus aeneus auctus concido.",
      "isPrimary": false,
      "createdAt": "2025-03-02T18:31:24.995Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=10&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=11&limit=24",
    "prev": "/api/v1/restaurant-photos?page=9&limit=24"
  }
}