Authentication
Learn how to authenticate your requests to the MrScraper API using API keys, including best practices for security and usage.
Overview
The MrScraper API uses API key authentication to secure all endpoints. Every API request must include a valid API key in the request headers.
Getting Your API Key
You can get your API Key by following these steps.
Make Your First Call
Authentication is handled using HTTP Basic Auth. Include your API Key in the request header when accessing any MrScraper API endpoint.
x-api-token: YOUR_API_TOKENFor example, to retrieve scraping results, you would make the following cURL request:
curl -X GET "https://api.v3.app.mrscraper.com/api/v1/results?filters[scraperId]=<SCRAPER_ID>&page=1&pageSize=10&sort=createdAt&sortOrder=DESC" \
-H "accept: application/json" \
-H "x-api-token: YOUR_API_TOKEN"