Coverage over time
get_temporal_distributionCounts of matching items per year (or month) — the direct way to chart coverage trends over time instead of paging through search results. Defaults to articles; also works on publications, references, documents, audiovisual, and images. Accepts the same filters as the corresponding search_* tool (keyword = ONE substring over the subset's text fields, country, newspaper/series, subject, date range). Optional group_by=country|newspaper returns one distribution per group. Items dated only to a year keep a bare-year key even at month granularity; undated items are counted in undated_count, never dropped silently. Set calendar=hijri to bucket by the Islamic (Umm al-Qura) calendar instead — with granularity=lunar_month this collapses every year into the twelve lunar months, which is the ONLY way to see observance-driven coverage (Ramadan, Dhu al-Hijja/hajj, Shawwal/Korité): the lunar year drifts ~11 days against the Gregorian, so a Gregorian axis smears each observance across all twelve months. Hijri buckets need a full YYYY-MM-DD, so items dated only to a year or month are reported in imprecise_date_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subset | No | articles (default) | publications | references | documents | audiovisual | |
| country | No | Exact country name: Benin | Burkina Faso | Côte d'Ivoire | Niger | Nigeria | Togo (accents optional) | |
| date_to | No | YYYY-MM-DD (or YYYY) | |
| keyword | No | ONE French concept keyword (French/English for references); substring over the subset's text fields | |
| subject | No | Exact subject tag (pipe-aware) | |
| calendar | No | gregorian (default) | hijri — bucket by the Islamic (Umm al-Qura) calendar | |
| group_by | No | country | newspaper — one distribution per group value | |
| date_from | No | YYYY-MM-DD (or YYYY) | |
| newspaper | No | Newspaper (articles) or periodical/series title (publications) | |
| granularity | No | year (default) | month | lunar_month (all years collapsed into 12 lunar months; needs calendar=hijri) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| view | Yes | ||
| subset | Yes | ||
| filters | Yes | ||
| calendar | No | ||
| group_by | No | ||
| dated_count | Yes | ||
| granularity | Yes | ||
| distribution | No | ||
| month_labels | No | ||
| total_matches | Yes | ||
| undated_count | Yes | ||
| imprecise_date_count | No | ||
| distribution_by_group | No |