APIs / Social media / Linktree

1 credit per call2 endpointsChecked working 6 Dec 2026

Linktree API

Linktree API for public Linktree profiles by username, one at a time or in a batch, as JSON. Two endpoints, 1 credit per successful call.

Linktree
GET/v1/linktree/profile?username=linktree
curl "https://api.perceptlayer.com/v1/linktree/profile?username=linktree" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/linktree/profile?username=linktree" \
  -H "X-API-Key: $API_KEY"

Linktree · 2 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersReturnsCost
GET/v1/linktree/profile
usernameNeeds terms
usernamepage_titleverifiedis_profile_verifiedhas_sensitive_contentcontent_gating+2 more
1 credit
GET/v1/linktree/profiles
usernamesNeeds terms
usernamepage_titleverifiedis_profile_verifiedhas_sensitive_contentcontent_gating+3 more
1 credit

Overview

About the Linktree API

What you can get

The Linktree API returns public Linktree profile data as JSON through 2 endpoints. All of them are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.

  • One profile: profile takes a username.
  • Several profiles: profiles takes usernames (up to 500 characters).

Both endpoints take usernames directly, so there's no ID lookup step before the call.

How a call works

Look up one page: GET /v1/linktree/profile?username=... with your key in the X-API-Key header. To read several pages in one request, pass them to profiles in usernames. Neither endpoint has paging parameters. Every successful call costs 1 credit; failed calls cost nothing.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

Check which public links a brand's own Linktree page points to

Use the Linktree API to check which public links a brand's own Linktree page points to

Keep a brand's link-in-bio page in sync with its other channels

Use the Linktree API to keep a brand's link-in-bio page in sync with its other channels

Study how brands in a market use link-in-bio pages, in aggregate

Use the Linktree API to study how brands in a market use link-in-bio pages, in aggregate

Audit the Linktree pages your own organization runs

Use the Linktree API to audit the Linktree pages your own organization runs

FAQ

Questions

Do I need a Linktree API key?

No. You call this Linktree API with your Perceptlayer key in the `X-API-Key` header, so there's no Linktree developer account to set up. You do need to accept the restricted-endpoint terms first.

How much does the Linktree API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Can I look up more than one Linktree profile per call?

Yes. Use `profiles` instead of `profile`: it takes `usernames`, up to 500 characters in one request.

Is this the official Linktree API?

No. Perceptlayer is an independent service and is not affiliated with Linktree. It returns Linktree data as JSON with a Perceptlayer key, so there is no Linktree developer account, app review or partner approval to get first. It only reads data: if Linktree has an official API and you need to act on your own Linktree account, such as posting, managing orders or reading private data, use that one.

Should I build a Linktree scraper instead?

You can, but a Linktree scraper is code you maintain: page changes break it, requests get blocked, and Linktree's terms govern how you collect data. The Linktree API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

Try the Linktree API with 100 free credits

No credit card. Failed calls are never billed.