Scope: Japan e-Gov catalog datasets.
Keyword search Japan e-Gov open-data catalog (refreshed weekly · FTS BM25;
catalog size and newest metadata_modified in _meta.catalog).
Args:
query: keyword(s) · 日本語 works best (e.g. "白書", "統計", "予算",
"農林業センサス", "厚生労働省"). English tags also indexed.
agency: 機關 —— 機關代碼(organization_name,例 "org_1700")或日文機關名稱
(例 "農林水産省")皆可;對不到時回錯誤並附最接近的機關(不會回 0 筆)。
不確定時先用 jp_list_agencies 查。
fmt: filter by resource format (e.g. "CSV", "XLSX", "PDF")
limit: max results (default 20 · raise to 50+ when scanning for
year variants or serial reports)
Empty query = browse the whole catalog, newest metadata_modified first.
total_matched always counts datasets containing every query word. When a
multi-word query has fewer than 3 such datasets, results fall back to
any-word matches (matching="any_term", count in total_matched_any_term).
matching: all_terms / any_term / browse / no_terms (query has no words).
Returns dict with total_matched (all datasets matching query + filters),
n_returned / count (rows in this response), and results, each row has:
name, id, title, notes, organization_name, organization_title,
license_id, license_title, license_source (per-dataset licence; several licences are
comma-separated in license_id; see _meta.catalog.license_note),
num_resources, tags, formats, metadata_modified, score (null when
browsing), url (e-Gov data portal page). name is what you pass to
jp_list_resources.