Extract Text Content API
text_content is the page's visible text as snippet
(200 characters), excerpt
(1,500) and full
(up to 20,000). With
include_markdown=true, markdown contains the page's main content as Markdown; see
Markdown Output.
API Examples
Text content
{
...
"text_content": {
"snippet": "Example Domain This domain is for use in documentation examples without needing permission. Avoid use in operations. Learn more",
"excerpt": "Example Domain This domain is for use in documentation examples without needing permission. Avoid use in operations. Learn more",
"full": "Example Domain This domain is for use in documentation examples without needing permission. Avoid use in operations. Learn more",
"character_count": 127,
"word_count": 19
}
}
JSON Structure Overview
{
...
"text_content": {
"snippet": "String - First 200 characters of the page's visible text",
"excerpt": "String - First 1,500 characters of the page's visible text",
"full": "String - The page's visible text, up to 20,000 characters",
"character_count": "Integer - Number of characters in the page's visible text",
"word_count": "Integer - Number of words in the page's visible text",
"markdown": "String - The page's main content as Markdown, up to 50,000 characters. Only with include_markdown=true"
}
}