example-data.com
Menu
Browse docs and collections

Overview

stores / #27

Barton LLC

store · Eugeneport

24427 The Beeches

Hours
24/7
Phone
+1 202-555-0126 ext 1

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stores/27"
);
const store = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/stores/27"
);
const store = (await res.json()) as Store;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/stores/27"
)
store = res.json()

Response

{
  "id": 27,
  "name": "Barton LLC",
  "slug": "barton-llc-27",
  "description": "Fully-configurable regional data-warehouse",
  "address": "24427 The Beeches",
  "city": "Eugeneport",
  "region": "Ohio",
  "countryAlpha2": "IN",
  "postalCode": "32485-0391",
  "phone": "+1 202-555-0126 ext 1",
  "website": null,
  "hours": "24/7",
  "createdAt": "2022-06-16T00:50:36.545Z"
}