Fetch data
fetch_dataFetches one data response: GET data.openweathermap.org/{product}/{route} with the query parameters you pass, using the data key from your client configuration's Authorization header or the data_key argument — never the secret, which fetches nothing. A successful call is billed the product's price per call; a refused call costs nothing. The result carries the payload with the platform's meta block (licence and attribution) and the response headers x-cost-charged and x-cost-remaining. Every refusal is the platform's error envelope unchanged — a code from https://agents.openweathermap.org/errors.json; 402 payment_required means the balance is spent and a human tops up at its action_url (get_topup_link returns the page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | a route from get_product, without the product prefix — e.g. current or timeline/1h | |
| params | No | query parameters, sent as given; the parameters a route requires are in get_product | |
| product | Yes | a product slug from list_products | |
| data_key | No | only when the client cannot send an Authorization header — the data_key.key sign_up returned in this session; when both are present the argument wins |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| fault | No | ||
| usage | No | ||
| record | No | ||
| status | No | ||
| account | No | ||
| headers | No | ||
| upstream | No | ||
| body_text | No | ||
| configure | No | ||
| transport | No | ||
| key_source | No | ||
| request_id | Yes |