apyhub
Back
▣ INGESTION KIT · RETRIEVAL KIT

Retrieve Live Web Data API

What it does

The Live Web Data API finds records on the live web from a request written in plain English. Describe the records, any conditions and the fields to bring back. The API returns structured rows, and every value carries its source URL and the time it was read.

It works in two calls. Send request (3 to 2,000 characters) and an optional count (1 to 10, default 10). The first call returns a quote with status: priced and a reading that lists the record count and the columns it will fill. Nothing runs yet. Send the same request again with the confirmation value from the quote to start the run. The response holds a purchase_id.

Poll the second endpoint with that purchase_id, at most once per second, until the run ends. Each row has an entity_id and cells. Each cell has a label, a value and provenance with source_url and observed_at. When a value is missing, absence says why.

Teams use the live web data API to build lead and company lists and to collect product listings from many sites. Others pull recent news with headline and source, or give AI agents data they can check value by value. Each call returns up to 10 records.

To go deeper on a source, read the full page with the Web Scraping API or pull its tables with the Clean Data Extractor API. The URL Metadata API adds an article's author and date. AI agents can call it through ApyHub MCP.

▣ ENDPOINT 01 / 02
POST
Find live web data
https://api.eu.apyhub.com/specstream/retrieve-live-web-data-api/agent/lists

QUICKSTART

GUIDE

Quickstart

Send the plain-English records request to get a priced read back.

curl -X POST "https://api.eu.apyhub.com/specstream/retrieve-live-web-data-api/agent/lists" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "request": "Find the latest news articles about electric vehicles and return the headline and source",
    "count": 3
  }'

What you'll get back

Returns a JSON object in one of two shapes.

If the run is priced, it returns status, request, reading, max_atoms, confirm_max_atoms, expires_at, and note, where reading is an object with count and columns_asked_for.

If the run has started, it returns purchase_id, status_path, authorized_atoms, reading, status, and charged_atoms; note and find_id may also be present.

{
  "status": "priced",
  "request": "Find the latest news articles about electric vehicles and return the headline and source",
  "reading": {
    "count": 3,
    "columns_asked_for": ["headline", "source"]
  },
  "max_atoms": 1200,
  "confirm_max_atoms": 1200,
  "expires_at": "2026-10-23T12:34:56Z",
  "note": "..."
}
TRY ITLIVE · 2000 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
The records you need, in plain English, with any conditions and the fields to bring back.
How many records to look for, from 1 to 10. Leave it out for 10.
The confirm_max_atoms value from the priced response to start the run.

About this endpoint

What it does

Submits a live web data find request and either returns a priced quote or starts the run, depending on whether confirm_max_atoms is included in the request.

Request Body

ParameterTypeMandatoryDescription
requestStringYesThe records needed, in plain English, including any conditions and the fields to bring back. Min length 3, max length 2000.
countIntegerNoHow many records to look for, from 1 to 10. Defaults to 10 if omitted.
confirm_max_atomsIntegerNoThe confirm_max_atoms value from the priced answer. Sending it starts the run. Must be at least 1. Atoms are ApyHub's unit: 400 atoms per cent of work.

Response

Returns a JSON object with response fields based on the request state: priced when returning pricing information, or running/not_started when the run has started. Refer to the Response Fields table for complete field details

ParameterTypeDescription
statusENUMResponse state. In the first schema branch it is priced. In the second branch it is running or not_started.
requestStringThe request text echoed back in the priced response.
readingObjectSummary of the requested read. Contains count and columns_asked_for.
reading.countIntegerHow many records the request asks for.
reading.columns_asked_forString ArrayThe fields SpecStream will bring back for each record.
max_atomsIntegerThe most this run can cost, in atoms. Present in the priced response.
confirm_max_atomsIntegerThe maximum atoms value to send back with the same request to start the run. Present in the priced response.
expires_atStringExpiration timestamp in date-time format. Present in the priced response.
noteStringAdditional note returned by the service.
purchase_idStringPurchase identifier returned in the running/not_started response.
status_pathStringPath to the status field used for tracking the run.
authorized_atomsIntegerThe most this run can cost, in atoms.
charged_atomsIntegerAtoms charged by this call as the run's deposit.
find_idStringIdentifier for the find, present only in the running/not_started response.
▣ ENDPOINT 02 / 02
GET
Get find results
https://api.eu.apyhub.com/specstream/retrieve-live-web-data-api/:purchase_id

QUICKSTART

GUIDE

Quickstart

Check the status of a previously started SpecStream run by its purchase_id.

curl -X GET "https://api.eu.apyhub.com/specstream/retrieve-live-web-data-api/:purchase_id" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with these top-level fields: purchase_id (string), status (string), reading (object with count and columns_asked_for), requested (integer), and found (integer). The schema also allows rows, request, charged_atoms, and authorized_atoms when present.

{
  "purchase_id": "pur_12345",
  "status": "completed",
  "reading": {
    "count": 10,
    "columns_asked_for": ["title", "price"]
  },
  "requested": 10,
  "found": 10
}
TRY ITLIVE · 1 ATOM
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
The purchase_id returned when the run started.

About this endpoint

What it does

Retrieves the current or final results for a previously started find-live-web-data run using the purchase_id path parameter. The response includes the run status plus any read records and summary counts available for that purchase.

Path Parameter(s)

AttributeTypeMandatoryDescription
purchase_idStringYesThe purchase_id returned when the run started.

Response

Returns a JSON object with response fields showing the run status and results. Refer to the Response Fields table for complete field details.

ParameterTypeDescription
purchase_idStringThe purchase identifier for this run.
statusENUMRun status. Allowed values: running (still searching), completed (finished successfully), partial (timeout - partial results), failed (error occurred), canceled (user canceled), expired (timed out), not_started (queued).
readingObjectSummary of what the run is asking for. Includes required count (integer) and columns_asked_for (string array).
requestedIntegerNumber of records requested.
foundIntegerRecords found so far.
rowsObject ArrayEvery record that met the request. Present when the run has ended. Each row object includes entity_id (string) and cells (array) as required fields, plus optional details (array), ordinal (integer), and billable (boolean). Each cell includes column_id, label, value, display, absence (if value is missing), and provenance (with source_url and observed_at).
requestStringThe request string.
charged_atomsIntegerAtoms charged for the run in all, including the start. Present when the run has ended.
authorized_atomsIntegerAuthorized atoms for the run.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.