API reference · Contents
POST /v1/contents
Fetch and clean content from any URL.
Endpoint
POST
https://chat-api.you.com/contentsRequest body
| Field | Type | Description |
|---|---|---|
| urlrequired | string | Absolute URL to fetch. |
| format | enum | markdown | html | text. default: markdown |
| render_js | boolean | Render JavaScript before extraction. default: false |
Response
JSON
{
"url": "string",
"title": "string",
"markdown": "string",
"metadata": {
"language": "string",
"published_at": "string|null"
}
}