{"uid":"cap_IZ1LGKymDGyfnqIDmZaYv","slug":"date-math-city-time-zone-lookup-cf883089","name":"Date Math City Time Zone Lookup","description":"Date Math: Find the time zone and current local time in up to 10 cities by name (\"Cebu\", \"São Paulo\", \"Springfield\" + country). 7,000+ cities. Use for \"what time is it in\" questions and to get the IANA zone the other tools need.","url":"https://date-math.datemath.workers.dev/v1/city?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"at":{"type":"string","description":"ISO 8601 instant to show local time for; default now"},"city":{"type":"string","example":"Cebu"},"cities":{"type":"array","items":{"type":"string"},"maxItems":10,"minItems":1},"country":{"type":"string","example":"US","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days"}}},"responseSchema":{"type":"json","example":{"at":"2026-11-10T13:23:34.870Z","results":[{"best":{"name":"Cebu","match":"exact","region":"Cebu","country":"PH","weekday":"Tuesday","timezone":"Asia/Manila","local_time":"2026-11-10T21:23:34+08:00","population":806817,"utc_offset":"+08:00"},"found":true,"query":"Cebu","alternatives":[]}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_etJTRNm6GfHn70MeRdAE4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up the IANA time zone and current local time for up to 10 cities by name, returning timezone, UTC offset, weekday, and population data.","exampleAgentPrompt":"What's the IANA timezone and current local time for Cebu in the Philippines and São Paulo in Brazil?","exampleUseCases":[{"title":"Scheduling international team meeting","prompt":"I need to schedule a call with teammates in Lagos, Nigeria and Seoul, South Korea — can you tell me the current local time and timezone in each city so I can find a good overlap?"},{"title":"Display local time on a city dashboard","prompt":"For our travel app dashboard, what are the current local times and IANA timezone identifiers for New York US, London GB, Dubai AE, Singapore SG, and Sydney AU right now?"},{"title":"Disambiguate city timezone by country","prompt":"What timezone does Springfield use — I mean the one in the US state of Illinois? Give me the IANA identifier and current local time."}],"resultDescription":"Returns a JSON object with the lookup timestamp and an array of results, one per queried city. Each result includes the IANA timezone identifier (e.g. 'Asia/Manila'), current local time in ISO 8601 format with offset, UTC offset string, weekday name, region, country code, population, match quality (exact/fuzzy), and any alternative city matches if the name was ambiguous.","failureModes":["City name not found in database (found: false with empty alternatives)","Ambiguous city name without country code returns multiple alternatives rather than a single best match","Exceeding 10 cities in a single request returns a validation error","Invalid country code format (not 2-letter ISO alpha-2) causes a schema validation error","Very small or unofficial city names may not be in the 7,000+ city database"],"whenToPreferThis":"Use this endpoint when you need to resolve one or more city names to their IANA timezone identifiers and/or local times in a single call. It supports batch lookup of up to 10 cities, handles disambiguation via country code, and covers 7,000+ cities globally. Prefer this over manual timezone mapping or generic geocoding APIs when you need structured timezone metadata including UTC offset, weekday, and population without full geocoordinate lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:36:58.432Z","isFirstParty":false,"canonicalSlug":"date-math-city-time-zone-lookup-cf883089"}