UnifAPI Linktree API
Linktree pages with their links and social profiles. Pages are keyed by `username`.
Linktree pages with their links and social profiles. Pages are keyed by `username`.
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/unifapi-com:unifapi-com-linktree-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: Unifapi Com Linktree API
version: 0.0.1
contact:
name: UnifAPI
url: https://unifapi.com
email: support@unifapi.com
license:
name: Proprietary
url: https://unifapi.com/legal/terms-of-service
x-api-version: '2026-07-01'
x-versioning-policy: https://unifapi.com/versioning.md
description: 'Operations tagged linktree across 3 of this provider''s published API definitions: api-unifapi-com-openapi.yml, mcp-unifapi-com-openapi.yml, unifapi-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.unifapi.com
description: Production
security:
- bearerAuth: []
tags:
- name: Linktree
description: Linktree pages with their links and social profiles. Pages are keyed by `username`.
paths:
/linktree/users/{username}:
get:
operationId: getLinktreeUsersByUsername
summary: Get a Linktree profile
description: Returns a public Linktree profile by username with its links and social accounts. Returns `not_found` when the profile does not exist.
tags:
- Linktree
x-unifapi-billing:
mode: record_metered
credits_per_record: 1
minimum_credits: 3
security:
- bearerAuth: []
parameters:
- schema:
type: string
minLength: 1
maxLength: 500
description: Linktree username, as in linktr.ee/{username}.
required: true
description: Linktree username, as in linktr.ee/{username}.
name: username
in: path
- $ref: '#/components/parameters/UnifapiVersion'
responses:
'200':
description: OK
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
description: UnifAPI request id for support and ledger correlation.
data:
type: object
properties:
platform:
type:
- string
- 'null'
description: 'Social platform for this profile. One of: linktree.'
username:
type:
- string
- 'null'
description: Canonical public username/handle without a leading @.
display_name:
type:
- string
- 'null'
description: Public display title of the profile.
bio:
type:
- string
- 'null'
description: Public bio or description text, when the profile has one.
avatar_url:
type:
- string
- 'null'
description: Best available avatar image URL; null when the profile has only a blank placeholder.
profile_url:
type:
- string
- 'null'
description: Canonical public profile URL on the owning platform.
is_verified:
type:
- boolean
- 'null'
description: Whether the platform marks the profile as verified.
links:
type: array
items:
type: object
properties:
id:
type:
- string
- 'null'
description: Stable link id from the platform when available.
title:
type:
- string
- 'null'
description: Link title as displayed on the profile.
url:
type:
- string
- 'null'
description: Destination URL.
type:
type:
- string
- 'null'
description: Platform link type when available (e.g. CLASSIC, SPOTIFY_ALBUM).
thumbnail_url:
type:
- string
- 'null'
description: Optional thumbnail image URL for the link.
position:
type:
- number
- 'null'
description: Zero-based display order when the platform provides it.
required:
- id
- title
- url
- type
- thumbnail_url
- position
description: Primary page links; empty when not found.
socials:
type: array
items:
type: object
properties:
platform:
type:
- string
- 'null'
description: Normalized social platform slug (e.g. instagram, tiktok, email).
url:
type:
- string
- 'null'
description: Social profile or contact destination.
required:
- platform
- url
description: Social/contact entries; empty when not found.
required:
- platform
- username
- display_name
- bio
- avatar_url
- profile_url
- is_verified
- links
- socials
description: Profile when lookupStatus is `found`; null when `not_found`.
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- data
- billing
'400':
description: Validation or invalid-id error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient workspace credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
Retry-After:
description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Source error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Source unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://api.unifapi.com
description: Production
components:
schemas:
ErrorBilling:
type: object
properties:
credits_required:
type: integer
credits_charged:
type: integer
minimum: 0
records_charged:
type: integer
minimum: 0
balance_remaining:
type: integer
truncated_due_to_balance:
type: boolean
required:
- balance_remaining
description: Present when the error either exposes recovery metadata or charged usage.
Billing:
type: object
properties:
credits_charged:
type: integer
minimum: 0
records_charged:
type: integer
minimum: 0
balance_remaining:
type: integer
minimum: 0
truncated_due_to_balance:
type: boolean
required:
- credits_charged
- records_charged
- balance_remaining
- truncated_due_to_balance
Error:
type: object
properties:
type:
type: string
enum:
- validation_error
- invalid_id
- insufficient_credits
- unauthorized
- not_found
- rate_limited
- internal_error
- response_shape_error
- upstream_error
- upstream_unavailable
description: Closed vocabulary - see docs/adr/0003-error-model.md.
message:
type: string
request_id:
type: string
description: UnifAPI request id, e.g. `unif_<id>`. Source ids are not exposed.
issues:
type: array
items: {}
description: Present only when type=validation_error.
billing:
$ref: '#/components/schemas/ErrorBilling'
required:
- type
- message
ErrorResponse:
type: object
properties:
error:
$ref: '#/components/schemas/Error'
required:
- error
description: Standard gateway error envelope (ADR 0003 and ADR 0008).
parameters:
UnifapiVersion:
name: Unifapi-Version
in: header
required: false
description: 'Pin the API version an integration was built against (date-based, e.g. `2026-07-01`). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with `Deprecation` and `Sunset` response headers. The served version is echoed in every response''s `Unifapi-Version` header. Policy: https://unifapi.com/versioning.md'
schema:
type: string
default: '2026-07-01'
enum:
- '2026-07-01'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: UnifAPI API key. Provider credentials are managed by UnifAPI.
externalDocs:
url: https://docs.unifapi.com
description: UnifAPI developer documentation
x-refined-from:
- api-unifapi-com-openapi.yml
- mcp-unifapi-com-openapi.yml
- unifapi-com-openapi.yml
x-payment-info:
protocol: MPP
scheme: Payment
status: 402
errorType: insufficient_credits
currency: USD
unit: credit
unitPrice: '0.001'
network: stripe
topUpUrl: https://api.unifapi.com/dashboard/billing
pricingUrl: https://unifapi.com/pricing
docsUrl: https://unifapi.com/pricing.md
description: 'Premium public-data operations are billed per record in prepaid credits. On HTTP 402 the response carries a WWW-Authenticate: Payment challenge plus a JSON body with the credits required and the current balance. Top up credits at the topUpUrl, then retry with the same request (send an Idempotency-Key header to make the retry safe).'
x-rate-limit:
policy: api-key
limit: 60
windowSeconds: 60
scope: api_key
errorType: rate_limited
status: 429
headers:
- RateLimit-Policy
- RateLimit
- RateLimit-Limit
- RateLimit-Remaining
- RateLimit-Reset
- X-RateLimit-Limit
- X-RateLimit-Remaining
- X-RateLimit-Reset
- Retry-After
docsUrl: https://unifapi.com/auth.md
description: 'Every response carries the quota that applies to it: 60 requests per 60s per API key, as the IETF `RateLimit`/`RateLimit-Policy` structured fields plus the `RateLimit-Limit`/`-Remaining`/`-Reset` triple and `X-RateLimit-*` aliases. Exceeding the quota returns HTTP 429 with `error.type = rate_limited` and a `Retry-After` header in seconds. Responses that never resolved an API key report the default policy with a full budget.'