Extract full page contents for a set of URLs.
curl --request POST \
--url https://api.aisa.one/apis/v1/exa/contents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"https://example.com/article"
],
"text": true,
"highlights": true,
"summary": true,
"subpages": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/exa/contents"
payload = {
"ids": ["https://example.com/article"],
"text": True,
"highlights": True,
"summary": True,
"subpages": 123
}
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({
ids: ['https://example.com/article'],
text: true,
highlights: true,
summary: true,
subpages: 123
})
};
fetch('https://api.aisa.one/apis/v1/exa/contents', 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/exa/contents",
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([
'ids' => [
'https://example.com/article'
],
'text' => true,
'highlights' => true,
'summary' => true,
'subpages' => 123
]),
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/exa/contents"
payload := strings.NewReader("{\n \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\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/exa/contents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/exa/contents")
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 \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"publishedDate": "<string>",
"author": "<string>",
"id": "<string>",
"text": "<string>",
"highlights": [
"<string>"
],
"summary": "<string>"
}
]
}Search API
Exa Contents
Fetch page text and metadata for URLs you already have.
POST
https://api.aisa.one/apis/v1
/
exa
/
contents
Extract full page contents for a set of URLs.
curl --request POST \
--url https://api.aisa.one/apis/v1/exa/contents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"https://example.com/article"
],
"text": true,
"highlights": true,
"summary": true,
"subpages": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/exa/contents"
payload = {
"ids": ["https://example.com/article"],
"text": True,
"highlights": True,
"summary": True,
"subpages": 123
}
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({
ids: ['https://example.com/article'],
text: true,
highlights: true,
summary: true,
subpages: 123
})
};
fetch('https://api.aisa.one/apis/v1/exa/contents', 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/exa/contents",
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([
'ids' => [
'https://example.com/article'
],
'text' => true,
'highlights' => true,
'summary' => true,
'subpages' => 123
]),
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/exa/contents"
payload := strings.NewReader("{\n \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\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/exa/contents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/exa/contents")
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 \"ids\": [\n \"https://example.com/article\"\n ],\n \"text\": true,\n \"highlights\": true,\n \"summary\": true,\n \"subpages\": 123\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"publishedDate": "<string>",
"author": "<string>",
"id": "<string>",
"text": "<string>",
"highlights": [
"<string>"
],
"summary": "<string>"
}
]
}Fetch page text and metadata for URLs you already have.
ids is required and takes the id values from post_exa_search — which are plain URLs, so any URL works. Toggle text, highlights, summary, subpages and livecrawl. Returns results[] with id, title, url, author and text, plus a statuses[] array giving per-URL status and source — read it, because a URL that could not be fetched is reported there rather than raising. Cached results are served instantly; a miss falls back to a live crawl. Measured at 1.2 seconds. Billed a flat $0.08 per successful request. For a whole site rather than a URL list, post_firecrawl_crawl.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The URLs (or Exa result ids) to fetch contents for.
Example:
["https://example.com/article"]
Return the full page text.
Return highlighted relevant snippets.
Return an AI-generated summary of the page.
Number of linked subpages to also fetch.
Freshness policy: always live-crawl, fall back to live crawl on cache miss, or never live-crawl.
Available options:
always, fallback, never