Skip to main content
POST
/
v1
/
fetch
/fetch
curl --request POST \
  --url https://api.linkup.so/v1/fetch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://docs.linkup.so",
  "extractImages": false,
  "includeRawHtml": false,
  "renderJs": false
}
'
{
  "markdown": "Get started for free, no credit card required...",
  "images": [
    {
      "alt": "Image 1",
      "url": "https://example.com/image.jpg"
    },
    {
      "alt": "Image 2",
      "url": "https://example.com/image2.jpg"
    }
  ],
  "rawHtml": "<!DOCTYPE html><html lang=\"en\"><head>...</head><body>...</body></html>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.linkup.so/llms.txt

Use this file to discover all available pages before exploring further.

Get your API key

Create a Linkup account for free to get your API key.
For when to set renderJs, includeRawHtml, and extractImages, see the Fetch overview.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

The URL of the webpage you want to fetch.

Example:

"https://docs.linkup.so"

extractImages
default:false

Defines whether the API should extract the images from the webpage in its response.

Example:

false

includeRawHtml
default:false

Defines whether the API should include the raw HTML of the webpage in its response.

Example:

false

renderJs
default:false

Defines whether the API should render the JavaScript of the webpage.

Example:

false

Response

Successful response

markdown
string
required

The clean markdown version of the webpage.

Example:

"Get started for free, no credit card required..."

images
object[]

List of images extracted from the webpage.

Example:
[
{
"alt": "Image 1",
"url": "https://example.com/image.jpg"
},
{
"alt": "Image 2",
"url": "https://example.com/image2.jpg"
}
]
rawHtml
string

The raw HTML version of the webpage.

Example:

"<!DOCTYPE html><html lang=\"en\"><head>...</head><body>...</body></html>"