{"uid":"cap_M7PcncANQpyR4fwf-Zzgo","slug":"eu-weather-geo-x402-city-geocoding-f8b0bc47","name":"EU Weather & Geo (x402) — City Geocoding","description":"Weather and geo utilities for AI agents, paid per call in USDC via x402 (no account, no API key): current weather and up-to-9-day daily forecasts for any city or lat/lon (MET Norway open data, CC BY 4.0), city geocoding with time zones (GeoNames, CC BY 4.0) and sunrise/sunset. Errors are never charged.","url":"https://eu-weather-geo.frcompanycheck.workers.dev/v1/geo/city?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","example":"Lyon","description":"City name, optionally ',CC'"},"limit":{"type":"integer","description":"1-20 (default 5)"},"country":{"type":"string","description":"ISO country code filter"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"query":"Lyon","results":[{"lat":45.7485,"lon":4.8467,"name":"Lyon","capital":false,"country":"FR","timezone":"Europe/Paris","population":522250}]}},"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_C5jFh5blekzhlPO0M0ZD6","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":"Geocodes a city name to latitude, longitude, country, timezone, and population data using GeoNames open data, paid per call in USDC via x402.","exampleAgentPrompt":"What are the coordinates and timezone for Lyon, France? I want up to 3 matching cities returned.","exampleUseCases":[{"title":"Resolve city before fetching weather","prompt":"I need to get the latitude, longitude, and timezone for Munich, Germany before pulling a weather forecast — can you look that up and give me the top result?"},{"title":"Find city coordinates for scheduling","prompt":"What's the timezone for Lisbon, Portugal? I'm trying to schedule a meeting and need to know the local time zone there."},{"title":"Disambiguate city name with country filter","prompt":"Look up Santiago — but filter to Chile only — and give me its coordinates and population. I want up to 5 results."}],"resultDescription":"Returns a JSON object with the query string and an array of matching city results, each containing latitude, longitude, city name, country code (e.g. 'FR'), capital flag, IANA timezone string (e.g. 'Europe/Paris'), and population count.","failureModes":["City name not found — empty results array returned, no charge","Invalid or misspelled query returns zero results","Country filter mismatch returns empty results","Limit parameter out of range (must be 1-20) may return error or default","x402 payment failure means request is not processed and no charge is incurred"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call city geocoder with no API key or account setup, especially when you also need timezone data alongside coordinates. Ideal for AI agents that need to resolve a city name before calling the weather forecast sibling endpoints on the same service. Compared to full geocoding APIs, it is optimized for city-level lookup rather than street-level address resolution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:38:18.181Z","isFirstParty":false,"canonicalSlug":"eu-weather-geo-x402-city-geocoding-f8b0bc47"}