example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Page 12 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": 265,
      "restaurantId": 47,
      "url": "https://picsum.photos/seed/restaurant-47-3/1200/800",
      "alt": "Pouros, O'Reilly and Block interior photo 4",
      "caption": "Vito vitiosus delego ubi celer reprehenderit colo perspiciatis.",
      "isPrimary": false,
      "createdAt": "2025-03-24T16:14:35.066Z"
    },
    {
      "id": 266,
      "restaurantId": 47,
      "url": "https://picsum.photos/seed/restaurant-47-4/1200/800",
      "alt": "Pouros, O'Reilly and Block interior photo 5",
      "caption": "Fugit tero altus arcesso vere.",
      "isPrimary": false,
      "createdAt": "2025-11-09T23:38:01.807Z"
    },
    {
      "id": 267,
      "restaurantId": 47,
      "url": "https://picsum.photos/seed/restaurant-47-5/1200/800",
      "alt": "Pouros, O'Reilly and Block interior photo 6",
      "caption": "Coerceo tutamen cena trepide somnus truculenter comis crudelis pecco speciosus.",
      "isPrimary": false,
      "createdAt": "2024-11-20T16:59:59.083Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 555,
    "totalPages": 24
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=12&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=13&limit=24",
    "prev": "/api/v1/restaurant-photos?page=11&limit=24"
  }
}