Make your first API call
Get a key, call the API and read what comes back.
On this page
Every endpoint, field and error is in the API docs. This page gets you to a first answer.
Get a key
In Leewou, open Settings, then API keys, and click Create key. It starts with lw_live_ and shows once, so copy it then.
Keep it on your server, never in a browser or an app. Your first key comes with 1,000 free credits for 60 days.
Make a call
Send the key in the Authorization header. Every request names its platform. This one reads a creator’s profile live from Instagram, for 3 credits.
curl https://api.leewou.com/v1/creators/profile \
-H "Authorization: Bearer $LEEWOU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform": "instagram", "username": "novasistas"}'const res = await fetch("https://api.leewou.com/v1/creators/profile", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LEEWOU_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ platform: "instagram", username: "novasistas" }),
});
const profile = await res.json();import os
import requests
res = requests.post(
"https://api.leewou.com/v1/creators/profile",
headers={"Authorization": f"Bearer {os.environ['LEEWOU_API_KEY']}"},
json={"platform": "instagram", "username": "novasistas"},
)
profile = res.json()Read the answer
Answers are JSON with snake_case names. Shares are fractions, so 0.25 means 25%. A field with no data is null.
{
"platform": "instagram",
"username": "novasistas",
"full_name": "Nic & Liv | Dopamine Dressing + Colourful Living",
"url": "https://www.instagram.com/novasistas",
"followers": 89172,
"posts_count": 758,
"is_verified": false,
"is_private": false
}Each answer says what it cost in X-Credits-Charged and what is left in X-Credits-Remaining. Keep X-Request-Id if you write to support.
Search for creators
Search takes filters on the creator and on their audience. It costs 1 credit for each creator it returns, so an empty page is free. Pages hold up to 50 creators.
{
"platform": "instagram",
"filters": {
"creator": { "followers": { "min": 20000, "max": 300000 } },
"audience": {
"locations": [
{ "location": "United Kingdom", "min_share": 0.3 }
],
"gender": { "value": "female", "min_share": 0.6 }
}
},
"sort": { "by": "engagement_rate" },
"page_size": 15
}Filter values like places and topics come from the free /v1/dictionaries endpoints. More on the creator search page.
Errors and limits
Every error has the same shape. Branch on code; the message is for people and may change.
{
"error": {
"type": "invalid_request_error",
"code": "invalid_filter",
"message": "…",
"param": "filters.content.topics",
"request_id": "req_…"
}
}- 402 insufficient_credits: the call stopped before it ran. Nothing was charged.
- 429 rate_limited: wait for
Retry-After, usually a second or two, then try again. - 503: busy for a moment. Retry after
Retry-After.
Send Idempotency-Key on POST requests. A retry with the same key within 24 hours gets the first answer and is never charged twice. Limits for each key are on the pricing page.
Long jobs
Audience overlap, email lookup, reach estimates, purchase intent and brand collaborations run as jobs. A call waits up to 30 seconds. If the job needs longer, it answers 202 with a Location to check, at GET /v1/jobs/{id}, for free.