posts

Count posts matching a tag search

Changed on

Returns an approximate number of posts matching the search. The count is capped. capped reports whether the cap was hit.

get/posts/count.json

Request

  • Base URL: https://e621.net
  • URL: https://e621.net/posts/count.json
  • Auth: one of:
    • none
    • HTTP basic
    • API key in query parameter login and API key in query parameter api_key

Query parameters

tagsstring

The tag search to count. Defaults to an empty search.

Response

The approximate post count

countinteger required

The number of matching posts, up to the cap

cappedboolean required

Whether the count hit the cap and is only a lower bound

Changes