cURL
curl --request POST \ --url https://ydc-index.io/v1/contents \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "urls": [ "https://www.you.com" ], "format": "html" } '
200
Example
[ { "url": "https://www.you.com", "title": "The best website in the world", "html": "<string>", "markdown": "<string>" }]
The unique API Key required to authorize API access. Learn how to get yours in the “Get your API key” section of the documentation.
Array of URLs to fetch the contents from.
The format of the content to be returned.
html
markdown
"html"
An array of JSON objects containing the page content of each web page
The webpage URL whose content has been fetched.
"https://www.you.com"
The title of the web page.
"The best website in the world"
The retrieved HTML content of the web page.
The retrieved Markdown content of the web page.