Search the PSA OpenSTAT catalog
search_psa_catalogSearch Philippine Statistics Authority OpenSTAT datasets by keyword to locate relevant data without manual browsing.
Instructions
Find a PSA OpenSTAT dataset by keyword, without browsing level by level.
Matches a case-insensitive substring against every dataset title and path in the catalog. The first call after a cold start walks the whole ~2,900-table tree and can take a few minutes. The flattened index then caches for 24 hours, so a later search answers from memory. Examples:
search_psa_catalog("fertility") datasets with "fertility" in the title or path search_psa_catalog("poverty incidence", limit=5) at most 5 matches
On failure: data_status is "invalid_request" for an empty keyword or a bad limit, and "unavailable" for an OpenSTAT outage during the catalog walk. validation_error or upstream_error is set to match. The real error sits in caveats. Neither failure is cached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matches to return (1-100, default 20). | |
| keyword | Yes | Case-insensitive substring to match against a dataset title or path, for example "fertility", "poverty incidence", "CPI". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| limit | No | ||
| source | Yes | Upstream data source name. | |
| caveats | Yes | ||
| keyword | Yes | ||
| license | No | ||
| matches | Yes | ||
| source_url | Yes | Canonical OpenSTAT URL used. | |
| data_status | No | ||
| match_count | Yes | ||
| upstream_error | No | True when OpenSTAT was unreachable. Not an empty result. | |
| total_available | No | ||
| validation_error | No | True when the caller's arguments were rejected before any request. | |
| data_retrieved_at | Yes |