America/Phoenix
MST
Overview
time-zones / #7
MST
America/Phoenix
MST
Request
curl example
curl -sS \ "https://example-data.com/api/v1/time-zones/7" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/time-zones/7" ); const timeZone = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/time-zones.d.ts https://example-data.com/types/time-zones.d.ts
import type { TimeZone } from "./types/time-zones";
const res = await fetch(
"https://example-data.com/api/v1/time-zones/7"
);
const timeZone = (await res.json()) as TimeZone; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/time-zones/7"
)
time_zone = res.json() Response
{
"id": 7,
"name": "America/Phoenix",
"offsetMinutes": -420,
"abbreviation": "MST",
"countryAlpha2": "US"
}