Using the API Endpoint

Making a request to the Sync API is straightforward. You send a request, and we take care of proxies, browsers, CAPTCHAs, and protections in the background.

1

Base URL

https://api.scraperapi.com
2

Required query parameters

  • api_key - your API Key

  • url - target URL

3

Sample Request

curl --request GET \
--url 'https://api.scraperapi.com?api_key=API_KEY&url=https://www.example.com'

Optional Parameters

Sometimes sending normal (flat) requests is not enough, either because the domain is geo-locked to a specific region, it requires JavaScript rendering or it employs stronger bot protection. In those cases, you can add extra ScraperAPI parameters to your requests to ensure you get the data you need. Here are some common examples:

  • render=true - enables JavaScript Rendering with the request.

  • country_code=us - get results from a specific region. For the complete list of supported countries, visit this page.

  • premium=true - instructs the API to use high-quality residential proxies.

  • session_number=123 - keep reusing the same IP across multiple requests. Sessions expire 15 minutes after the last usage.

Here's an example request with JavaScript Rendering enabled

curl --request GET \
--url 'https://api.scraperapi.com?api_key=API_KEY&render=true&url=https://www.example.com'
circle-exclamation

Supported Geolocations.

Full list of supported parameters.

Last updated