Weatherstack Integration¶
Official Weatherstack API Documentation
Weatherstack provides current, historical, forecast, and location lookup weather data. Use KeyPool to call Weatherstack with your team token and a stable base URL.
Endpoint¶
{YOUR_KEYPOOL_BASE_URL}/v1/weatherstack
Authentication¶
Send your KeyPool team token as a bearer token. Do not pass an upstream access_key query parameter.
Authorization: Bearer {KEYPOOL_TOKEN}
Quick Start¶
Current Weather¶
curl -G "${KEYPOOL_BASE_URL}/v1/weatherstack/current" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}" \
--data-urlencode "query=San Francisco" \
--data-urlencode "units=m"
Forecast¶
curl -G "${KEYPOOL_BASE_URL}/v1/weatherstack/forecast" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}" \
--data-urlencode "query=London" \
--data-urlencode "forecast_days=3"
Common Endpoints¶
| Endpoint | Purpose |
|---|---|
/current |
Current weather for a city, coordinates, or IP address |
/historical |
Historical weather for a location and date |
/forecast |
Forecast weather for a location |
/autocomplete |
Location autocomplete |
Interactive API Reference¶
For in-browser testing, see API Reference -> Weatherstack.