Global Weather Forecast & Real-Time Current Conditions
Get real-time current weather, temperature, feels-like, humidity, wind speed, precipitation, and multi-day weather forecast for any global city or coordinates.
curl -sG "https://api.agentapigate.ai/v1/weather/forecast/global" \ --data-urlencode "city=San Francisco" \ --data-urlencode "days=7" \ --data-urlencode "units=metric" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Global Weather Forecast & Real-Time Current Conditions (`weather.forecast.global`) **location_name**: San Francisco · **country**: United States · **timezone**: America/Los_Angeles ## current - **observed_at**: 2026-11-27T10:15 - **condition**: Overcast - **weather_code**: 3 - **temperature**: 13.7 - **feels_like**: 13.3 - **humidity_pct**: 90 - **wind_speed**: 7.1 - **precipitation_mm**: 0 ## daily_forecast - [1] date: 2026-11-27, condition: Overcast, weather_code: 3, temp_max: 15.6, temp_min: 9.2 - [2] date: 2026-11-28, condition: Overcast, weather_code: 3, temp_max: 17.6, temp_min: 11.4 - [3] date: 2026-11-29, condition: Moderate rain showers, weather_code: 81, temp_max: 17.8, temp_min: 13.7 - [4] date: 2026-11-30, condition: Light drizzle, weather_code: 51, temp_max: 16.3, temp_min: 13.7 - [5] date: 2026-12-01, condition: Light drizzle, weather_code: 51, temp_max: 16.2, temp_min: 12.5 - [6] date: 2026-12-02, condition: Overcast, weather_code: 3, temp_max: 17, temp_min: 11.8 - [7] date: 2026-12-03, condition: Overcast, weather_code: 3, temp_max: 16.1, temp_min: 11.8
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:weather.forecast.global · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| city | string | optional | San Francisco | City or region name (e.g. "San Francisco", "Tokyo", "London", "New York") |
| latitude | number | optional | — | Optional WGS84 latitude when querying exact coordinates |
| longitude | number | optional | — | Optional WGS84 longitude when querying exact coordinates |
| days | number | optional | 7 | Forecast horizon in days (1-14) |
| units | string | optional | metric | Temperature & wind unit system: metric (°C, km/h) or imperial (°F, mph) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | weather_forecast_global | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 476 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 982t → 292t (-70%) | Partner credit: eligible |
More Maps & Reviews Real-Time APIs
Search Google Maps places and local businesses with ratings, review counts, addresses, phones, and websites.
Inspect detailed place profile, operating hours, contact links, and coordinates for a business name and city.
Fetch recent customer ratings, review titles, app versions, and review text from the Apple iOS App Store.
Inspect company TrustScore rating, review count, and recent verified customer reviews on Trustpilot.
Search real-time hotel availability, total stay pricing, guest review scores, star class, and check-in windows by city destination and dates.
Inspect live FAA National Airspace System (NAS) airport ground stops, arrival/departure delays, and carrier flight-number routing metadata (commercial ADS-B live track feed in partner onboarding preview).
Frequently Asked Questions
How do I call Global Weather Forecast & Real-Time Current Conditions (weather.forecast.global) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/weather/forecast/global with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool weather_forecast_global on https://mcp.agentapigate.ai/mcp.
What does weather.forecast.global cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on weather.forecast.global?
Passing ?format=md transforms the response into normalized Markdown (~292 tokens vs ~982 raw tokens, saving 70% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["weather.forecast.global"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.