Landing Platform Landing Platform
Developer Sites
POST /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
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

200 { "connection": { "id": 12, "host": "acme.com" }, "tag": { "container_id": "LT-9...
POST /api/v1/sites/connect
response
{ "connection": { "id": 12, "host": "acme.com" }, "tag": { "container_id": "LT-9XK1PL", "snippet": "<!-- Landing Tag Manager -->…" } }
GET /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

200 { "connection": { "host": "acme.com" }, "features": { "companies": true, "leads"...
GET /api/v1/sites/connection
response
{ "connection": { "host": "acme.com" }, "features": { "companies": true, "leads": true } }
DELETE /api/v1/sites/connection OAuth 2.1 · Sign in with Landing

Disconnect a website

Disconnect the website and revoke this credential.

Rate limited.

DELETE /api/v1/sites/connection
GET /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
GET /api/v1/sites/overview
GET /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
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
GET /api/v1/sites/pages
GET /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
path
string required
— max: 400
range
string optional
— one of: today, 7d, 30d, 90d
GET /api/v1/sites/page
GET /api/v1/sites/companies OAuth 2.1 · Sign in with Landing

Companies visiting

Identified companies visiting the site.

Rate limited.

Body parameters

auto-derived
range
string optional
— one of: today, 7d, 30d, 90d
limit
integer optional
— max: 100 min: 1
GET /api/v1/sites/companies
GET /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
range
string optional
— one of: today, 7d, 30d, 90d
limit
integer optional
— max: 100 min: 1
path
string optional
— max: 400
GET /api/v1/sites/leads
GET /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.

GET /api/v1/sites/realtime