Custom Headers

Custom Headers

To get customized results, you may want your requests to pass through custom headers (like cookies, agents, etc). To maintain primary request headers, have keep_headers=true. We handle blocks internally, therefore, use this feature only when you require customized results.

Sample code snippets:

curl --location 'https://api.syphoon.com' \
--header 'X-MyHeader: abc' \
--header 'Content-Type: application/json' \
--data '{"key":"YOUR_API_KEY","url":"http://httpbin.org/ip","method":"GET","keep_headers":true}'

Result

url: "http://httpbin.org/anything",
output: {
    "args": {},
    "data": "",
    "files": {},
    "form": {},
    "headers": {
        "Accept": "*/*",
        "Accept-Encoding": "gzip",
        "Accept-Language": "en,en-US;q=0.9,de;q=0.8",
        "Host": "httpbin.org",
        "Sec-Ch-Ua": "Google Chrome;v=\"104\", \"Chromium\";v=\"104\", \";Not A Brand\";v=\"99\"",
        "Sec-Ch-Ua-Mobile": "?0",
        "Sec-Ch-Ua-Platform": "macOS",
        "Sec-Fetch-Dest": "document",
        "Sec-Fetch-Mode": "navigate",
        "Sec-Fetch-Site": "none",
        "Sec-Fetch-User": "?1",
        "Upgrade-Insecure-Requests": "1",
        "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
        "X-Amzn-Trace-Id": "Root=1-6831a913-383a5dca23337d6347b5cfe1",
        "X-Myheader": "abc"
    },
    "json": null,
    "method": "GET",
    "origin": "assigned_ip_address",
    "url": "http://httpbin.org/anything"
}