Utility Endpoints
Scrapingpass provides few utility endpoints which are documented here.
Base URL
Utility endpoints are well separated from the actual API to prevent any conflicts to /meta/ path.
https://api.scrapingpass.com/meta
Estimate Balance Required
GET /estimate-balance
Calculate and determine the exact balance which will be used for provided set of Scrapingpass API options. The parameters for this endpoint are exactly same as that of HTTP REST API.
note
This endpoint doesn't requires an API Key or any kind of authorization. So the api_key
parameter can be omitted.
Example Usage
- cURL
- Python
curl 'https://api.scrapingpass.com/meta/estimate-balance?url=https://example.com/&screenshot=true'
import requests
url = "https://api.scrapingpass.com/meta/estimate-balance"
options = {
"url": "https://example.com/",
"screenshot": True,
}
response = requests.get(url, params=options)
Example Response
{
"code": "success",
"data": {
"balance_required": 6
},
"message": null,
"status_code": 200
}