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
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| request | String | Yes | The records needed, in plain English, including any conditions and the fields to bring back. Min length 3, max length 2000. |
| count | Integer | No | How many records to look for, from 1 to 10. Defaults to 10 if omitted. |
| confirm_max_atoms | Integer | No | The 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
| Parameter | Type | Description |
|---|---|---|
| status | ENUM | Response state. In the first schema branch it is priced. In the second branch it is running or not_started. |
| request | String | The request text echoed back in the priced response. |
| reading | Object | Summary of the requested read. Contains count and columns_asked_for. |
| reading.count | Integer | How many records the request asks for. |
| reading.columns_asked_for | String Array | The fields SpecStream will bring back for each record. |
| max_atoms | Integer | The most this run can cost, in atoms. Present in the priced response. |
| confirm_max_atoms | Integer | The maximum atoms value to send back with the same request to start the run. Present in the priced response. |
| expires_at | String | Expiration timestamp in date-time format. Present in the priced response. |
| note | String | Additional note returned by the service. |
| purchase_id | String | Purchase identifier returned in the running/not_started response. |
| status_path | String | Path to the status field used for tracking the run. |
| authorized_atoms | Integer | The most this run can cost, in atoms. |
| charged_atoms | Integer | Atoms charged by this call as the run's deposit. |
| find_id | String | Identifier for the find, present only in the running/not_started response. |



