Response HTTP headers
Scraping Fish returns its own headers but preserves all the headers from the original website as well.
The original headers are prefixed with Sf-
prefix.
The Content-Type
header is set to original response Content-Type
, if it's available.
Example
If the website you want to scrape responds with the following headers:
Content-Type: text/html; charset=UTF-8
Content-Length: 1256
Server: ECS (dcb/7F84)
then, Scraping Fish API will respond with headers:
<ScrapingFish headers>
Content-Type: text/html; charset=UTF-8
Sf-Content-Type: text/html; charset=UTF-8
Sf-Content-Length: 1256
Sf-Server: ECS (dcb/7F84)
Cookies
If you want to access cookies set by the website, they are available in the Sf-Set-Cookie
header in the response from Scraping Fish API.