documentation

Base URL: https://api.scrapemax.com

Endpoint: /scrape

This endpoint allows for scraping data from specified URLs with various customizable options.

HTTP Method: GET
Request Parameters:
type (optional)
Type: String
Description: Format of the scraped data.
Acceptable values: data, image, screenshot.
Default: data.
api_key (required)
Type: String
Description: Required for authorization
js_enabled (optional)
Type: Integer (0 or 1)
Description: Enables or disables JavaScript rendering.
Default: 0 (disabled).
base64_encoded (optional)
Type: Integer (0 or 1)
Description: Determines whether the returned data should be base64 encoded.
Default: 1 (encoded).
target_url (required)
Type: String
Description: The URL to be scraped. (url encoded)
proxy (optional)
Type: String
Description: Type of proxy to be used.
Acceptable values: basic, premium, stealth.
Default: Null (no proxy).
full_page (optional)
Type: String
Description: Used with screenshot type. Set 1 to take full page screenshot
Acceptable values: 0, 1
Default: 0.
download (optional)
Type: Integer (0 or 1)
Description: Response type is image for image/screenshot download endpoint.
Acceptable values: 0, 1
Default: 1.
Example:

GET https://api.scrapemax.com/scrape?js_enabled=1&target_url=https%3A%2F%2Fexample.com%2Fpage&proxy=premium&type=data&base64_encoded=1
                
Response:

The response will contain the scraped data in the specified format. Base64 encoding will be applied if base64_encoded=1. In case of errors (e.g., invalid URL, server issues), an appropriate error message will be returned.


{
    "required_credits": 76,
    "remaining_credits": 514,
    "type": "data",
    "proxy": "stealth",
    "data": "PGh0bWw+PC9odG1sPg=="
}