Skip to main content
POST
/
html_reader
HTML Reader
curl --request POST \
  --url https://html-reader-api.starkai.io/html_reader \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "html_content": "<!DOCTYPE html><html><head><title>Sample</title></head><body><h1>Hello World</h1><p>This is a paragraph.</p></body></html>"
}'
{
  "status": true,
  "message": "Successfully converted html content to markdown.",
  "data": {
    "markdown_content": "# Hello World\n\nThis is a paragraph."
  }
}
Check our Documention Page to create a new API Key

Authorizations

X-Api-Key
string
header
required

API Key for authentication

Body

application/json

HTML content to convert to markdown

html_content
string
required

HTML content to convert to markdown

Example:

"<!DOCTYPE html><html><head><title>Sample</title></head><body><h1>Hello World</h1><p>This is a paragraph.</p></body></html>"

Response

HTML content successfully converted to markdown

status
boolean
required

Indicates if the request was successful

Example:

true

message
string
required

Success message

Example:

"Successfully converted html content to markdown."

data
object
required
I