Documentation Index
Fetch the complete documentation index at: https://docs.parallel.ai/llms.txt
Use this file to discover all available pages before exploring further.
For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending
.md to its URL or sending Accept: text/markdown.API Overview
The Parallel Ingest API provides endpoints for creating intelligent task runs that can perform web research and data extraction. The API is built around a stateful architecture where task creation and result retrieval are separate operations.Endpoints
Suggest Task
POST /v1beta/tasks/suggest
Generate a task specification based on user intent. This endpoint helps you create properly structured tasks by analyzing your requirements and suggesting appropriate schemas.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_intent | string | Yes | Natural language description of what you want to accomplish |
previous_task | SuggestedTaskSpec | No | Previous task specification to iterate upon and improve, or to restrict input columns to a predefined set (see example below) |
Response Schema
Returns aSuggestedTaskSpec object with the following fields:
| Field | Type | Description |
|---|---|---|
input_schema | object | JSON schema defining expected input structure |
output_schema | object | JSON schema defining expected output structure |
inputs | array | Sample input data, if provided in the user intent |
title | string | Suggested title for the task |
warnings | array | Optional list of warnings about the generated specification |
| Warning Type | Description |
|---|---|
schema_generalization | Some fields were generalized to create a more reusable schema |
unparsable_input | User-provided input data couldn’t be fully parsed |
unattainable_task | The requested task cannot be created exactly as specified |
Example Request
- cURL
- Python
- TypeScript
Example Response
Suggest Processor
POST /v1beta/tasks/suggest-processor
Enhance and optimize a task specification by suggesting the most appropriate processor and refining the schemas.
Suggest Processor Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_spec | object | Yes | Task specification object to be processed |
choose_processors_from | array | No | List of processors to choose from. If not provided, the API will consider all available processors. |
base, base-fast, core, core-fast, core2x, core2x-fast, pro, pro-fast, ultra, ultra-fast, ultra2x, ultra2x-fast, ultra4x, ultra4x-fast, ultra8x, ultra8x-fast
The
lite and lite-fast processors are available for task execution but will never be returned by this endpoint.Suggest Processor Example Request
- cURL
- Python
- TypeScript
Suggest Processor Response Schema
| Field | Type | Description |
|---|---|---|
recommended_processors | array | List of recommended processors in priority order. We recommend using the first element. |
Suggest Processor Example Response
How Processor Suggestion Works
The/suggest-processor endpoint analyzes your task specification to recommend the most appropriate processor. The algorithm considers:
- Task Complexity - Number of output fields, depth of research required
- Research Pattern - Whether the task requires single-step lookups, multi-step reasoning, or parallel breadth-first research
- Data Sources - How many disparate sources need to be consulted
- Special Tools - Whether the task requires specialized capabilities like entity ranking
The first processor in
recommended_processors is always the best recommendation. The API may return multiple processors if several could handle the task, but we recommend using the first one.Examples
Select Input Columns from a Predefined Set
Sometimes you have a specific dataset with fixed columns and need to create a task that works exclusively with those columns. Theprevious_task parameter allows you to constrain the API to generate task specifications that match your exact data structure.
When to use this approach:
- You have a fixed dataset schema that cannot be modified
- You want to ensure the task only uses your specific input columns
- You need to provide examples that match your exact data format
- You want to prevent the API from suggesting additional input fields
- Define Your Schema: Specify exactly which columns you want to use as inputs with their descriptions
- Provide Sample Data: Include examples that match your exact data format
- Generate a
SuggestedTaskSpec: Use the helper function to create a properly formattedSuggestedTaskSpecobject - Refine with API: Pass this as
previous_taskto get a refined task spec that respects your column constraints
End-to-End Ingest to Task Execution
The following Python script demonstrates the complete workflow of the Ingest API, from task suggestion to result retrieval:- Suggest Task: Generate a task specification from natural language intent
- Suggest Processor: Get processor recommendations and enhanced schemas
- Create Task Run: Submit the task for processing with proper schema formatting
- Get Results: Poll for completion and retrieve the final results