example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 4 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": 73,
      "restaurantId": 13,
      "url": "https://picsum.photos/seed/restaurant-13-2/1200/800",
      "alt": "Greenfelder LLC interior photo 3",
      "caption": "Asperiores depulso tonsor voluptate totam vilis ultra peccatus vulgo.",
      "isPrimary": false,
      "createdAt": "2025-08-28T09:13:05.787Z"
    },
    {
      "id": 74,
      "restaurantId": 13,
      "url": "https://picsum.photos/seed/restaurant-13-3/1200/800",
      "alt": "Greenfelder LLC interior photo 4",
      "caption": "Capillus officiis odit speculum voluptate terminatio.",
      "isPrimary": false,
      "createdAt": "2024-08-16T11:14:03.418Z"
    },
    {
      "id": 75,
      "restaurantId": 13,
      "url": "https://picsum.photos/seed/restaurant-13-4/1200/800",
      "alt": "Greenfelder LLC interior photo 5",
      "caption": "Credo tui subnecto curvo trucido cicuta inventore in sunt decipio.",
      "isPrimary": false,
      "createdAt": "2025-03-11T17:20:52.308Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=4&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=5&limit=24",
    "prev": "/api/v1/restaurant-photos?page=3&limit=24"
  }
}