example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 13 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": 289,
      "restaurantId": 53,
      "url": "https://picsum.photos/seed/restaurant-53-0/1200/800",
      "alt": "Heathcote Inc interior photo 1",
      "caption": "Video denego adimpleo ad denique.",
      "isPrimary": true,
      "createdAt": "2025-11-18T11:39:47.908Z"
    },
    {
      "id": 290,
      "restaurantId": 53,
      "url": "https://picsum.photos/seed/restaurant-53-1/1200/800",
      "alt": "Heathcote Inc interior photo 2",
      "caption": "Odit benevolentia coepi carus error nostrum nisi.",
      "isPrimary": false,
      "createdAt": "2025-07-14T16:40:08.569Z"
    },
    {
      "id": 291,
      "restaurantId": 53,
      "url": "https://picsum.photos/seed/restaurant-53-2/1200/800",
      "alt": "Heathcote Inc interior photo 3",
      "caption": "Delectus atrox verus sperno delicate.",
      "isPrimary": false,
      "createdAt": "2025-01-28T16:22:19.463Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=13&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=14&limit=24",
    "prev": "/api/v1/restaurant-photos?page=12&limit=24"
  }
}