Markdown
POST/extract/markdown
Fetches a URL and converts its HTML content to clean Markdown format with optional metadata extraction
Body Parameters
url: string
URL to fetch and convert to markdown
formaturi
metadata: optional boolean
Include extracted metadata (Open Graph and HTML metadata) as a separate field in the response
nocache: optional boolean
Bypass cache and force fresh data retrieval
Returns
content: string
The markdown content (includes metadata as YAML frontmatter by default)
url: string
The URL that was converted to markdown
formaturi
Markdown
curl https://api.tabstack.ai/v1/extract/markdown \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $TABSTACK_API_KEY" \
-d '{
"url": "https://example.com/blog/article",
"effort": "standard",
"metadata": true
}'{
"content": "# Example Article Title\n\nThis is the article content converted to markdown...",
"metadata": {
"author": "Example Author",
"description": "This is an example article description",
"image": "https://example.com/images/article.jpg",
"publisher": "Example Publisher",
"site_name": "Example Blog",
"title": "Example Article Title",
"type": "article",
"url": "https://example.com/blog/article"
},
"url": "https://example.com/blog/article"
}{
"error": "access to internal resources is not allowed"
}{
"error": "failed to convert HTML to Markdown"
}Returns Examples
{
"content": "# Example Article Title\n\nThis is the article content converted to markdown...",
"metadata": {
"author": "Example Author",
"description": "This is an example article description",
"image": "https://example.com/images/article.jpg",
"publisher": "Example Publisher",
"site_name": "Example Blog",
"title": "Example Article Title",
"type": "article",
"url": "https://example.com/blog/article"
},
"url": "https://example.com/blog/article"
}{
"error": "access to internal resources is not allowed"
}{
"error": "failed to convert HTML to Markdown"
}