Some API endpoints have pagination because of the large amount of data they could return. The default number of items per page is 20, and the pagination is achieved via a cursor.
The first query will return an object in following format
{
"data" : [],
"meta": {
"path" : "https://api-external.iconosquare.com/public/api/v1/social-profiles" ,
"per_page" : 20,
"next_cursor": "eyJzb2NpYWxfcHJvZmlsZXMuaWQiOjc3NzgsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"next_page_url": "https://api-external.iconosquare.com/public/api/v1/social-profiles?cursor=eyJzb2NpYWxfcHJvZmlsZXMuaWQiOjc3NzgsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"prev_cursor" => null
"prev_page_url" => null
}`
}You can then use the data contained in the meta section to paginate to the next page, either with next_page_url or by using the next_cursor and appending it to your request.