query |
query |
array<string> |
Yes |
Links to web pages (e.g., https://www.apple.com/iphone/).
It supports batching by sending arrays with up to 1000 queries (e.g., query=text1&query=text2&query=text3). It allows multiple queries to be sent in one request and to save on network latency time. |
- |
- |
region |
query |
string enum |
No |
The parameter specifies the country to use for the screenshot. |
- |
allowed AF, AL, DZ, AS, AD, AO, AI, AG, … |
type |
query |
string enum |
No |
The parameter specifies the image extension. |
- |
default webp, allowed webp, png, jpeg, pdf |
fullPage |
query |
boolean |
No |
The parameter specifies whether to capture the full page. It overrides the viewport height. |
- |
default false |
width |
query |
integer |
No |
The parameter specifies the width of the viewport. |
- |
default 1200 |
height |
query |
integer |
No |
The parameter specifies the height of the viewport. |
- |
default 800 |
fields |
query |
string |
No |
The parameter defines which fields you want to include with each item returned in the response. By default, it returns all fields. Use &fields=query,name to return only the specific ones. |
- |
- |
async |
query |
boolean |
Yes |
The parameter defines the way you want to submit your task to Outscraper. It can be set to false to open an HTTP connection and keep it open until you get your results, or true (default) to just submit your requests to Outscraper and retrieve them later (usually within 1-3 minutes) with the Request Results endpoint. Each response is available for 4 hours after a request has been completed.
A good practice is to send async requests and start checking the results after the estimated execution time. Check out this Python implementation as an example.
As most of the requests take some time to be executed the async=true option is preferred to avoid HTTP request timeouts. |
- |
default true |
ui |
query |
boolean |
No |
The parameter defines whether a task will be executed as a UI task. This is commonly used when you want to create a regular platform task with API.
Using this parameter overwrites the async parameter to true. |
- |
default false |
format |
query |
array<string enum> |
No |
The parameter defines the format of the output data. Using this parameter overwrites the ui parameter to true. |
- |
- |
webhook |
query |
string |
No |
The parameter defines the URL address (callback) to which Outscraper will create a POST request with a JSON body once a task/request is finished.
Using this parameter overwrites the webhook from integrations. |
- |
- |