Get a real-time Sovrn bid on your click traffic.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
This endpoint is used during the click redirect flow to request a real-time bid from Sovrn for a destination URL. When Sovrn can monetize the click, Bid Check returns a redirect URL that you can use to redirect the user.
Partners typically use Bid Check when comparing offers from multiple affiliate networks in real time. After receiving Sovrn's bid, you can decide whether to route the click through Sovrn or through another network.
For CPC bids, the bid response is valid for a limited time. If you redirect the user through Sovrn before the bid expires, the returned eepc is guaranteed as the rate for that click. If you redirect the user after the bid expires, the click is still tracked and affiliated through standard link optimization at the current market rate.
Use Link Check when you only need to check whether a URL can be monetized, typically at link insertion time.
Use Building Affiliate Links when you need to create Sovrn affiliate links by wrapping destination URLs.
For CPC bids, the returned
eepcis the rate you can earn by routing the click through Sovrn before the bid expires. Sovrn's revenue share has already been deducted from this value.For CPA offers,
eepcis the average amount Sovrn expects you to earn per click. CPAeepcis an estimate and is not guaranteed for an individual click.
Commerce API Key
To query this endpoint, include your site Commerce API Key as the key query parameter on every request. This key is specific to the site or traffic source where the click originated.
You can find your key in the Sovrn Platform under Commerce Settings, or retrieve it via the Campaign API.
Use the API Key that corresponds to the site, app, or traffic source sending the click so the bid is evaluated and attributed correctly.
Bid Check uses the public Commerce API Key as a query parameter. It does not use the Secret Key required by other Sovrn Commerce APIs that authenticate with the
Authorizationheader.
Query Params
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Site Commerce API Key for the site or traffic source where the click originated. |
out | string | Yes | Destination URL for the click. |
ip | string | Yes | The real end user's IP address. IPv4 and IPv6 are supported. |
userAgent | string | Yes | The real end user's browser User-Agent string. |
referrerUrl | string | No | Page URL where the click originated. |
subId | string | No | Fully qualified SubID URL used to associate the click with a child campaign, placement, domain, or publisher under the parent API Key. |
bidFloor | number | No | Minimum acceptable bid, in USD, expressed as a decimal. If omitted, no minimum bid floor is applied. Bids below this value return affiliated: false. |
includeCpa | boolean | No | When true, CPA offers are considered alongside CPC bids. If omitted, only CPC bids are considered. |
gdprApplies | boolean | No | Indicates whether GDPR applies to the user. If omitted, Sovrn determines whether GDPR applies based on the user's IP address. |
gdprConsent | string | No | Raw GDPR consent string for the user, when applicable. |
ccpaConsent | string | No | Raw CCPA consent string for the user, when applicable. |
gppConsent | string | No | Raw GPP consent string for the user, when applicable. |
Pass the end user's actual
ipanduserAgent, not the IP address or User-Agent of your server. These values must match the user who is redirected through Sovrn for the bid to be valid.
If you use
subId, pass a fully qualified URL. If the SubID does not already exist, Sovrn will create it. For more information, see SubIDs in Commerce.
Optional: Tracking parameters
Use these optional parameters to pass your own tracking values with the click. These values can help you associate click activity with a user, page, campaign, placement, or event.
| Parameter | Type | Description |
|---|---|---|
cuid | string | An identifier of your choosing used to associate the click with a user, page, campaign, or event. Maximum 2048 characters. |
utm_source | string | Identifies the source of the traffic, such as website, newsletter, or twitter. |
utm_medium | string | Identifies the marketing medium, such as email, social, or banner. |
utm_campaign | string | Identifies the campaign name, promotion, or initiative, such as black_friday_2025. |
utm_term | string | Identifies paid search keywords or targeting terms. |
utm_content | string | Differentiates similar links or placements on the same page, such as header or footer. |
Each tracking parameter supports up to 2056 characters, but shorter values are recommended. To keep the final redirect URL safe and reliable across browsers, servers, and partners, keep the combined length of all tracking parameter values under 2056 characters when possible.
URL encoding
Some query parameter values must be URL-encoded before they are sent.
| Parameter | Why encoding is needed |
|---|---|
out | Contains characters such as :, /, ?, and &. |
userAgent | Contains characters such as spaces, (), /, and ;. |
referrerUrl | Contains characters such as :, /, ?, and &. |
subId | Must be passed as a fully qualified URL and contains characters such as :, /, ?, and &. |
Most HTTP clients and the Try It panel on this page handle encoding automatically. If you build the request URL manually, encode these values before sending the request.
Example Request
curl "https://api.viglink.com/api/bid\
?key=YOUR_API_KEY\
&out=https%3A%2F%2Fexample-merchant.com\
&ip=192.0.2.1\
&userAgent=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_15_7%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F120.0.0.0+Safari%2F537.36\
&referrerUrl=https%3A%2F%2Fexample-publisher.com%2Farticle\
&subId=https%3A%2F%2Fexample-publisher.com%2Fplacement%2Fhomepage\
&bidFloor=0.01\
&includeCpa=false"Example Response
Winning bid
{
"affiliated": true,
"pricing": "CPC",
"eepc": 0.05725,
"url": "https://redirect.viglink.com?u=...",
"expireInMs": 250
}| Field | Description |
|---|---|
affiliated | true when Sovrn returns a bid or offer for the click. |
pricing | CPC for real-time bid wins, or CPA when includeCpa=true and a CPA offer wins. |
eepc | Expected earnings per click, in USD. This value is returned after Sovrn's revenue share is deducted. |
url | Sovrn redirect URL to use if you route the click through Sovrn. |
expireInMs | Length of time the returned bid is valid, in milliseconds. Returned for CPC wins only. |
Redirecting the user
When Bid Check returns a winning bid, redirect the user's browser to the returned
url. This is typically done with an HTTP302redirect.The redirect must happen client-side so Sovrn receives the click from the real user's browser. Do not request the returned
urlfrom your server or follow the redirect server side. Server-side redirects are not supported.
No bid or not monetizable
{
"affiliated": false
}Sovrn returns { "affiliated": false } when there is no eligible bid, the destination URL is not monetizable, or the available bid is below the submitted bidFloor.
Status Codes
| Status | Meaning |
|---|---|
200 | Success. |
400 | Bad Request — one or more required fields are missing or malformed. |
401 | Unauthorized — the provided key is not a valid Commerce API Key. |
500 | Internal Server Error. |
400Bad Request — one or more required fields are missing or malformed.
401Unauthorized — the provided key is not a valid Commerce API Key.
500Internal Server Error.

