# Turn websites into typed functions for your AI agent (/use-cases/websites-as-typed-functions)

Your agent calls `bowmark.flights.search(...)` or `bowmark.gas_prices.search("78701")` and gets named fields back. There are <CoverageNumber of="websites" /> sites and <CoverageNumber of="functions" /> functions today. It works in Claude, ChatGPT, Cursor and your own code.

## What you can call

| Function                              | What it does                                                                     |
| ------------------------------------- | -------------------------------------------------------------------------------- |
| `bowmark.flights.search`              | Fares from several sites in one list.                                            |
| `bowmark.hotels.search`               | Hotels for a place and dates.                                                    |
| `bowmark.retail.search`               | Prices and stock across stores.                                                  |
| `bowmark.gas_prices.search`           | Station prices near a zip code.                                                  |
| `bowmark.providers.<site>.<function>` | One site directly, such as [YouTube](/sites/youtube) or [Reddit](/sites/reddit). |

Your agent reads a function's signature before it calls it:

```ts
bowmark.gas_prices.search(
  zip: string,
  options?: { limit?: number; fuelType?: "regular" | "midgrade" | "premium" | "diesel" },
): Promise<{ stations: { brand: string; address: string; price: number | null; url: string }[]; warnings: string[] }>
```

## Try it

```js
const { stations, warnings } = await bowmark.gas_prices.search("78701", { limit: 3 });
return { cheapest: stations[0], warnings };
```

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

### Which frameworks work with it?

Any MCP client, [LangChain](/docs/langchain), or plain [HTTP](/docs/http-api).

### Can I use more than one site in one script?

Yes. One script can call several functions and combine the results.

### What if a site is not covered?

Check with `GET https://api.bowmark.ai/v1/library?query=<hostname>`. For uncovered pages, use [`bowmark.read.page`](/docs/read-any-page).

### Do I need an account on each site?

No. Only sites with signed-in functions need one. See [Signed-in sites](/docs/signed-in-sites).

### 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 [every covered site](/sites).
