Skip to content

Options

referer

The referer sent with the page request.

Type
string
Default
None
On this page

OverviewLink to this section

Sets the Referer header of the request for the page itself, so the site sees the visit as coming from that address instead of as a direct visit. Useful for pages that change their content based on where the visitor came from.

An empty string is ignored and no referer is sent.

ExampleLink to this section

The same request with the SDK, with cURL and as the raw JSON body.

screenshot.ts
import { Url2Image } from '@url2image/sdk'

const { success, data, message } = await Url2Image({
    url: 'https://example.com',
    token: process.env.URL2IMAGE_TOKEN,
    options: {
        referer: 'https://www.google.com/'
    }
})

Every option, grouped, is in the options overview.

Something unclear or missing on this page?

Tell us
Made with Modulify