example-data.com
Menu
Browse docs and collections

restaurants

restaurants

Page 2 of 5.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/restaurants?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/restaurants?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/restaurants.d.ts https://example-data.com/types/restaurants.d.ts
import type { Restaurant, ListEnvelope } from "./types/restaurants";

const res = await fetch(
  "https://example-data.com/api/v1/restaurants?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Restaurant>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 25,
      "name": "Schowalter - McKenzie",
      "slug": "schowalter-mckenzie-25",
      "cuisine": "thai",
      "priceRange": "$",
      "rating": 3.7,
      "ratingCount": 760,
      "countryAlpha2": "BE",
      "city": "Great Falls",
      "neighborhood": "Northamptonshire",
      "address": "6103 Park Crescent",
      "phone": "+1 202-555-0124 ext 1",
      "website": null,
      "hasDelivery": true,
      "isOpen": true,
      "latitude": -35.883785,
      "longitude": 55.465554,
      "createdAt": "2026-03-12T07:04:50.920Z",
      "updatedAt": "2026-03-12T07:04:50.920Z"
    },
    {
      "id": 26,
      "name": "Auer, Franey and Nicolas",
      "slug": "auer-franey-and-nicolas-26",
      "cuisine": "american",
      "priceRange": "$$$$",
      "rating": 4.1,
      "ratingCount": 1217,
      "countryAlpha2": "CN",
      "city": "Lake Kacey",
      "neighborhood": "Somerset",
      "address": "68321 Jakubowski Land",
      "phone": "+1 202-555-0125 ext 1",
      "website": null,
      "hasDelivery": true,
      "isOpen": true,
      "latitude": 2.258459,
      "longitude": -82.294269,
      "createdAt": "2025-11-06T10:26:04.251Z",
      "updatedAt": "2025-11-06T10:26:04.251Z"
    },
    {
      "id": 27,
      "name": "Mohr, Treutel and Watsica",
      "slug": "mohr-treutel-and-watsica-27",
      "cuisine": "french",
      "priceRange": "$$$$",
      "rating": 4.6,
      "ratingCount": 2266,
      "countryAlpha2": "AU",
      "city": "East Felipa",
      "neighborhood": "Jefferson County",
      "address": "7233 E Park Avenue",
      "phone": "+1 202-555-0126 ext 1",
      "website": null,
      "hasDelivery": true,
      "isOpen": true,
      "latitude": -23.865459,
      "longitude": 55.604662,
      "createdAt": "2025-02-21T04:18:12.371Z",
      "updatedAt": "2025-02-21T04:18:12.371Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 100,
    "totalPages": 5
  },
  "links": {
    "self": "/api/v1/restaurants?page=2&limit=24",
    "first": "/api/v1/restaurants?page=1&limit=24",
    "last": "/api/v1/restaurants?page=5&limit=24",
    "next": "/api/v1/restaurants?page=3&limit=24",
    "prev": "/api/v1/restaurants?page=1&limit=24"
  }
}