Customize Header Parameter with ScraperAPI in Python
Learn how to scrape websites using header-based parameters with ScraperAPI in Python. Pass api_key, render, and instruction_set via headers to simplify requests.
Along with the “traditional” means of passing parameters, we also support passing parameters as headers. Passing parameters such as api_key
, render
, ultra_premium
and instruction_set
are very straightforward.
API REQUEST
Instead of including them in the URL
you can just pass the parameters as headers
PROXY MODE
Note that credentials must still be passed to the proxy in the manner shown above, not as headers.
Last updated
Was this helpful?