Quickstart
1. Create your account: your first key is waiting in the dashboard, with $1 of calls.
2. Find what you need in the catalog or with GET /v1/search.
3. Call it with POST /v1/call/{id}.
export PEUME_API_KEY=pk_live_…
curl https://api.peume.com/v1/call/google-get-organic-search-results-for-a-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": {"q": "best crm for startups"}}'
const res = await fetch(
"https://api.peume.com/v1/call/google-get-organic-search-results-for-a-keyword",
{
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ input: { q: "best crm for startups" } }),
}
);
const { output, cost_usd } = await res.json();
import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-get-organic-search-results-for-a-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={"input": {"q": "best crm for startups"}},
)
print(res.json()["output"])Your API key
Send it in the Authorization header as Bearer pk_live_… (or in x-api-key). Create, rename and delete keys in the dashboard. A key is shown once: keep it in an environment variable, never in code you share. Every key of your account draws on the same balance.
Base URL: https://api.peume.com. Requests and answers are JSON.
Find an API
GET /v1/search?q=… searches the catalog by the job you want done. Optional: category (see GET /v1/categories), source (e.g. LinkedIn), limit (up to 100) and offset. No key needed.
curl "https://api.peume.com/v1/search?q=instagram+followers&limit=3"
{
"total": 312,
"results": [
{
"id": "instagram-followers-2",
"name": "Instagram Followers",
"description": "The followers of a public Instagram account.",
"category": "social",
"source": "Instagram",
"price": { "usd": 0.00083, "unit": "call", "text": "$0.00083 per call" }
}
]
}When several sources sell the same thing, results are ranked so the most relevant come first and, at equal relevance, the cheapest. Results marked smart_route try the cheapest source first and move to the next until one answers.
Read its parameters
GET /v1/endpoints/{id} returns the parameters (name, type, required, description, example), the price, and alternatives: other endpoints for the same job, cheapest first. Each endpoint also has a page in the catalog with ready-to-paste code.
Call it
POST /v1/call/{id} with a JSON body. Put the parameters in input, by name. Peume sends each one where the source expects it (query, path or body).
POST /v1/call/{id}
{
"input": { "username": "nasa" },
"wait": 60 // optional: seconds to wait before answering with a run id (1 to 300)
}
200 OK
x-peume-cost-usd: 0.00083
{
"id": "run_8kT…",
"status": "completed",
"endpoint": "instagram-followers-2",
"cost_usd": 0.00083,
"duration_ms": 2140,
"output": { … } // the source’s answer, as JSON
}Each call is billed from its real cost, at most the price shown in the catalog for the same input. Big inputs (more results, more pages) cost more on per-result APIs: the price tells you the unit.
Long jobs
Some jobs take longer than you want to wait (video generation, large scrapes). If the answer isn’t ready after wait seconds, you get 202 Accepted with a run id. Read it until its status is completed or failed. Results are kept 24 hours.
GET /v1/runs/run_8kT…
{ "id": "run_8kT…", "status": "running" } // 202, ask again in a few seconds
{ "id": "run_8kT…", "status": "completed", "output": … } // 200Errors
Errors come as {"error": {"code": "…", "message": "…"}} with a plain message you can show. A failed call is never charged.
| Status | Code | What to do |
|---|---|---|
| 400 | missing_params, invalid_request | Fix the input. missing lists what’s required. |
| 401 | missing_key, invalid_key | Send a valid key in the Authorization header. |
| 402 | insufficient_credit | Top up or upgrade in the dashboard. |
| 403 | not_your_resource | Use ids returned by your own calls. |
| 404 | not_found | Unknown endpoint or nothing found for this input. |
| 429 | rate_limited, too_many_concurrent | Wait Retry-After seconds. |
| 502, 503 | source_unavailable | Every source is down for now. Retry in a few minutes. |
| 504 | timeout | The source took too long. Retry, or ask for less. |
Credit and prices
Your balance is in US dollars. Calls use your plan’s monthly credit first, then credit you bought. GET /v1/balance returns it; GET /v1/usage returns the last 30 days. When the balance can’t cover a call, the call stops with 402 before anything is spent. See pricing.
Rate limits
| Plan | Calls a minute | At the same time | Keys |
|---|---|---|---|
| Free | 60 | 5 | 3 |
| Starter | 300 | 20 | 10 |
| Pro | 1,200 | 50 | 50 |
| Scale | 6,000 | 200 | 200 |
Search and endpoint details without a key are limited to 120 requests a minute per IP.
Your own accounts
APIs marked Your account publish, reply and manage ads on accounts you connect: Instagram, TikTok, LinkedIn, X, YouTube, Facebook, Threads, Pinterest, Reddit, Bluesky, Google Business, Telegram and Snapchat. Connect them in the dashboard under Accounts (you sign in on the network’s own page). Calls only ever reach your own accounts and the posts, messages and campaigns they return. Each call costs a flat $0.002.
curl https://api.peume.com/v1/call/create-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-d '{"input": {
"content": "We just shipped dark mode.",
"platforms": [{ "platform": "linkedin", "accountId": "acc_…" }],
"publishNow": true }}'MCP for AI agents
The MCP server gives an agent five tools: search_apis, get_api, call_api, get_run and get_balance. Same key, same balance, same logs.
Claude Code
claude mcp add --transport http peume https://api.peume.com/mcp \
--header "Authorization: Bearer pk_live_…"Cursor, Windsurf and other clients
{
"mcpServers": {
"peume": {
"url": "https://api.peume.com/mcp",
"headers": { "Authorization": "Bearer pk_live_…" }
}
}
}Claude Desktop
{
"mcpServers": {
"peume": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.peume.com/mcp",
"--header", "Authorization: Bearer pk_live_…"]
}
}
}Then ask your agent for what you need (“find the work email of the head of marketing at Doctolib”). It searches, reads the parameters and calls on its own.
