Returns the content of the web pages
Changed onReturns the HTML or Markdown of a target webpage.
post/v1/contents
Request
- Base URLhttps://ydc-index.io
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"urls": [
"https://www.you.com"
],
"formats": [
"html",
"markdown"
],
"crawl_timeout": 10,
"max_age": 86400
}Response
An array of JSON objects containing the page content of each web page
Example response
[
{
"url": "https://www.you.com",
"title": "The best website in the world",
"metadata": {
"site_name": "You.com",
"favicon_url": "https://api.ydc-index.io/favicon?domain=you.com&size=128"
}
}
]Changes
- info
added the new optional request property
- info