c1k.me Analytics API
Recorded requests per day and dimension, with coverage and estimate labels. Counts are served redirects, not people.
Recorded requests per day and dimension, with coverage and estimate labels. Counts are served redirects, not people.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/c1k-me:c1k-me-analytics-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: C1K REST Analytics API
version: 1.0.0
summary: Organization-scoped short links, analytics, import and export, members and a change feed for c1k.me.
description: 'Every path is relative to one organization: `https://c1k.me/api/v1/orgs/{org_id}`.
A key binds to one organization; anything outside it answers 404.
**Authentication.** `Authorization: Bearer c1k_rest_...` with a REST key from the
Integrations page. Keys in a URL, query or cookie are refused, and browser sessions
do not authenticate API calls. An operation outside the key''s scopes answers 403.
**Format.** UTF-8 JSON, bodies up to 65,536 bytes and 16 levels deep. Responses carry
`data` and `meta`; errors carry `error` with a stable `code`. Times are RFC 3339 UTC.
**Retries.** Creates, bulk changes and import apply accept `Idempotency-Key`;
edits and deletions need `If-Match`.
**Rate limits**: 60 requests a minute per key, 300 per organization and
10 mutations per key. A 429 carries Retry-After.
**AI assistants** use `https://c1k.me/mcp/{org_id}`; see https://c1k.me/developers/mcp.'
contact:
name: C1K developers
url: https://c1k.me/developers
license:
name: Proprietary. All rights reserved.
identifier: LicenseRef-C1K-Proprietary
servers:
- url: https://c1k.me/api/v1/orgs/{org_id}
variables:
org_id:
default: org_REPLACEWITHYOURID0
description: The organization ID shown on the Integrations page.
security:
- bearerKey: []
tags:
- name: Analytics
description: Recorded requests per day and dimension, with coverage and estimate labels. Counts are served redirects, not people.
paths:
/links/{id}/analytics:
parameters:
- $ref: '#/components/parameters/LinkId'
get:
tags:
- Analytics
operationId: getLinkAnalytics
summary: Daily and lifetime recorded requests of one link
description: Requires analytics:read. Link daily figures are kept for seven UTC days; lifetime totals until the analytics are purged or the link is deleted.
parameters:
- $ref: '#/components/parameters/From'
- $ref: '#/components/parameters/To'
responses:
'200':
description: Link analytics with interval, retained interval, coverage and unique estimate labels.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
$ref: '#/components/schemas/Analytics'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Error'
/analytics:
get:
tags:
- Analytics
operationId: getAnalytics
summary: Organization daily totals and dimensions
description: Requires analytics:read. The Analytics page figures; without from and to, the last seven UTC days.
parameters:
- $ref: '#/components/parameters/From'
- $ref: '#/components/parameters/To'
responses:
'200':
description: Organization analytics.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
$ref: '#/components/schemas/Analytics'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Error'
delete:
tags:
- Analytics
operationId: purgeAnalytics
summary: Purge all or selected-link analytics
description: Requires analytics:delete. Cannot be undone. Removes counters, sketches and dimensions in bounded batches. When the answer has done false, send the same request with the returned started_at until done is true. Link IDs outside the organization answer 404.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- confirm
properties:
confirm:
type: boolean
const: true
description: Must be the literal true.
link_ids:
type: array
minItems: 1
maxItems: 25
items:
type: string
pattern: ^lnk_[0-9A-Za-z]{18}$
description: Omit to purge the whole organization.
started_at:
type: integer
description: From the previous response of an unfinished purge.
example:
confirm: true
link_ids:
- lnk_4fQ2mVxT9kLpR7sA1b
responses:
'200':
description: Progress of the purge.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Envelope'
- properties:
data:
type: object
properties:
done:
type: boolean
started_at:
type: integer
link_ids:
type:
- array
- 'null'
items:
type: string
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'415':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Error'
components:
responses:
Error:
description: Error envelope with a stable code.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
code: invalid_input
message: Some fields are not valid.
fields:
- field: colour
code: unknown_field
message: This field is not accepted here.
request_id: req_8Kd2PqWz5xRt1LmN3a
RateLimited:
description: Too many requests. Wait the number of seconds in Retry-After.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unauthenticated:
description: Missing, invalid, expired or revoked key.
headers:
WWW-Authenticate:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
example:
error:
code: unauthenticated
message: A valid API key is required in the Authorization header as Bearer.
request_id: req_8Kd2PqWz5xRt1LmN3a
parameters:
LinkId:
name: id
in: path
required: true
schema:
type: string
pattern: ^lnk_[0-9A-Za-z]{18}$
example: lnk_4fQ2mVxT9kLpR7sA1b
To:
name: to
in: query
description: ISO 8601 UTC date, exclusive.
schema:
type: string
format: date
example: '2026-09-08'
From:
name: from
in: query
description: ISO 8601 UTC date, inclusive. With `to` at most 30 days apart; both omitted select the last seven days.
schema:
type: string
format: date
example: '2026-09-01'
schemas:
Analytics:
type: object
description: Missing data is null with a reason and never a manufactured zero.
properties:
interval:
type: object
properties:
from:
type: string
to:
type: string
retained_interval:
type: object
generated_at:
type: string
format: date-time
collection:
type: string
coverage:
type: object
series:
type: array
items:
type: object
properties:
date:
type: string
format: date
state:
type: string
enum:
- measured
- not_retained
- collection_disabled
- unavailable
total:
type:
- integer
- 'null'
bot:
type:
- integer
- 'null'
unclassified:
type:
- integer
- 'null'
unique_estimate:
type:
- integer
- 'null'
totals:
type: object
properties:
total:
type: integer
bot:
type: integer
unclassified:
type: integer
unique_method:
type: object
unique_estimate:
type: object
properties:
value:
type:
- integer
- 'null'
label:
type: string
dimensions:
type: object
lifetime:
type: object
classification:
type: object
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
enum:
- invalid_input
- unauthenticated
- forbidden
- not_found
- conflict
- version_conflict
- quota_exceeded
- reserved_limit_reached
- active_limit_reached
- rate_limited
- storage_unavailable
- cursor_expired
- malformed_json
- payload_too_large
- unsupported_media_type
- method_not_allowed
- precondition_required
- misdirected_request
- internal_error
message:
type: string
fields:
type: array
items:
type: object
properties:
field:
type: string
code:
type: string
message:
type: string
request_id:
type: string
Envelope:
type: object
required:
- data
- meta
properties:
data: {}
meta:
type: object
required:
- request_id
properties:
request_id:
type: string
idempotent_replay:
type: boolean
securitySchemes:
bearerKey:
type: http
scheme: bearer
description: A REST key (c1k_rest_...) from the Integrations page.