Skip to main content
This guide continues the extraction workflow after results are ready.

Data handoff

App or API pipeline

Use GET /extractions/{id}. Store job, results, hasMore, nextCursor. Use limit up to 1,000 and pass nextCursor as cursor. Use compact output for core fields and tweet counts.

CRM import

Use GET /extractions/{id}/export?format=csv. Store User ID, Username, Display Name, Followers, and Verified. Upsert by stable X user ID when possible.

Warehouse or queue

Use GET /extractions/{id}/export?format=json or paginated JSON. Store xUserId, xUsername, tweetId, tweetText, createdAt. Keep the extraction ID with each load for replay and audit.

Analyst review

Use GET /extractions/{id}/export?format=xlsx. Store export columns plus enrichment fields. Use CSV or JSON for automation and XLSX for manual review.
File exports and paginated JSON both reach every row. A PDF above 10,000 rows comes as a ZIP of PDF parts.

Option A. Paginate via API

Fetch results in pages of up to 1,000 records. Follow nextCursor until hasMore is false.

Durable JSON Lines handoff

Some queues, warehouses, or agents need replayable rows. For those, use JSON Lines. Write each paginated result with the cursor state that produced it.
Store rows in xquik-extraction-results.jsonl for queue replay, warehouse loads, or agent audits. Keep page_cursor and next_cursor so the job can resume from the last successful page.Each result contains user profile data. Tweet-based tools add tweet data.
Every result includes id, xUserId, and createdAt. The API omits other fields when unavailable. It never sends null. Check that a field exists before reading it.

Option B. Export as file

Download results as CSV, JSON, XLSX, Markdown, PDF, or TXT. Available export rows include bios, locations, and engagement counts.

CSV

format=csv returns text/csv; charset=utf-8 for spreadsheets and data pipelines.

JSON

format=json returns application/json; charset=utf-8 for API clients and programmatic processing.

Markdown

format=md returns text/markdown; charset=utf-8 for documentation and issue handoffs.

Markdown document

format=md-document returns text/markdown; charset=utf-8 for longer markdown documents.

PDF

format=pdf returns application/pdf for reports and sharing. Above 10,000 rows it returns a ZIP of PDF parts.

TXT

format=txt returns text/plain; charset=utf-8 for plain text and logs.

XLSX

format=xlsx returns application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for Excel and formatted reports.
Exports include every row. To process a large extraction as it arrives, page through the API.

Next steps