Skip to main content

Introduction

It is super easy to start using ScrapexLabs API. The only thing you need is your API Token and (obviously) the URL of the website that you want to scrape.

Obtaining an API Token

You can find your personal API Token in ScrapexLabs user dashboard. Go to dashboard
Once you have obtained an API Token, it should be securely stored and treated as sensitive information.

Making Requests

To authenticate your requests to the ScrapexLabs API, you need to include the API Token in the request headers. Specifically, you should use the Authorization header with the value Bearer {API Token}. Here’s how you can do it using various programming languages and tools:
curl --request POST \
  --url https://base.scrapexlabs.com/api/make-request/ \
  --header 'Authorization: Bearer myApiToken' \
  --header 'Content-Type: application/json' \
  --data '{"url": "https://example.com","proxy_type": "standard","proxy_country": "us"}'

Security

API tokens are not automatically expired or renewed. If you want to regenerate your API token, you can do it in your user dashboard by going to Settings -> API key -> Regenerate.