POST
/
v1
/
markdownify

Markdownify converts webpage content into clean, well-formatted Markdown. This is useful for content migration, documentation creation, or making web content more readable and portable.

Features

  • Preserves content structure
  • Handles complex layouts
  • Maintains headings hierarchy
  • Converts tables
  • Preserves links and images
  • Cleans up unnecessary formatting

Example Response

{
  "request_id": "65401e0d-8cd6-4d6a-88f6-e21255d1c06a",
  "status": "completed",
  "website_url": "https://scrapegraphai.com/",
  "result": "## Transform Websites into\nStructured Data\n\n### Just One Prompt Away\n\nTransform any website into clean, organized data for AI agents and Data Analytics.\nEnhance your apps with our AI-powered API.\n\n### Save time\n\nNo more writing complex code or dealing with manual extraction.\n\n### Save money\n\nWhy hire expensive developers or pay for costly scraping services? Our API gives you high-quality data extraction at a fraction of the cost.\n\n### AI powered\n\nWe employ state-of-the-art AI technologies to streamline the data extraction process...",
  "error": ""
}

The response includes the complete webpage content converted to Markdown format. The example above shows a truncated version of the response.

Authorizations

SGAI-APIKEY
string
header
required

Body

application/json
website_url
string
required

Response

200 - application/json
request_id
string
required
status
enum<string>
required
Available options:
queued,
processing,
completed,
failed
website_url
string
required
error
string
default:
result
string | null