Bid Check

Get a real-time Sovrn bid on your click traffic.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 eepc is 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, eepc is the average amount Sovrn expects you to earn per click. CPA eepc is 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 Authorization header.

Query Params

ParameterTypeRequiredDescription
keystringYesSite Commerce API Key for the site or traffic source where the click originated.
outstringYesDestination URL for the click.
ipstringYesThe real end user's IP address. IPv4 and IPv6 are supported.
userAgentstringYesThe real end user's browser User-Agent string.
referrerUrlstringNoPage URL where the click originated.
subIdstringNoFully qualified SubID URL used to associate the click with a child campaign, placement, domain, or publisher under the parent API Key.
bidFloornumberNoMinimum acceptable bid, in USD, expressed as a decimal. If omitted, no minimum bid floor is applied. Bids below this value return affiliated: false.
includeCpabooleanNoWhen true, CPA offers are considered alongside CPC bids. If omitted, only CPC bids are considered.
gdprAppliesbooleanNoIndicates whether GDPR applies to the user. If omitted, Sovrn determines whether GDPR applies based on the user's IP address.
gdprConsentstringNoRaw GDPR consent string for the user, when applicable.
ccpaConsentstringNoRaw CCPA consent string for the user, when applicable.
gppConsentstringNoRaw GPP consent string for the user, when applicable.
📘

Pass the end user's actual ip and userAgent, 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.

ParameterTypeDescription
cuidstringAn identifier of your choosing used to associate the click with a user, page, campaign, or event. Maximum 2048 characters.
utm_sourcestringIdentifies the source of the traffic, such as website, newsletter, or twitter.
utm_mediumstringIdentifies the marketing medium, such as email, social, or banner.
utm_campaignstringIdentifies the campaign name, promotion, or initiative, such as black_friday_2025.
utm_termstringIdentifies paid search keywords or targeting terms.
utm_contentstringDifferentiates 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.

ParameterWhy encoding is needed
outContains characters such as :, /, ?, and &.
userAgentContains characters such as spaces, (), /, and ;.
referrerUrlContains characters such as :, /, ?, and &.
subIdMust 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
}
FieldDescription
affiliatedtrue when Sovrn returns a bid or offer for the click.
pricingCPC for real-time bid wins, or CPA when includeCpa=true and a CPA offer wins.
eepcExpected earnings per click, in USD. This value is returned after Sovrn's revenue share is deducted.
urlSovrn redirect URL to use if you route the click through Sovrn.
expireInMsLength 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 HTTP 302 redirect.

The redirect must happen client-side so Sovrn receives the click from the real user's browser. Do not request the returned url from 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

StatusMeaning
200Success.
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.
Query Params
string
required

Site Commerce API Key for the site or traffic source where the click originated. Use the API Key that corresponds to the site, app, or traffic source sending the click so the bid is evaluated and attributed correctly.

uri
required

Destination URL for the click. This value must be URL-encoded when placed in the query string.

string
required

The real end user's IP address. IPv4 and IPv6 are supported. Pass the end user's actual IP address, not the IP address of your server. This value must match the user who is redirected through Sovrn for the bid to be valid.

string
required

The real end user's browser User-Agent string. Pass the end user's actual User-Agent, not the User-Agent of your server. This value must match the user who is redirected through Sovrn for the bid to be valid. This value must be URL-encoded when placed in the query string.

uri

Page URL where the click originated. This value must be URL-encoded when placed in the query string.

uri

Fully qualified SubID URL used to associate the click with a child campaign, placement, domain, or publisher under the parent API Key. If the SubID does not already exist, Sovrn will create it. This value must be URL-encoded when placed in the query string.

float

Minimum acceptable bid, in USD, expressed as a decimal. For example, 0.01 means one cent. When provided, bids below this value return affiliated: false. If omitted, no minimum bid floor is applied.

boolean

When true, CPA offers are considered alongside CPC bids. If a CPA offer wins, the response pricing will be CPA. If omitted, only CPC bids are considered.

string
length ≤ 2048

An identifier of your choosing used to associate the click with a user, page, campaign, or event. Use only letters, numbers, hyphens, and underscores. Maximum 2048 characters.

string

Identifies the source of the traffic, such as a website, newsletter, or social platform. Use only letters, numbers, hyphens, and underscores.

string

Identifies the marketing medium, such as email, social, or banner. Use only letters, numbers, hyphens, and underscores.

string

Identifies the campaign name, promotion, or initiative. Use only letters, numbers, hyphens, and underscores.

string

Identifies paid search keywords or targeting terms. Use only letters, numbers, hyphens, and underscores.

string

Differentiates similar links or placements on the same page. Use only letters, numbers, hyphens, and underscores.

boolean

Indicates whether GDPR applies to the user. If omitted, Sovrn determines whether GDPR applies based on the user's IP address.

string

Raw GDPR consent string for the user, when applicable.

string

Raw CCPA consent string for the user, when applicable.

string

Raw GPP consent string for the user, when applicable.

Responses

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.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json