Obtaining total article counts for each month

28 views
Skip to first unread message

Jan Snajder

unread,
Apr 30, 2026, 5:00:17 AM (6 days ago) Apr 30
to Guardian Open Platform API Forum
Hi everyone,

Is there an API endpoint I could use to obtain the total number of articles per month? I guess I could use /search with a generic keyword (one that passes the stopword list, though), but this seems very awkward, especially since I don't need the content itself, only the counts.

Cheers,
Jan

Guardian Open Platform API Forum

unread,
May 1, 2026, 10:33:23 AM (5 days ago) May 1
to Guardian Open Platform API Forum
Hello,

We don't provide an aggregation that will do this in a single query. You'll need to run a query like this one:


for every month that you're interested in. You'll get a response that includes a "total' field, that value is what you're looking for.

Hope this helps,
The Open Platform team

Jan Snajder

unread,
May 5, 2026, 5:54:32 AM (yesterday) May 5
to Guardian Open Platform API Forum
Great, thanks so much!
Cheers,
Jan
Reply all
Reply to author
Forward
0 new messages