Get Results
curl --request GET \
--url https://api.promptloop.com/v0.1/batches/{batch_id}/results \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/batches/{batch_id}/results"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.promptloop.com/v0.1/batches/{batch_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data": [
{
"row_id": "a427201b-2340-4f06-ad68-2da8e0fdb120",
"user_provided_data_uuid": "51",
"input_array": [
"Acmeco.com"
],
"row_data_json": {
"website": "http://www.acmeco.com",
"site description": "Acme Co is...",
"contact email": "hello@acmeco.com",
"pricing page link": "Not Found"
},
"row_list_data_json": [
{
"name": "Product A",
"price": "$99",
"description": "Description for product A"
},
{
"name": "Product B",
"price": "$149",
"description": "Description for product B"
},
{
"name": "Product C",
"price": "$199",
"description": "Description for product C"
}
],
"confidence_interval": 8,
"links_crawled": [
"http://www.acmeco.com",
"http://www.acmeco.com/about"
],
"list": false,
"list_entity_count": 0,
"error": true
}
]
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"file": {
"file": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Batches
Get Results
Returns raw JSON results for a completed batch. Use a webhook configured on the batch for push delivery.
GET
/
v0.1
/
batches
/
{batch_id}
/
results
Get Results
curl --request GET \
--url https://api.promptloop.com/v0.1/batches/{batch_id}/results \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/batches/{batch_id}/results"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.promptloop.com/v0.1/batches/{batch_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data": [
{
"row_id": "a427201b-2340-4f06-ad68-2da8e0fdb120",
"user_provided_data_uuid": "51",
"input_array": [
"Acmeco.com"
],
"row_data_json": {
"website": "http://www.acmeco.com",
"site description": "Acme Co is...",
"contact email": "hello@acmeco.com",
"pricing page link": "Not Found"
},
"row_list_data_json": [
{
"name": "Product A",
"price": "$99",
"description": "Description for product A"
},
{
"name": "Product B",
"price": "$149",
"description": "Description for product B"
},
{
"name": "Product C",
"price": "$199",
"description": "Description for product C"
}
],
"confidence_interval": 8,
"links_crawled": [
"http://www.acmeco.com",
"http://www.acmeco.com/about"
],
"list": false,
"list_entity_count": 0,
"error": true
}
]
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"file": {
"file": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Authorizations
Path Parameters
Batch ID to retrieve results from
Query Parameters
Result representation. The SDK currently exposes raw JSON results.
Available options:
raw Response
Successfully retrieved batch results
⌘I
