example-data.com
Menu
Browse docs and collections

restaurant-photos

restaurant-photos

Browse 555 restaurant-photos records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Showing first 6 of 24 on this page.

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": 1,
      "restaurantId": 1,
      "url": "https://picsum.photos/seed/restaurant-1-0/1200/800",
      "alt": "O'Hara and Sons interior photo 1",
      "caption": "Cuius ipsam turpis compello tyrannus contego astrum vinitor spero.",
      "isPrimary": true,
      "createdAt": "2025-07-18T05:21:16.975Z"
    },
    {
      "id": 2,
      "restaurantId": 1,
      "url": "https://picsum.photos/seed/restaurant-1-1/1200/800",
      "alt": "O'Hara and Sons interior photo 2",
      "caption": "Cognatus ad verecundia causa delinquo vereor labore.",
      "isPrimary": false,
      "createdAt": "2025-01-26T17:11:47.673Z"
    },
    {
      "id": 3,
      "restaurantId": 1,
      "url": "https://picsum.photos/seed/restaurant-1-2/1200/800",
      "alt": "O'Hara and Sons interior photo 3",
      "caption": "Ipsam decerno annus ultra magni consectetur adhaero.",
      "isPrimary": false,
      "createdAt": "2025-03-19T10:10:35.067Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 555,
    "totalPages": 23
  },
  "links": {
    "self": "/api/v1/restaurant-photos?page=1",
    "first": "/api/v1/restaurant-photos?page=1",
    "last": "/api/v1/restaurant-photos?page=23",
    "next": "/api/v1/restaurant-photos?page=2",
    "prev": null
  }
}

View full response →