Webz.io logoDocs
Overview
Start Here
News, Blogs, Forums & Reviews APIs
News Search API
Firehose
Cyber API
Data Breaches API
News, Blogs, Forums & Reviews Archive
Get Started
Build a Dataset
API Reference
Archive API
Output Format
Data Fields
Delivery
Limits
Data Dumps (since 2008)
Web Content API (Deprecated)
Webz.io logo
Overview
Start Here
News, Blogs, Forums & Reviews APIs
News Search API
Firehose
Cyber API
Data Breaches API
News, Blogs, Forums & Reviews Archive
Get Started
Build a Dataset
API Reference
Archive API
Output Format
Data Fields
Delivery
Limits
Data Dumps (since 2008)
Web Content API (Deprecated)

On this page

No sections

Webz.io DocumentationContact our team© 2026

Archive API

The Archive API builds and delivers a dataset in three steps: set the query, confirm the order, then poll for the download link.

All requests need your API token, and orders are paid with prepaid credits. Errors always return JSON with errorText and errorCode (see the table at the end).

1. Set query and time frame

GET

https://app.webz.io/setArchiveQuery?token=YOUR_TOKEN&q=(ipod OR ipad) -android&sm=05&sy=2021&em=09&ey=2022
ParameterDescription
tokenYour API token.
qBoolean query (see Building Queries). Cannot be empty.
smStart month, 01-12. Earliest start is 5 years back.
syStart year.
emEnd month, 01-12 (inclusive). Cannot be a future month.
eyEnd year (inclusive).
formatOptional. ndjson is the only value the API accepts - json and xml are rejected.

The API runs your query against the last 30 days of live data to estimate volume, checks your credit balance, and reserves a pending order. Nothing runs or gets charged until you confirm.

Response:

json
{
  "estimatedTotalPostCount": "32544",
  "currentArchiveQuota": "50000",
  "confirmationToken": "e7044de3-e611-4e3c-9817-78e09e2cbb2e"
}

2. Confirm the order

GET

https://app.webz.io/confirmArchiveQuery?confirmationToken=CONFIRMATION_TOKEN

This charges your credits and queues the order. Response:

json
{
  "confirmationToken": "e7044de3-e611-4e3c-9817-78e09e2cbb2e"
}

3. Check status and download

GET

https://app.webz.io/getArchiveOrderStatus?confirmationToken=CONFIRMATION_TOKEN
FieldMeaning
statusCode0 queued, 1 retrieving data, 2 complete.
statusTextQueued, Retrieving Data, or Complete.
downloadLinkZIP download link. Empty until statusCode is 2.

Response when complete:

json
{
  "statusCode": "2",
  "statusText": "Complete",
  "downloadLink": "https://s3.amazonaws.com/xxxxxxxxx.zip"
}

Poll getArchiveOrderStatus until statusCode is 2, then download the ZIP from downloadLink. The link is valid for 7 days - see Delivery.

Error codes

CodeEndpointMeaning
1setQuery matches fewer than 10 posts in the last 30 days.
2setError running the query.
3setEmpty query.
4setStart date is earlier than 5 years back.
5setEnd date is in the future.
6 / 15setStart date is after end date.
7setperformance_score filter used before May 2015.
8setSentiment filter used before June 2016.
9setUnknown API token.
10set / confirmNot enough credits for the estimated post count.
11confirmA previous order is still pending; wait for it to finish.
21confirmUnknown confirmation token.
30 / 31statusMissing / unknown confirmation token.
33setFormat other than ndjson requested.

For what's inside the ZIP, see Output Format.

Last updated: July 6, 2026
PreviousAPI ReferenceNextOutput Format