Call it
curl https://api.peume.com/v1/call/page-keyword-density \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"id": "09101923-1535-0216-0000-2389a8854b70",
"keyword_length": 2,
"url": "https://example.com/",
"filters": [
"frequency",
">",
5
]
}
}'const res = await fetch("https://api.peume.com/v1/call/page-keyword-density", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"id": "09101923-1535-0216-0000-2389a8854b70",
"keyword_length": 2,
"url": "https://example.com/",
"filters": [
"frequency",
">",
5
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/page-keyword-density",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"id": "09101923-1535-0216-0000-2389a8854b70",
"keyword_length": 2,
"url": "https://example.com/",
"filters": [
"frequency",
">",
5
]
}
},
)
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: page-keyword-density.
Parameters
idstringID of the task required field you can get this ID in the response of the Task POST endpoint example: “07131248-1535-0216-1000-17384017ad04”
Example: 09101923-1535-0216-0000-2389a8854b70
keyword_lengthintegernumber of words for a keyword required field possible values: 1, 2, 3, 4, 5
Example: 2
urlstringpage URL optional field if you do not specify a page here, the results will be provided for the whole website if you use this field, the API response will contain only keywords from the specified page a page should be specified with absolute URL (including http:// or https://)
Example: https://example.com/
limitintegerthe maximum number of returned keywords optional field default value: 100 maximum value: 1000
filtersarrayarray of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, =, <>, in, not_in, like, not_like you can use the % operator with lik
Example: ["frequency",">",5]
order_byarrayresults sorting rules optional field you can use the same values as in the filters array to sort the results possible sorting types: asc – results will be sorted in the ascending order desc – results will be sorted in the descending order you should use a comma to set up a sorting type example: ["fr
tagstringuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
