Buyer-controlled x402 recipeFind a city and convert a UTC timestamp to local time
Find a city or locality in GeoNames, confirm the intended place, and use its IANA time zone to convert an offset-aware timestamp to local time.
2separately authorized steps
$0.004maximum listed total · USDC
eip155:8453 + solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdppayment networks
1$0.002 USDC · separate authorization
Global place geocode
Find place candidates and their IANA time zones.
POSThttps://apiacre.com/v1/data/place-geocode
Input template
{
"place": "$cityAndCountry",
"limit": 5
}
Use this resultCompare the candidates' country, region and GeoNames ID. Copy the time zone from your chosen place for step 2.
2$0.002 USDC · separate authorization
IANA timezone conversion
Convert your timestamp using the selected IANA time zone.
POSThttps://apiacre.com/v1/data/timezone-convert
Input template
{
"timestamp": "$timestampWithUtcOffset",
"target_timezone": "$selectedPlaceTimezone"
}
Use this resultReplace the example timestamp and zone with your values. Use the returned local timestamp and UTC offset. Check the IANA data version and transition times when scheduling across clock changes.
You stay in control. Each step is an independent API call. Inspect its HTTP 402 challenge, authorize no more than the displayed price, verify the result, and continue only when the output is suitable. The listed total is not a bundle charge.