Timezone API

API reference

Timezone HTTP endpoints on api.syndaq.com.

All Timezone endpoints are served from https://api.syndaq.com/v1/timezone/.

Authenticated requests require a valid Timezone key. Lookup routes require your tz_sec_ secret key.

Endpoints overview

MethodPathAuthPurpose
GET/v1/timezone/lookupSecret keyLookup by ?ip= query parameter
GET/v1/timezone/lookup/{ip}Secret keyLookup by IP in the URL path
GET/v1/timezone/statusPublic or secret keyPlan limits and quota snapshot

Response headers

Successful and error responses may include:

HeaderDescription
X-Request-IdUnique ID for support and log correlation
X-RateLimit-LimitPlan requests per minute for this key
X-RateLimit-RemainingRequests left in the current minute window
X-RateLimit-ResetUnix timestamp when the minute window resets
X-Quota-LimitMonthly quota for the subscription
X-Quota-RemainingLookups left this calendar month (UTC)
X-Quota-PeriodCurrent quota month (YYYY-MM)
Retry-AfterSeconds to wait after HTTP 429

GET /v1/timezone/lookup

Resolves timezone metadata for a public IP address.

Request

Pass the target IP using one of these forms:

GET /v1/timezone/lookup/8.8.8.8
GET /v1/timezone/lookup?ip=8.8.8.8

Headers:

Authorization: Bearer tz_sec_YOUR_SECRET_KEY

v1 scope

v1 returns IANA timezone and offset for a public IP, plus country/city when available. It does not perform reverse DNS or network intelligence beyond those fields.

Success response (200)

{
  "success": true,
  "ip": "8.8.8.8",
  "cached": true,
  "timezone": {
    "id": "America/Los_Angeles",
    "utc_offset": "-07:00",
    "abbreviation": "PDT"
  },
  "country": { "code": "US" },
  "city": "Mountain View",
  "request_id": "e6d04020be9b57b1e1069d6e483c0443"
}

Response fields

FieldTypeDescription
ipstringNormalized IP address that was looked up
cachedbooleantrue when Syndaq already holds a recent result for this lookup
timezone.idstringIANA timezone identifier when available
timezone.utc_offsetstringOffset from UTC (for example -07:00)
timezone.abbreviationstringShort abbreviation when available
country.codestringISO country code when available
citystringCity name when available

GET /v1/timezone/status

Returns key status, plan limits, and quota usage without performing a lookup.

Request

GET /v1/timezone/status
Authorization: Bearer tz_sec_YOUR_SECRET_KEY

The public key (tz_pub_) is accepted on this route.

Success response (200)

{
  "success": true,
  "status": "active",
  "product": "timezone",
  "plan": "starter",
  "rate_limit_per_minute": 120,
  "monthly_quota": 10000,
  "quota_unlimited": false,
  "quota_remaining": 9750,
  "quota_period": "2026-07"
}

Errors

Failed requests return JSON with success: false, error, error_code, and usually request_id.

HTTPerror_codeTypical cause
400invalid_ipMissing or malformed IP address
401missing_credentialsNo API key provided
401invalid_api_keyUnknown, inactive, or revoked key
401wrong_key_typePublic key used on a lookup endpoint
403ip_not_allowedCaller IP not on the key allowlist
422ip_not_routablePrivate, reserved, or non-routable address
429rate_limit_exceededPer-minute limit exceeded
429quota_exceededMonthly quota exhausted
502lookup_failedTemporary timezone lookup failure
500internal_errorUnexpected server error

Handle non-200 responses in your application and retry transient errors with exponential backoff.