POST
/
api
/
v1
/
extract
curl --request POST \
  --url https://api.agenttoolkit.ai/api/v1/extract \
  --header 'Content-Type: application/json' \
  --data '{
  "urls": [
    "<string>"
  ],
  "include_images": false,
  "include_links": false,
  "extract_depth": "basic"
}'
{
  "results": [
    {
      "url": "<string>",
      "raw_content": "<string>",
      "images": [
        "<string>"
      ],
      "links": [
        "<string>"
      ],
      "cache_hit": false
    }
  ],
  "failed_results": [
    {
      "url": "<string>",
      "error": "<string>"
    }
  ],
  "response_time": 123
}

Body

application/json

Schema for extract request.

urls
string[]
required

List of URLs to extract content from.

include_images
boolean
default:false

Include images in the response.

Include internal links found on the page in the response.

extract_depth
enum<string>
default:basic

Depth of extraction. 'advanced' retrieves more data including tables and embedded content.

Available options:
basic,
advanced

Response

200
application/json
Successful Response

Schema for extract response.

response_time
number
required

Time in seconds it took to complete the request.

results
object[]

List of successful extractions.

Schema for a successful extraction result.

failed_results
object[]

List of failed extractions.

Schema for a failed extraction result.