- By number — add
page=2,page=3… to the same request, as with most photo APIs. - With a cursor — pass back the
next_cursortoken the previous page gave you.
The pagination object
Every list response includes a pagination object next to your data:
| Field | Meaning |
|---|---|
per_page | How many photos are on each page. You choose this with per_page (1–100, default 20). |
has_more | true if there is at least one more page after this one. |
next_cursor | The token to pass as cursor to get the next page. It is null when has_more is false. |
total_results | How many results can be paged through. Filled in when you page with page; null otherwise. |
page, two more fields come back:
| Field | Meaning |
|---|---|
page | The page you received (1 is the first). |
next_page | The number to send as page for the next page, or null on the last one. |
Paging by number
Send the same request withpage=1, page=2, … and stop when next_page is null
(or has_more is false). page starts at 1.
Paging with a cursor
- Make your search as usual.
- Read
pagination.next_cursorfrom the response. - Repeat the same request, adding
cursor=<next_cursor>. - Stop when
has_moreisfalse(at that pointnext_cursorisnull).
Keep your query the same between pages. The cursor already remembers your search
text and filters, so you only need to add
cursor. Set per_page on the first
request; following pages keep that same page size. If you send both cursor and page,
the cursor wins.How deep you can go
A text search can be paged through up to its 100 best results — five pages of 20, or one page of 100. A search with filters only (noq) goes deeper. Past the last result,
data is an empty list and has_more is false. For more photos on a subject, vary the
wording of q rather than going further down the same list: the best matches are at the top.
limit is not the page size: it caps the total number of results across all pages.
Use per_page for the number of photos per page. An unknown parameter is ignored and named
in meta.warnings — see Errors & rate limits.Which endpoints paginate?
Three search endpoints support pagination:- Search photos by text —
GET /api/v1/search/photos(pageorcursor) - Search photos by picture —
POST /api/v1/search/photos(an upload, or aphoto_id;cursor) - Find similar photos —
GET /api/v1/photos/{photo_id}/similar(cursor)
pagination.next_cursor and pass it back as
cursor to get the next page, stopping when has_more is false. (On some plans the number
of similar photos is capped to a single page — in that case has_more is false from the
start.)
For image search, you only upload the image on the first request. To get the next
page, send the request again with just
cursor=<next_cursor> — no need to re-upload the
image. The cursor already remembers your image and filters.Searching with photo_id instead of an upload pages the same way. The per-plan cap on
similar photos applies to it too, so on a capped plan you get one page and has_more is
false.cursor: facets, collections
and usage return their full list directly.