Call it
curl https://api.peume.com/v1/call/pages-using-a-resource \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"id": "02241700-1535-0216-0000-034137259bc1",
"url": "https://www.etsy.com/about/jobs.workco2018.js?"
}
}'const res = await fetch("https://api.peume.com/v1/call/pages-using-a-resource", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"id": "02241700-1535-0216-0000-034137259bc1",
"url": "https://www.etsy.com/about/jobs.workco2018.js?"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pages-using-a-resource",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"id": "02241700-1535-0216-0000-034137259bc1",
"url": "https://www.etsy.com/about/jobs.workco2018.js?"
}
},
)
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: pages-using-a-resource.
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: 02241700-1535-0216-0000-034137259bc1
urlstringresource URL required field you can get this URL in the response of the Resources endpoint example:
Example: https://www.etsy.com/about/jobs.workco2018.js?
limitintegerthe maximum number of returned pages optional field default value: 100 maximum value: 1000
offsetintegeroffset in the results array of returned pages optional field default value: 0 maximum value: 2000000 if you specify the 10 value, the first ten pages in the results array will be omitted and the data will be provided for the successive pages
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 % ope
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: ["me
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
