SocialiQDocs

Core concepts

Pagination

Every list and search endpoint is cursor-paginated. When page.has_more is true, pass page.next_cursor back as ?cursor=. Stop when has_more is false.

Cursor loop

[ .JS ]
let cursor;do {  const url = new URL("https://api.socialiq.dev/v1/tiktok/posts/7350810998023949599/comments");  if (cursor) url.searchParams.set("cursor", cursor);  const res = await fetch(url, { headers: { Authorization: "Bearer sc_live_..." } });  const { data, page } = await res.json();  handle(data.items);  cursor = page?.has_more ? page.next_cursor : undefined;} while (cursor);