/politico/facets

POST /api/politico/facets

Price: 1 credit

List the filter values POLITICO files its stories under: the policy sections, the topic, country and person tags with their identifiers, the author identifiers and the post types. Each value carries how many stories currently sit behind it, busiest first within each kind.

How to use it

List the POLITICO filter values. count caps how many values come back and kinds narrows to one or more of section, tag, author and post_type; ask for one kind at a time when you want a deep list of that kind. Each item has kind, value, name and article_count, busiest first within a kind. Feed value into politico/articles/search: section values go into sections, tag values into tag_ids, author values into author_ids and post_type values into post_types. Author values carry a null name — the index facets authors by identifier only — so read the author name off the authors[] of any story the id returns.

Parameters

Request body

Response

Errors

Response headers