[cdpfleet](https://cdpfleet.com/) / [Functions](https://cdpfleet.com/functions) / Markdown

Free tool · Markdown

# Any page as clean *Markdown*.

The page's main content without navigation, scripts or ads — headings, lists, tables and code blocks kept. Ready to paste into an LLM. Free, no sign-up.

[Run it](#try)[API docs](https://cdpfleet.com/docs/functions/markdown)

## Try it

Feed a page to ChatGPT or Claude, save an article as notes, or index a site for search.

## The same from code

`POST /v1/functions/markdown` with your API key returns `text/markdown; charset=utf-8` — more options than here, such as your own proxy or a browser of your choice. [All markdown fields](https://cdpfleet.com/docs/functions/markdown).

 

```bash
curl -s https://cdpfleet.com/v1/functions/markdown \
  -H "x-api-key: $CDPFLEET_API_KEY" -H "content-type: application/json" \
  -d '{"url":"https://books.toscrape.com/","country":"us"}' -o page.md -D - | grep -i '^x-call-id'
```

```js
// Node.js 18+: save as markdown.mjs, run node markdown.mjs
const res = await fetch('https://cdpfleet.com/v1/functions/markdown', {
  method: 'POST',
  headers: { 'x-api-key': process.env.CDPFLEET_API_KEY, 'content-type': 'application/json' },
  body: JSON.stringify({
    url: 'https://books.toscrape.com/',
    country: 'us',
  }),
  signal: AbortSignal.timeout(30000),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`); // 429: wait Retry-After seconds
console.log(await res.text());
```

```python
# Python 3 with requests (pip install requests): save as markdown.py, run python markdown.py
import os
import requests

r = requests.post(
    "https://cdpfleet.com/v1/functions/markdown",
    headers={"x-api-key": os.environ["CDPFLEET_API_KEY"]},
    json={
        "url": "https://books.toscrape.com/",
        "country": "us",
    },
    timeout=30,
)
if not r.ok:
    raise SystemExit(f"{r.status_code} {r.text}")  # 429: wait r.headers["Retry-After"] seconds
print(r.text)
```

```java
// Java 17+: save as Main.java, run java Main.java
import java.net.URI;
import java.net.http.*;
import java.time.Duration;

public class Main {
  public static void main(String[] args) throws Exception {
    String body = """
        {
          "url": "https://books.toscrape.com/",
          "country": "us"
        }
        """;
    HttpResponse<byte[]> res = HttpClient.newHttpClient().send(
        HttpRequest.newBuilder(URI.create("https://cdpfleet.com/v1/functions/markdown"))
            .header("x-api-key", System.getenv("CDPFLEET_API_KEY"))
            .header("content-type", "application/json")
            .timeout(Duration.ofSeconds(30))
            .POST(HttpRequest.BodyPublishers.ofString(body))
            .build(),
        HttpResponse.BodyHandlers.ofByteArray());
    if (res.statusCode() != 200) { // 429: wait Retry-After seconds
      throw new RuntimeException(res.statusCode() + " " + new String(res.body()));
    }
    System.out.writeBytes(res.body()); // UTF-8 as it came
    System.out.println();
  }
}
```

```csharp
// .NET 8+: dotnet new console, replace Program.cs with this, run dotnet run
using System.Text;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(30) };
http.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("CDPFLEET_API_KEY"));
var body = """
    {
      "url": "https://books.toscrape.com/",
      "country": "us"
    }
    """;
var res = await http.PostAsync("https://cdpfleet.com/v1/functions/markdown",
    new StringContent(body, Encoding.UTF8, "application/json"));
if (!res.IsSuccessStatusCode) // 429: wait Retry-After seconds
    throw new Exception($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
Console.WriteLine(await res.Content.ReadAsStringAsync());
```

```go
// Go 1.21+: save as main.go, run go run main.go
package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
	"os"
	"strings"
	"time"
)

func main() {
	body := `{
	  "url": "https://books.toscrape.com/",
	  "country": "us"
	}`
	req, _ := http.NewRequest("POST", "https://cdpfleet.com/v1/functions/markdown", strings.NewReader(body))
	req.Header.Set("x-api-key", os.Getenv("CDPFLEET_API_KEY"))
	req.Header.Set("content-type", "application/json")
	res, err := (&http.Client{Timeout: 30 * time.Second}).Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer res.Body.Close()
	data, err := io.ReadAll(res.Body)
	if err != nil {
		log.Fatal(err)
	}
	if res.StatusCode != http.StatusOK { // 429: wait Retry-After seconds
		log.Fatalf("%s %s", res.Status, data)
	}
	fmt.Println(string(data))
}
```

## Free tool limits

-   **20 runs a day** and 2 at once per address, after a quick Cloudflare check.
-   Runs on a shared cdpfleet browser through the free [Community proxy](https://cdpfleet.com/community) in the country you pick; at busy times a run can take longer or ask you to retry.
-   Public pages only: private and local addresses are refused. Up to 60 seconds per page.
-   For more — your own threads, your own or residential proxies, any browser and phone devices — call the same functions with an API key; the [Community plan](https://cdpfleet.com/community) is free, and [paid plans](https://cdpfleet.com/upgrade) add more.

## Related

Cases, recipes, posts and comparisons about this — updated as new ones are published.

### Reference docs

The details, options and errors.

-   [Markdown function](https://cdpfleet.com/docs/functions/markdown)Every field and the response.
-   [Functions](https://cdpfleet.com/docs/functions)Billing, own browser, errors, countries.

### Cases 10

Real problems solved end to end, run on production in five languages.

-   [Case 88: A monitor end to end: create it, trigger a change, verify the signed webhook, read the diff and history](https://cdpfleet.com/docs/cases/monitor-end-to-end)Watch one element of a page that changes on every load, trigger checks with `POST …/run`, receive the `monitor.change` webhook and verify its HMAC signature, check…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/88-monitor-end-to-end)
-   [Case 86: Crawl a whole site as a job: map, crawl, stop, resume, results, zip and a signed webhook](https://cdpfleet.com/docs/cases/crawl-a-site-as-a-job)Map books.toscrape.com, crawl 100 pages of it as a background job, stop it part-way and resume it, then read the results as JSON lines and as a zip archive, and…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/86-crawl-a-site-as-a-job)
-   [Case 85: A Function or your own browser? Screenshot, PDF and Markdown of the same pages, timed and billed](https://cdpfleet.com/docs/cases/function-vs-your-own-browser)Three pages, three outputs, two ways: one POST to a Function, or launch a browser yourself, connect Playwright, capture and close. Wall time, the thread-seconds each…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/85-function-vs-your-own-browser)
-   [Case 82: Kept downloads in practice: a person in Launch interactive and an AI agent over MCP](https://cdpfleet.com/docs/cases/downloads-in-practice)Files nobody's code was waiting for: a person pastes file links into a Launch interactive session, an AI agent clicks a download and opens a file link through the…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/82-downloads-in-practice)
-   [Case 79: MCP in action: an MCP client drives a cloud browser through cdpfleet.com/mcp](https://cdpfleet.com/docs/cases/mcp-in-action)A script connects to the hosted MCP server with its API key and does what an AI assistant does: list the tools, launch a browser, open a page, read it as an…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/79-mcp-in-action)
-   [Case 78: keep\_alive: an agent run that survives its client going away](https://cdpfleet.com/docs/cases/keep-alive-reconnect)An agent works through a catalogue in a headless Chrome session with `keep_alive`, then its client disconnects. A new client reconnects to the same session and…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/78-keep-alive-reconnect)
-   [Case 58: Do it by hand in live view, then let your code finish in the same browser](https://cdpfleet.com/docs/cases/launch-interactive-to-code)Launch a browser with `start_url` and no client, drive it through a control-mode live link — address bar, Tab, typing — then connect your code: it finds the person's…[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/58-launch-interactive-to-code)
-   [Case 41: A scrape broke: find out why from its session recording](https://cdpfleet.com/docs/cases/replay-a-failed-run)A scraper dies with a timeout. Its session was recorded anyway: fetch the video by session id and see the page it failed on, with no tracing set up in advance.[Code on GitHub](https://github.com/cdpfleet/cdpfleet/tree/main/cases/41-replay-a-failed-run)

[All cases →](https://cdpfleet.com/docs/cases) 10 match this topic

### Updates 2

Product news and browser releases.

-   [The live tab: a remote browser tab you share as a link](https://cdpfleet.com/docs/updates/live-tab)Open a real browser tab in another country and use it from any web browser — free on the site, longer from the dashboard or one API call, and a link you can hand to…
-   [Kept downloads: files from a session, fetched after it ends](https://cdpfleet.com/docs/updates/kept-downloads)Launch with "downloads": true and every file the browser downloads is kept for 2 days — including files a person clicked in live view or an AI agent fetched through…

## Read next

[Functions →](https://cdpfleet.com/functions)[Screenshot →](https://cdpfleet.com/functions/screenshot)[PDF →](https://cdpfleet.com/functions/pdf)[Live tab →](https://cdpfleet.com/functions/livetab)[Raw page →](https://cdpfleet.com/functions/rawpage)[Community plan →](https://cdpfleet.com/community)

---
Source: https://cdpfleet.com/functions/markdown · Markdown: https://cdpfleet.com/functions/markdown.md · All docs for AI tools: https://cdpfleet.com/llms.txt
