Call it
curl https://api.peume.com/v1/call/scrape-fonts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"domain": "your domain",
"directUrl": "your directUrl"
}
}'const res = await fetch("https://api.peume.com/v1/call/scrape-fonts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"domain": "your domain",
"directUrl": "your directUrl"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/scrape-fonts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"domain": "your domain",
"directUrl": "your directUrl"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: scrape-fonts.
Parameters
domainstringDomain to detect fonts on, e.g. 'example.com'. Mutually exclusive with directUrl.
directUrlstringExact URL to use, bypassing domain resolution (e.g. 'https://example.com/pricing'). Mutually exclusive with domain.
maxAgeMsintegerMaximum age in milliseconds of cached brand data before hard-refreshes it. Default 7776000000 (3 months); values are clamped to [86400000 (1 day), 31536000000 (1 year)].
timeoutMSintegerUpstream timeout in milliseconds (max 300000). aborts the call with a 408 when exceeded. Keep it below the endpoint's requestTimeoutMs so the provider answers before the platform's own budget expires.
