# Substack API for AI agents (search, posts, full text) (/use-cases/substack-posts)

Ask "what did Lenny's Newsletter publish recently?" and your agent lists the latest posts, then reads one in full.

Substack has no public API for reading other people's newsletters. The calls only read.

## What you can call

| Function                            | What it does                                                  |
| ----------------------------------- | ------------------------------------------------------------- |
| `bowmark.providers.substack.search` | Searches newsletters and posts.                               |
| `bowmark.providers.substack.posts`  | Lists a publication's posts, with a cursor for the next page. |
| `bowmark.providers.substack.post`   | Reads one post: title, likes and full text.                   |

## Try it

```js
const list = await bowmark.providers.substack.posts({ publication: "lenny", limit: 3 });
const post = await bowmark.providers.substack.post({ url: list.posts[0].url });
return { title: post.title, likes: post.likes, text: post.text?.slice(0, 300) };
```

Add the MCP server to Claude Code with this command, then ask your agent. Other clients are on [Installation](/docs/installation).

```sh
claude mcp add bowmark --transport http https://api.bowmark.ai/mcp --header "Authorization: Bearer $BOWMARK_API_KEY"
```

## FAQ

### Does it need an API key?

No.

### What about paid posts?

A paywalled post returns only its free preview.

### What does it cost?

Your first $10 is free, then you pay per call. See [Pricing](/docs/pricing).

## Next

Follow the [Quickstart](/docs/quickstart), or see [Websites without an API](/use-cases/websites-without-an-api).
