Introduction
Custom Response Headers
Inspect custom response headers for request metadata, scrape metadata, and credit usage.
WebScrapingAPI and Searchdata responses include custom headers that expose request metadata and credit usage.
| Header | Description |
|---|---|
[PREFIX]-Client-Cookies | JavaScript-generated cookies after the target website loads. |
[PREFIX]-Scraped-Headers | Response headers from the scraped URL. |
[PREFIX]-Scraped-Resolved-Url | Final scraped URL after redirects. |
[PREFIX]-Call-Credit-Usage | Credit usage for the current request. |
[PREFIX]-Current-Credit-Usage | Total credit usage after the request. |
Use the prefix for the API that handled the request:
| API family | Prefix |
|---|---|
| WebScrapingAPI | WSA |
| Amazon API, SERP API, and ecommerce APIs | Searchdata |