Rank a field's values
get_field_distributionRank the values of one multi-valued field across a filtered set — the direct way to answer 'which places does this coverage name most', 'who signs these articles', 'what subjects dominate'. Pipe-joined fields (subject, spatial, author, language, country) are split, so an article tagged 'Prière|Ramadan' counts once for each. Optional over_time adds the per-year share of items that carry ANY value for the field, which is how you see e.g. bylines appearing as the press professionalises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | subject | spatial | author | language | newspaper | country | |
| top_n | No | Values returned (default 25, max 100) | |
| subset | No | articles (default) | publications | references | |
| 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; substring over the subset's text fields | |
| subject | No | Exact subject tag (pipe-aware) | |
| date_from | No | YYYY-MM-DD (or YYYY) | |
| newspaper | No | Newspaper (articles) or periodical/series title (publications) | |
| over_time | No | Also return the per-year share of items carrying a value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| view | Yes | ||
| field | Yes | ||
| subset | Yes | ||
| values | Yes | ||
| filters | Yes | ||
| other_values | No | ||
| total_matches | Yes | ||
| distinct_values | Yes | ||
| coverage_by_year | No | ||
| items_with_value | Yes |