Custom headers
Custom headers sending via ScrapingAnt API and how to send them along with a scraping request.
#
RequestYou can pass custom headers to the target webpages while scraping with the ScrapingAnt web scraping API.
For sending your headers with a scraping request just add the prefix ant-
to your header names.
This prefix will be trimmed by ScrapingAnt and headers will be forwarded to the target web page.
tip
If you are using the ScrapingAnt Python or Javascript library, no need to prefix headers with "ant-"
#
Examples#
Sending your headers using cURL request to ScrapingAnt#
Request#
ResponseAs you can observe, HTTPBin returned our custom header as: