curl --request POST \
--url https://api.octen.ai/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"https://octen.ai/",
"https://docs.octen.ai/api-reference/search"
]
}
'{
"code": 0,
"msg": "success",
"request_id": "req_abc123def456",
"data": {
"results": [
{
"url": "https://octen.ai/",
"status": "success",
"resolved_mode": "standard",
"title": "Octen | The Search infrastructure for AI",
"full_content": "# Search infrastructure for AI\n\nReal-time indexing | Low latency | High reliability\n\nStart Building | View Docs\n\n## Search Beyond Text\n\nBeyond text queries: Octen's multimodal search understands images and videos alongside text...",
"highlights": null,
"time_published": null,
"time_last_crawled": "2026-07-03T09:35:43Z",
"page_structure": {
"primary": "Index Page",
"secondary": "Home Page"
},
"category": {
"primary": "Computers, Electronics & Technology",
"secondary": "Search Engines"
},
"favicon": "https://octen.ai/favicon.ico",
"cover_image": {
"url": "https://octen.ai/_next/static/media/octen-cover.dc74905e.png"
},
"images": [
{
"url": "https://octen.ai/_next/static/media/multi-modal-img.ccffddff.png"
},
{
"url": "https://octen.ai/_next/static/media/showcase-multimodal1.449ae003.png"
}
],
"videos": [
{
"url": "https://octen.ai/static/video/multimodal-video.mp4"
}
],
"links": [
{
"url": "https://octen.ai/pricing",
"anchor_text": "Pricing",
"is_external": false
},
{
"url": "https://docs.octen.ai/overview/welcome",
"anchor_text": "View Docs",
"is_external": false
},
{
"url": "https://github.com/Octen-Team/octen-skills",
"anchor_text": "GitHub",
"is_external": true
}
]
},
{
"url": "https://docs.octen.ai/api-reference/search",
"status": "success",
"resolved_mode": "standard",
"title": "Search - Octen",
"full_content": "# Search API\n\nOcten Search API enables ranked web results with query-focused highlights, time filtering, and multimodal assets...",
"highlights": null,
"time_published": "2024-10-15T00:00:00Z",
"time_last_crawled": "2026-07-03T09:34:29Z",
"page_structure": {
"primary": "Content Page",
"secondary": "Code"
},
"category": {
"primary": "Computers, Electronics & Technology",
"secondary": "Search Engines"
},
"favicon": "https://docs.octen.ai/favicon.ico",
"cover_image": {
"url": "https://octen.ai/_next/static/media/octen-cover.dc74905e.png"
}
}
]
},
"meta": {
"usage": {
"total_urls": 2,
"successful_urls": 2,
"successful_by_mode": {
"standard_urls": 2,
"advanced_urls": 0
}
},
"latency": 1832,
"warning": ""
}
}{
"code": 400,
"msg": "Invalid params. Missing parameter urls",
"request_id": "req_abc123def456"
}{
"code": 401,
"msg": "Invalid API Key",
"request_id": "req_abc123def456"
}{
"code": 403,
"msg": "Insufficient balance in account",
"request_id": "req_abc123def456"
}{
"code": 429,
"msg": "Exceeding the rate limit",
"request_id": "req_abc123def456"
}{
"code": 500,
"msg": "Internal error",
"request_id": "req_abc123def456"
}Extract
Extracts clean markdown content from URLs. Supports batch processing, query-focused highlights, page classification, and multimedia resources.
curl --request POST \
--url https://api.octen.ai/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"https://octen.ai/",
"https://docs.octen.ai/api-reference/search"
]
}
'{
"code": 0,
"msg": "success",
"request_id": "req_abc123def456",
"data": {
"results": [
{
"url": "https://octen.ai/",
"status": "success",
"resolved_mode": "standard",
"title": "Octen | The Search infrastructure for AI",
"full_content": "# Search infrastructure for AI\n\nReal-time indexing | Low latency | High reliability\n\nStart Building | View Docs\n\n## Search Beyond Text\n\nBeyond text queries: Octen's multimodal search understands images and videos alongside text...",
"highlights": null,
"time_published": null,
"time_last_crawled": "2026-07-03T09:35:43Z",
"page_structure": {
"primary": "Index Page",
"secondary": "Home Page"
},
"category": {
"primary": "Computers, Electronics & Technology",
"secondary": "Search Engines"
},
"favicon": "https://octen.ai/favicon.ico",
"cover_image": {
"url": "https://octen.ai/_next/static/media/octen-cover.dc74905e.png"
},
"images": [
{
"url": "https://octen.ai/_next/static/media/multi-modal-img.ccffddff.png"
},
{
"url": "https://octen.ai/_next/static/media/showcase-multimodal1.449ae003.png"
}
],
"videos": [
{
"url": "https://octen.ai/static/video/multimodal-video.mp4"
}
],
"links": [
{
"url": "https://octen.ai/pricing",
"anchor_text": "Pricing",
"is_external": false
},
{
"url": "https://docs.octen.ai/overview/welcome",
"anchor_text": "View Docs",
"is_external": false
},
{
"url": "https://github.com/Octen-Team/octen-skills",
"anchor_text": "GitHub",
"is_external": true
}
]
},
{
"url": "https://docs.octen.ai/api-reference/search",
"status": "success",
"resolved_mode": "standard",
"title": "Search - Octen",
"full_content": "# Search API\n\nOcten Search API enables ranked web results with query-focused highlights, time filtering, and multimodal assets...",
"highlights": null,
"time_published": "2024-10-15T00:00:00Z",
"time_last_crawled": "2026-07-03T09:34:29Z",
"page_structure": {
"primary": "Content Page",
"secondary": "Code"
},
"category": {
"primary": "Computers, Electronics & Technology",
"secondary": "Search Engines"
},
"favicon": "https://docs.octen.ai/favicon.ico",
"cover_image": {
"url": "https://octen.ai/_next/static/media/octen-cover.dc74905e.png"
}
}
]
},
"meta": {
"usage": {
"total_urls": 2,
"successful_urls": 2,
"successful_by_mode": {
"standard_urls": 2,
"advanced_urls": 0
}
},
"latency": 1832,
"warning": ""
}
}{
"code": 400,
"msg": "Invalid params. Missing parameter urls",
"request_id": "req_abc123def456"
}{
"code": 401,
"msg": "Invalid API Key",
"request_id": "req_abc123def456"
}{
"code": 403,
"msg": "Insufficient balance in account",
"request_id": "req_abc123def456"
}{
"code": 429,
"msg": "Exceeding the rate limit",
"request_id": "req_abc123def456"
}{
"code": 500,
"msg": "Internal error",
"request_id": "req_abc123def456"
}Authorizations
Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header. Note: A payment method is required to use the API.
Body
Request body for the Extract API.
List of URLs to extract content from. Maximum URLs per request: 20. Maximum length per URL: 2048. Failed URLs are not billed.
[
"https://example.com/article-1",
"https://example.com/article-2"
]
Processing mode. standard prioritizes speed, advanced prioritizes success rate on hard-to-reach pages, and auto picks one per URL. advanced and auto can take longer, so raise timeout accordingly.
standard, advanced, auto Intent-focused keywords. When provided, returns query-relevant highlights per URL; otherwise returns the complete page content.
500Maximum age (in seconds) of cached content. URLs whose cached version exceeds this threshold will be re-fetched. Values outside the allowed range are adjusted to the nearest bound.
300 <= x <= 31536000Format of the returned content.
markdown, text Per-URL extraction timeout in seconds. Values outside the allowed range are adjusted to the nearest bound.
1 <= x <= 60Whether to return image URLs detected on the page.
Whether to return video URLs detected on the page.
Whether to return audio URLs detected on the page.
Controls whether to return links detected on the page.
Show child attributes
Show child attributes
Response
Successful extraction response
Was this page helpful?