v1

latestOpenAPI 3.1.02026-07-26125062.1 KB
Fetch

/fetch

The /fetch endpoint allows you to fetch a single webpage from a given URL.

post/v1/fetch

Request body

urlstring uri required

The URL of the webpage you want to fetch.

Example request

{
  "url": "https://docs.linkup.so"
}

Response

Successful response

markdownstring required

The clean markdown version of the webpage.

rawHtmlstring

The raw HTML version of the webpage.

Example response

{
  "images": [
    {
      "alt": "Image 1",
      "url": "https://example.com/image.jpg"
    },
    {
      "alt": "Image 2",
      "url": "https://example.com/image2.jpg"
    }
  ],
  "markdown": "Get started for free, no credit card required...",
  "rawHtml": "<!DOCTYPE html><html lang=\"en\"><head>...</head><body>...</body></html>"
}