Skip to content
Signal
Dashboard

Paginate a list

Read all records with a stable cursor and fixed filters.

List operations return data and next_cursor. Continue with the cursor until it is null.

Before you start

  • Complete the HTTP quickstart. Set LINKT_API_URL and LINKT_API_KEY.
  • Create a campaign. Set CAMPAIGN_ID to the returned id.
  • Use an API key with effective permissions for the reads and changes in this guide. See Permissions.
  • This procedure starts no research and uses no credits.

Steps

Read the first page

curl --fail-with-body --request GET "$LINKT_API_URL/v2/accounts?campaign_id=$CAMPAIGN_ID&limit=5" \
  --header "x-api-key: $LINKT_API_KEY"

API reference: search_accounts

Read the next page

Keep the same campaign_id, filters and limit. Add cursor with the exact next_cursor from the response. URL-encode the cursor. Stop when next_cursor is null.

Rules: Pagination.

Next steps

On this page