/api/v1/sites/connect
OAuth 2.1 · Sign in with Landing
Connect a website
Connect (or re-connect) the website this token was issued to. Creates or reuses its tag and analytics property, and returns the one tag snippet the site should print. Idempotent — call it after every sign-in.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
site_url
string
required
|
The site's home URL. Must be on the host the site signed in from. max: 2048 |
|
site_name
string
optional
|
The site's title, shown in Landing's connected-apps list. max: 255 |
|
wp_version
string
optional
|
— max: 32 |
|
plugin_version
string
optional
|
— max: 32 |
|
php_version
string
optional
|
— max: 32 |
|
woocommerce
boolean
optional
|
— |
Responses
{ "connection": { "id": 12, "host": "acme.com" }, "tag": { "container_id": "LT-9XK1PL", "snippet": "<!-- Landing Tag Manager -->…" } }
/api/v1/sites/connection
OAuth 2.1 · Sign in with Landing
Get the connection
The connected website's account, tag and feature switches.
Rate limited.
Responses
{ "connection": { "host": "acme.com" }, "features": { "companies": true, "leads": true } }
/api/v1/sites/connection
OAuth 2.1 · Sign in with Landing
Disconnect a website
Disconnect the website and revoke this credential.
Rate limited.
/api/v1/sites/overview
OAuth 2.1 · Sign in with Landing
Site overview
Headline numbers, trend, insights, top pages and hot companies.
Rate limited.
Body parameters
|
range
string
optional
|
today, 7d, 30d or 90d (default 30d), in the property's timezone. one of: today, 7d, 30d, 90d |
/api/v1/sites/pages
OAuth 2.1 · Sign in with Landing
Numbers for many pages
Visitors, leads, companies and a 7-day sparkline for up to 100 paths at once.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
paths
object
required
|
URL paths exactly as the browser reports them (leading slash, no query string). max: |
|
range
string
optional
|
— one of: today, 7d, 30d, 90d |
/api/v1/sites/page
OAuth 2.1 · Sign in with Landing
One page in detail
Everything for one page: readers now, sources, companies reading it, how far people scroll, and its leads.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
path
string
required
|
— max: 400 |
|
range
string
optional
|
— one of: today, 7d, 30d, 90d |
/api/v1/sites/companies
OAuth 2.1 · Sign in with Landing
Companies visiting
Identified companies visiting the site.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
range
string
optional
|
— one of: today, 7d, 30d, 90d |
|
limit
integer
optional
|
— max: 100 min: 1 |
/api/v1/sites/leads
OAuth 2.1 · Sign in with Landing
Leads from the site
Leads submitted from the site. Needs the leads:read scope and access to leads.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
range
string
optional
|
— one of: today, 7d, 30d, 90d |
|
limit
integer
optional
|
— max: 100 min: 1 |
|
path
string
optional
|
— max: 400 |
/api/v1/sites/realtime
OAuth 2.1 · Sign in with Landing
Reading now
Readers on the site in the last five minutes, by page.
Rate limited.
Landing Platform