example-data.com
Menu
Browse docs and collections

Overview

stores / #20

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stores/20"
);
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/20"
);
const store = (await res.json()) as Store;

Python example

import requests

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

Response

{
  "id": 20,
  "name": "Altenwerth Inc",
  "slug": "altenwerth-inc-20",
  "description": "Expanded value-added collaboration",
  "address": "628 Lenore Hill",
  "city": "South Valley",
  "region": "Maine",
  "countryAlpha2": "FI",
  "postalCode": "11083-9085",
  "phone": "+1 202-555-0119 ext 1",
  "website": "https://example.com/stores/altenwerth-inc",
  "hours": "Mon-Thu 9am-7pm, Fri-Sat 9am-9pm, Sun Closed",
  "createdAt": "2025-03-09T22:49:09.164Z"
}