curl --request POST \
  --url https://api.promptloop.com/v0.1/tasks/YOUR_TASK_ID \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
  "task_version": 0,
  "inputs": [
    "promptloop.com"
  ]
}'

Welcome to the PromptLoop API

This API provides access to PromptLoop functionality. PromptLoop is an AI platform that lets you:
  • Enrich company datasets with AI web research
  • Build proprietary Go-To-Market datasets for Sales & Marketing
  • Automate repeatable AI transformations on spreadsheet text data
  • Scrape and extract structured data from websites and lists

Account Set up

To use the API, you will need access to a PromptLoop account. You can sign up for a free trial and if you are interested in building with the api you can reach out to team@promptloop.com.
The API lets you run existing PromptLoop Tasks so you will need to set them up there before running the API

Run a single Job

Once you have a task and a task ID, you can provide an input and get back live data just like you would on the PromptLoop Platform. Request
Request
curl --request POST \
  --url https://api.promptloop.com/v0.1/tasks/YOUR_TASK_ID \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
  "task_version": 0,
  "inputs": [
    "promptloop.com"
  ]
}'
Response
Response
{
  "status": "success",
  "data": {
    "job_id": "6497b030-f841-4421-ab39-7e0c16e83ee6",
    "error_detected": false,
    "list": false,
    "data_json": {
      "Site Description": "PromptLoop is an AI platform for GTM and B2B sales that automates web scraping, deep research, and CRM data enrichment, providing accurate B2B insights to make research 10 times faster.",
      "Contact Email": "team@promptloop.com"
    },
    "list_data_json": null
  },
  "message": "",
  "error": null,
  "request_id": "9e56405e-f910-43ae-ad95-d2d09ad83909"
}
Most of the time you will be using Batch APIs - which amount to sending a set of inputs like this example at once and receiving a webhook
Once you send your first request you are off to a great start!
curl --request POST \
  --url https://api.promptloop.com/v0.1/tasks/YOUR_TASK_ID \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
  "task_version": 0,
  "inputs": [
    "promptloop.com"
  ]
}'

Continued: Core PromptLoop Concepts

Generate and API Access

Teams on PromptLoop enterprise plans can access our core API: These features can be enabled and managed in your team’s settings page.

Learn More