extract
curl --request POST \
--url https://api.aisa.one/apis/v1/parallel/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/parallel/extract"
payload = { "urls": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://api.aisa.one/apis/v1/parallel/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/parallel/extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/parallel/extract"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/parallel/extract")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/parallel/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"errors": [
{
"content": "Error fetching content from https://www.example.com",
"error_type": "fetch_error",
"http_status_code": 500,
"url": "https://www.example.com"
}
],
"extract_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"excerpts": [
"Excerpted text ..."
],
"full_content": "Full content ...",
"title": "Example Title",
"url": "https://www.example.com"
}
],
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0"
}Parallel
extract
Extracts relevant content from specific web URLs.
POST
https://api.aisa.one
/
apis
/
v1
/
parallel
/
extract
extract
curl --request POST \
--url https://api.aisa.one/apis/v1/parallel/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/parallel/extract"
payload = { "urls": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://api.aisa.one/apis/v1/parallel/extract', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/parallel/extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/parallel/extract"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/parallel/extract")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/parallel/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"errors": [
{
"content": "Error fetching content from https://www.example.com",
"error_type": "fetch_error",
"http_status_code": 500,
"url": "https://www.example.com"
}
],
"extract_id": "extract_8a911eb27c7a4afaa20d0d9dc98d07c0",
"results": [
{
"excerpts": [
"Excerpted text ..."
],
"full_content": "Full content ...",
"title": "Example Title",
"url": "https://www.example.com"
}
],
"session_id": "session_8a911eb27c7a4afaa20d0d9dc98d07c0"
}请求规范
- 方法与路径: POST /apis/v1/parallel/extract
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/parallel/extract
{
"operationId": "any_parallel_ai_apis_v1_parallel_extract",
"method": "POST",
"path": "/apis/v1/parallel/extract",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"description": "Extract request.",
"properties": {
"advanced_settings": {
"anyOf": [
{
"additionalProperties": false,
"description": "Advanced extract configuration.\n\nThese settings may impact result quality and latency unless used carefully.\nSee https://docs.parallel.ai/search/advanced-extract-settings for more info.",
"properties": {
"excerpt_settings": {
"anyOf": [
{
"additionalProperties": false,
"description": "Optional settings for returning relevant excerpts.",
"properties": {
"max_chars_per_result": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional upper bound on the total number of characters to include per url. Excerpts may contain fewer characters than this limit to maximize relevance and token efficiency.",
"title": "Max Chars Per Result"
}
},
"title": "V1ExcerptSettings",
"type": "object"
},
{
"type": "null"
}
],
"description": "Controls excerpt sizes. Provide excerpt settings for fine-grained control, or omit to use defaults."
},
"fetch_policy": {
"anyOf": [
{
"description": "Policy for live fetching web results.",
"properties": {
"disable_cache_fallback": {
"default": false,
"description": "If false, fallback to cached content older than max-age if live fetch fails or times out. If true, returns an error instead.",
"title": "Disable Cache Fallback",
"type": "boolean"
},
"max_age_seconds": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum age of cached content in seconds to trigger a live fetch. Minimum value 600 seconds (10 minutes).",
"examples": [
86400
],
"title": "Max Age Seconds"
},
"timeout_seconds": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Timeout in seconds for fetching live content if unavailable in cache.",
"examples": [
60.0
],
"title": "Timeout Seconds"
}
},
"title": "FetchPolicy",
"type": "object"
},
{
"type": "null"
}
],
"description": "Fetch policy: determines when to return cached content from the index (faster) vs fetching live content (fresher). Default is to use a dynamic policy based on the search objective and url. Note: enabling live fetch significantly increases extract latency because it requires fetching content from source websites."
},
"full_content": {
"anyOf": [
{
"description": "Optional settings for returning full content.",
"properties": {
"max_chars_per_result": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional limit on the number of characters to include in the full content for each url. Full content always starts at the beginning of the page and is truncated at the limit if necessary.",
"title": "Max Chars Per Result"
}
},
"title": "FullContentSettings",
"type": "object"
},
{
"type": "boolean"
}
],
"default": false,
"description": "Controls full content extraction. Set to true to enable with defaults, false to disable, or provide FullContentSettings for fine-grained control.",
"title": "Full Content"
}
},
"title": "AdvancedExtractSettings",
"type": "object"
},
{
"type": "null"
}
],
"description": "Advanced configuration for fetch policy, excerpt settings, and full content settings. May impact result quality and latency unless used carefully. When omitted, excerpts are enabled and full content is disabled by default."
},
"client_model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The model generating this request and consuming the results. Enables optimizations and tailors default settings for the model's capabilities.",
"examples": [
"claude-opus-4-7",
"gpt-5.4",
"gemini-3.1-pro"
],
"title": "Client Model"
},
"max_chars_total": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Upper bound on total characters across excerpts from all extracted results.",
"title": "Max Chars Total"
},
"objective": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "As in SearchRequest, a natural-language description of the underlying question or goal driving the request. Used together with search_queries to focus excerpts on the most relevant content.",
"title": "Objective"
},
"search_queries": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Optional keyword search queries, as in SearchRequest. Used together with objective to focus excerpts on the most relevant content.",
"title": "Search Queries"
},
"session_id": {
"anyOf": [
{
"maxLength": 1000,
"type": "string"
},
{
"type": "null"
}
],
"description": "Session identifier to track calls across separate search and extract calls, to be used as part of a larger task. Specifying it may give better contextual results for subsequent API calls.",
"title": "Session Id"
},
"urls": {
"description": "URLs to extract content from. Up to 20 URLs.",
"items": {
"type": "string"
},
"title": "Urls",
"type": "array"
}
},
"required": [
"urls"
],
"title": "V1ExtractRequest",
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际计费结果数量收费。 默认请求预估费用:$0.02 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
Extract request.
响应
Successful Response
Extract response.