Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: AdvisorPPC Traffic API
version: 0.1.0
tags:
- name: traffic
paths:
/api/traffic/hit:
post:
tags:
- traffic
summary: Record Hit
description: 'Count one public page view. Always 204, whatever happens.
The browser sends this as a no-cors text/plain POST without cookies and
never reads the answer, so there is nothing useful to tell it. A hit that
fails a check is dropped quietly; a database error is logged and dropped,
never surfaced to a reader''s page.'
operationId: record_hit_api_traffic_hit_post
responses:
'204':
description: Successful Response
/api/traffic/daily:
get:
tags:
- traffic
summary: Daily Traffic
description: 'Visitors and page views per owner day for the public site.
Platform-wide, so platform superusers only. The table holds no tenant
data and no RLS, so no tenant GUC is set.'
operationId: daily_traffic_api_traffic_daily_get
security:
- HTTPBearer: []
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 90
minimum: 7
default: 30
title: Days
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: X-Tenant-Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Daily Traffic Api Traffic Daily Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer