
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "olostep",
"path": "/v1/batches",
"method": "POST",
"body": {
"items": [
{
"url": "",
"custom_id": ""
}
]
}
}'
{
"success": true,
"data": {
"id": "{id}",
"object": "{object}",
"parser": "{parser}",
"status": "{status}",
"country": "{country}",
"created": 1,
"start_date": "{start_date}",
"total_urls": 1,
"batch_parser": "{batch_parser}",
"batch_country": "{batch_country}",
"completed_urls": 1,
"number_retried": 1
}
}
Example values, built from the documented fields.
The price changes with the values you send.
from$0.02per call
Request-basedThe price depends on what you send. You see it before you run.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 95.8% success · 8,224 ms median · 30 days
About this endpoint
Starts a new batch. You receive an id that you can use to track the progress of the batch as shown [here](/api-reference/batches/info). Note: Processing time is constant regardless of batch size
Body parameters
itemsrequiredobject[]Array of items to be processed in the batch. The price is per item.countrystringCountry for the batch execution. Provide in ISO 3166-1 alpha-2 codes like US(USA), IN(India), etcparserobjectYou can use this parameter to specify the parser to use. Parsers are useful to extract structured content from web pages. Olostep has a few parsers built in for most common web pages, and you can also create your own parsers.links_on_pageobjectGet all the links present on each page in the batch.Response types
idstringobjectstringparserstringstatusstringcountrystringcreatednumberstart_datestringtotal_urlsnumberbatch_parserstringbatch_countrystringcompleted_urlsnumbernumber_retriednumberMore from Olostep
- Retrieve ContentGET/v1/retrieveFree
- Batch InfoGET/v1/batches/{batch_id}Free
- Start CrawlPOST/v1/crawlsFrom $0.01 per callRequest-based
- Create AnswerPOST/v1/answers$0.05 per callFixed
- MapsPOST/v1/maps$0.01 per callFixed
- Crawl PagesGET/v1/crawls/{crawl_id}/pagesFree
- Create ScrapePOST/v1/scrapes$0.01 per callFixed
- Batch ItemsGET/v1/batches/{batch_id}/itemsFree
- Get ScrapeGET/v1/scrapes/{scrape_id}Free
- Get AnswerGET/v1/answers/{answer_id}Free
- Crawl InfoGET/v1/crawls/{crawl_id}Free