Marks Inc
korean · East Dena · $$ · ★ 4.1 (510)
3413 Windsor Close
- Phone
- +1 202-555-0153 ext 1
- Website
- https://marks-inc-54.example.com
Overview
restaurants / #54
korean · East Dena · $$ · ★ 4.1 (510)
3413 Windsor Close
Request
curl example
curl -sS \ "https://example-data.com/api/v1/restaurants/54" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/restaurants/54" ); 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/54"
);
const restaurant = (await res.json()) as Restaurant; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/restaurants/54"
)
restaurant = res.json() Response
{
"id": 54,
"name": "Marks Inc",
"slug": "marks-inc-54",
"cuisine": "korean",
"priceRange": "$$",
"rating": 4.1,
"ratingCount": 510,
"countryAlpha2": "PE",
"city": "East Dena",
"neighborhood": "County Down",
"address": "3413 Windsor Close",
"phone": "+1 202-555-0153 ext 1",
"website": "https://marks-inc-54.example.com",
"hasDelivery": true,
"isOpen": true,
"latitude": 50.990001,
"longitude": -154.618661,
"createdAt": "2024-05-27T23:38:53.107Z",
"updatedAt": "2024-05-27T23:38:53.107Z"
}