Search Parameters
limit
All search routes allow a limit
parameter, which will limit the amount of results that are returned. This can be anywhere between 0
and 320
. Values below 0
do nothing special. Values above 320
silently act like 320
. If not specified, your default in your user settings will be used (if using an api key). Otherwise, 75
will be used.
page
All search routes allow a page
parameter, which will paginate through the entries to the specified page. Pages can be specified as numbers up to 750*, or via a/b syntax with no restrictions.
a
- after, the id of an entry to get results after. e.g. a1234
b
- before, the id of an entry to get results before. e.g. b1234
* - /post_versions
is a special snowflake, only entries within the most recent 10,000 can be paginated via numbers (501 when limit=20, 133 when limit=75, 31 when limit=320).
See Numbered Pagination Too High for related errors.
search[id]
Most search endpoints accept a search[id]
parameter to pinpoint specific entries. While not entirely useful in most situations, this is especially useful for Artist Versions, which does not have a /artist_versions/:id
endpoint.
A comma separated list, or a range (X..Y
) can be used to fetch multiple entries by id.
search[created_at] & search[updated_at]
Most search endpoints accept both search[created_at]
& search[updated_at]
. These both accept an ISO 8601 timestamp for which results will be limited to within a 24 hour period, starting at 05:00:00
UTC the previous day and ending at 4:59:59.999999
UTC that day. The hms of the timestamp have no effect on the window.
search[*_name] & search[*_id]
Most endpoints that accept a *_name
(e.g. creator_name
), or *_id
(e.g. updater_id
) parameter typically accept the other as another parameter.
search[ip_addr]
Authentication Required
Admin+ Required
The ip address of a user relating to the content. Typically creator or updater. See postgres' documentation for information on how this is parsed. Specifically, "is contained within or equals" (<<=
)
Last updated