Skip to content

HTML Options

HTML options allow you to configure how web pages and HTML documents are processed during parsing.

Force hidden elements to be visible during parsing. This ensures that content hidden by CSS or JavaScript is still extracted.

{
"input_options": {
"html": {
"make_all_elements_visible": true
}
}
}

Remove navigation menus, breadcrumbs, and similar navigational elements that typically don’t contain the main content.

{
"input_options": {
"html": {
"remove_navigation_elements": true
}
}
}

Remove fixed-position elements like sticky headers, sidebars, and floating elements that may interfere with content extraction.

{
"input_options": {
"html": {
"remove_fixed_elements": true
}
}
}

You can combine multiple HTML options:

{
"input_options": {
"html": {
"make_all_elements_visible": true,
"remove_navigation_elements": true,
"remove_fixed_elements": true
}
}
}
Terminal window
curl -X 'POST' \
'https://api.cloud.llamaindex.ai/api/v2/parse' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
--data '{
"file_id": "<file_id>",
"tier": "cost_effective",
"version": "latest",
"input_options": {
"html": {
"make_all_elements_visible": true,
"remove_navigation_elements": true
}
}
}'