Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Billed per 1,000 successful requests; failures on Decodo’s side (500, 524, 613) are not charged.
- /scrape defaults to the premium proxy pool and its higher rate: set proxy_pool standard for simple pages. Any headless value is billed at the + JS rate.
- Every call here is a read sent as POST with a JSON body, except the status and result reads.
- Decodo’s proxy networks and the residential Public API (sub-users, whitelisted IPs) are not in this entry; nor are batch tasks or crawl cancellation.
Endpoints
Scrape a page
- A read over POST. Give url, or query with a target template that takes one.
- Supported parameters vary slightly by target template.
Search Google
- A read over POST. Compare search_parameters.gl with your geo to confirm it was recognized.
- status is done even when organic is empty.
Map a site’s URLs
- A read over POST. Billed one request for the page plus one for the sitemap when it is included.
- Nested sitemaps are not followed; with a sitemap index, only returns 400.
Start a crawl
- A read over POST that starts a billed job: returns 202 with crawl_id. Set limit to keep the cost predictable.
- Poll crawl.status, then read crawl.results.
Get crawl status
- status is pending, done, cancelled, truncated or faulted.
Get crawl results
- Without type=content, fetch each page with task.results and its task id.
Queue an async scrape
- A read over POST. For slow pages or large volumes; takes the same parameters as scrape.
- Fetch the output with task.results.