Skip to main content
GET
/
v1
/
fetch
Fetch
curl --request GET \
  --url https://api.keenable.ai/v1/fetch \
  --header 'X-API-Key: <api-key>'
{
  "url": "<string>",
  "title": "<string>",
  "description": "<string>",
  "author": "<string>",
  "content": "<string>",
  "published_at": 123
}
Retrieve content from a URL in markdown format.
curl "https://api.keenable.ai/v1/fetch?url=https://example.com/ts-best-practices" \
  -H "X-API-Key: keen_<your_key>"
Only URLs that Keenable indexes are supported in this API. Attempting to fetch a document that is not indexed results in an error.

Request

url
string
required
URL to fetch.
max_chars
integer
default:"50000"
Maximum number of characters of content to return. Longer content is truncated.

Response

url
string
The fetched URL.
title
string
Page title (if available).
description
string
Short summary of the page (if available).
author
string
Page author (if available).
content
string
Extracted page content in markdown.
published_at
integer
Publication time as a Unix timestamp in seconds (if available).

Example

{
  "url": "https://example.com/ts-best-practices",
  "title": "TypeScript Best Practices 2026",
  "description": "A comprehensive guide to modern TypeScript patterns and best practices.",
  "author": "Jane Doe",
  "published_at": 1768435200,
  "content": "# TypeScript Best Practices 2026\n\nUse strict mode, prefer interfaces over type aliases for object shapes..."
}