页面简介
Extracts clean markdown content from URLs. Supports batch processing, query-focused highlights, page classification, and multimedia resources.
正文摘录
cURLBasic Extractcurl --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" ] } '200400401403429500{ "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": "" } }POST/extractTry itcURLBasic Extractcurl --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" ] } '200400401403429500{ "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": "" } }AuthorizationsbearerAuthapiKeyAuthAuthorizationstringheaderrequiredBearer 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.Bodyapplication/jsonRequest body for the Extract API.urlsstring[]requiredList of URLs to extract content from. Maximum URLs per request: 20. Maximum length per URL: 2048. Failed URLs are not billed.Example:[ "https://example.com/article-1", "https://example.com/article-2"]modeenum<string>default:standardProcessing 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.Available options: standard, advanced, auto querystringIntent-focused keywords. When provided, returns query-relevant highlights per URL; otherwise returns the complete page content.Maximum string length: 500max_age_secondsintegerdefault:86400Maximum 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.Required range: 300 <= x <= 31536000formatenum<string>default:markdownFormat of the returned content.Available options: markdown, text timeoutintegerdefault:30Per-URL extraction timeout in seconds. Values outside the allowed range are adjusted to the nearest bound.Required range: 1 <= x <= 60include_imagesbooleandefault:falseWhether to return image URLs detected on the page.include_videosbooleandefault:falseWhether to return video URLs detected on the page.include_audiobooleandefault:falseWhether to return audio URLs detected on the page.include_linksobjectControls whether to return links detected on the page.Show child attributesResponse200application/jsonSuccessful extraction responserequest_idstringrequiredThe unique identifier for this request.codeintegerBusiness status code. 0 indicates success.msgstringA message describing the result.dataobjectThe main extract response payload.Show child attributesmetaobjectAdditional metadata for the extract request.Show child attributesWas this page helpful?YesNo