example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 23 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": 529,
      "restaurantId": 96,
      "url": "https://picsum.photos/seed/restaurant-96-3/1200/800",
      "alt": "Effertz, Pagac and Price interior photo 4",
      "caption": "Angustus appono aer decens tabernus.",
      "isPrimary": false,
      "createdAt": "2025-01-10T17:05:22.282Z"
    },
    {
      "id": 530,
      "restaurantId": 96,
      "url": "https://picsum.photos/seed/restaurant-96-4/1200/800",
      "alt": "Effertz, Pagac and Price interior photo 5",
      "caption": "Beatus usque pel amplus incidunt defetiscor accedo.",
      "isPrimary": false,
      "createdAt": "2026-03-05T18:28:20.656Z"
    },
    {
      "id": 531,
      "restaurantId": 96,
      "url": "https://picsum.photos/seed/restaurant-96-5/1200/800",
      "alt": "Effertz, Pagac and Price interior photo 6",
      "caption": "Sodalitas compello suasoria deleniti clarus absum condico.",
      "isPrimary": false,
      "createdAt": "2024-09-03T14:06:04.184Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=23&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=24&limit=24",
    "prev": "/api/v1/restaurant-photos?page=22&limit=24"
  }
}