Run Dynamic Task
curl --request POST \
--url https://api.promptloop.com/v0/tasks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"websiteUrl": "https://promptloop.com",
"variableSearchItems": [
{
"query": "What is this website?",
"formatting": {
"keyword": "company_description"
}
}
]
}
'import requests
url = "https://api.promptloop.com/v0/tasks"
payload = {
"websiteUrl": "https://promptloop.com",
"variableSearchItems": [
{
"query": "What is this website?",
"formatting": { "keyword": "company_description" }
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
websiteUrl: 'https://promptloop.com',
variableSearchItems: [{query: 'What is this website?', formatting: {keyword: 'company_description'}}]
})
};
fetch('https://api.promptloop.com/v0/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data_json": [
{}
],
"job_id": "<string>",
"error_detected": true
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}Tasks
Run Dynamic Task
Runs the dynamic research task with custom queries. Provide a website URL and a list of queries with optional formatting guidance and the task will return the enriched results.
POST
/
v0
/
tasks
Run Dynamic Task
curl --request POST \
--url https://api.promptloop.com/v0/tasks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"websiteUrl": "https://promptloop.com",
"variableSearchItems": [
{
"query": "What is this website?",
"formatting": {
"keyword": "company_description"
}
}
]
}
'import requests
url = "https://api.promptloop.com/v0/tasks"
payload = {
"websiteUrl": "https://promptloop.com",
"variableSearchItems": [
{
"query": "What is this website?",
"formatting": { "keyword": "company_description" }
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
websiteUrl: 'https://promptloop.com',
variableSearchItems: [{query: 'What is this website?', formatting: {keyword: 'company_description'}}]
})
};
fetch('https://api.promptloop.com/v0/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data_json": [
{}
],
"job_id": "<string>",
"error_detected": true
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}Authorizations
Body
application/json
Target website that should be analyzed
Example:
"https://promptloop.com"
Queries that will be evaluated against the site, returned using the provided formatting guidance
Show child attributes
Show child attributes
Optional flag to enable turbo execution mode for this request. Can expect around 2x speed improvement with slightly lower quality results.
