example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 17 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": 385,
      "restaurantId": 71,
      "url": "https://picsum.photos/seed/restaurant-71-3/1200/800",
      "alt": "Gislason Group interior photo 4",
      "caption": "Cibus armarium recusandae earum absconditus cernuus voluptatibus provident adicio.",
      "isPrimary": false,
      "createdAt": "2026-02-10T02:30:28.103Z"
    },
    {
      "id": 386,
      "restaurantId": 71,
      "url": "https://picsum.photos/seed/restaurant-71-4/1200/800",
      "alt": "Gislason Group interior photo 5",
      "caption": "Depraedor umerus depulso aliqua subiungo villa.",
      "isPrimary": false,
      "createdAt": "2024-12-23T21:18:47.906Z"
    },
    {
      "id": 387,
      "restaurantId": 72,
      "url": "https://picsum.photos/seed/restaurant-72-0/1200/800",
      "alt": "Schamberger LLC interior photo 1",
      "caption": "Sunt demonstro aedificium perferendis dedecor.",
      "isPrimary": true,
      "createdAt": "2024-12-31T14:09:29.698Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=17&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=18&limit=24",
    "prev": "/api/v1/restaurant-photos?page=16&limit=24"
  }
}