Extract Content
Extract clean markdown or HTML from any URL with sync or async mode support
Authorization
APIKeyHeader In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/extract" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{
"data": {
"html": "string",
"markdown": "string"
},
"metadata": {
"url": "string",
"render_js": true,
"http_status": 0,
"duration_ms": 0,
"formats": [
"markdown"
],
"proxy": {
"country": "string",
"type": "datacenter"
},
"processing_mode": "sync",
"headers": {
"property1": "string",
"property2": "string"
},
"wait_config": {
"wait_until": "commit",
"wait_for": "string",
"wait_timeout": 0
}
},
"tokens_charged": 0
}{
"job_id": "string",
"status": "queued",
"status_url": "string",
"estimated_tokens": 0
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}{
"error": {
"code": "RATE_LIMITED",
"message": "string",
"retryable": true,
"details": {
"property1": "string",
"property2": "string"
}
},
"tokens_charged": 0
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}{
"code": "string",
"message": "string",
"correlation_id": "string",
"retryable": true
}