Sources

Compare two sources

Two sources side by side for one window: visitors, conversions, conversion rate, observed revenue and their Decision and signal state. It ranks nothing and is not a Decision.

get/sites/{site}/source-comparison

Request

  • Base URL: https://api.onelence.com/v1
  • URL: https://api.onelence.com/v1/sites/{site}/source-comparison
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.onelence.com/oauth/authorize, token URL https://api.onelence.com/oauth/token, scopes: decisions:read)
    • HTTP bearer

Path parameters

sitestring required

Site domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.

Query parameters

astring required

First source id or name, for example from the sources list.

bstring required

Second source id or name.

startstring

Window start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end.

endstring

Window end, inclusive for a date. Defaults to now.

Response

Success.

object'source_comparison' required
disposition'comparable' | 'incomparable' required
availability'available' | 'partial' | 'unavailable' required
titlestring required
summarystring nullable required
limitationsstring[] required
notestring required

Changes

No recorded changes to this operation across all 1 revision of this API.