faostat_get_datasize
Estimate the number of rows a FAOSTAT query will return before fetching, allowing you to verify query size and avoid overly large responses.
Instructions
Estimate the number of rows a data query will return BEFORE fetching. Use this to check if a query is too large before calling faostat_get_data. Accepts the same filter parameters as faostat_get_data.
Args: domain_code: Domain code (e.g. 'QCL', 'TM', 'FS') lang: Language code (default: 'en') area: Country/area codes, comma-separated element: Element filter codes, comma-separated item: Item/commodity codes, comma-separated year: Year codes, comma-separated area_cs: Area code set name element_cs: Element code set name item_cs: Item code set name year_cs: Year code set name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_code | Yes | ||
| lang | No | en | |
| area | No | ||
| element | No | ||
| item | No | ||
| year | No | ||
| area_cs | No | ||
| element_cs | No | ||
| item_cs | No | ||
| year_cs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |