example-data.com
Menu
Browse docs and collections

Overview

restaurants / #98

Aufderhar - Johns

indian · East Lorenside · $$$$ · ★ 4.5 (404)

15989 O'Conner Bridge

Phone
+1 202-555-0197 ext 1

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/restaurants/98" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/98"
);
const restaurant = 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 } from "./types/restaurants";

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/98"
);
const restaurant = (await res.json()) as Restaurant;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants/98"
)
restaurant = res.json()

Response

{
  "id": 98,
  "name": "Aufderhar - Johns",
  "slug": "aufderhar-johns-98",
  "cuisine": "indian",
  "priceRange": "$$$$",
  "rating": 4.5,
  "ratingCount": 404,
  "countryAlpha2": "PL",
  "city": "East Lorenside",
  "neighborhood": "Staffordshire",
  "address": "15989 O'Conner Bridge",
  "phone": "+1 202-555-0197 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -42.551374,
  "longitude": -63.166326,
  "createdAt": "2025-04-02T03:04:30.195Z",
  "updatedAt": "2025-04-02T03:04:30.195Z"
}