AgentAPIGate
Back to Catalog
GET /v1/weather/forecast/globalPack: local·MCP Tool: weather_forecast_global

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.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
City or region name (e.g. "San Francisco", "Tokyo", "London", "New York")
Optional WGS84 latitude when querying exact coordinates
Optional WGS84 longitude when querying exact coordinates
Forecast horizon in days (1-14)
Temperature & wind unit system: metric (°C, km/h) or imperial (°F, mph)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-70% tokens
# 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
ParameterTypeReqSample / DefaultDescription
citystringoptionalSan FranciscoCity or region name (e.g. "San Francisco", "Tokyo", "London", "New York")
latitudenumberoptional—Optional WGS84 latitude when querying exact coordinates
longitudenumberoptional—Optional WGS84 longitude when querying exact coordinates
daysnumberoptional7Forecast horizon in days (1-14)
unitsstringoptionalmetricTemperature & wind unit system: metric (°C, km/h) or imperial (°F, mph)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolweather_forecast_globalOAuth 2.1 Hub & /mcp/local
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency476 ms$0 billed on empty or 4xx/5xx
Token Economy982t → 292t (-70%)Partner credit: eligible

More Maps & Reviews Real-Time APIs

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.