Web search youragents can read.
One request returns ranked results with each page already in clean markdown, ready for your model. $0.002 a search, and failed calls are refunded.
docs.astro.build › guides › deploy › cloudflare
Deploy your Astro site to Cloudflare
The @astrojs/cloudflare adapter lets Astro run on Cloudflare Workers. Install it, then set it in your config…
Page as markdown · 1,300 tokens
developers.cloudflare.com › workers › frameworks › astro
Astro on Workers: framework guide
Create a project with create-cloudflare and choose Astro. Static assets and server rendering both work…
Page as markdown · 980 tokens
github.com › withastro › astro › releases
withastro/astro: adapters changelog
Release notes for @astrojs/cloudflare, including the move to the Workers runtime by default…
Page as markdown · 640 tokens
Your agent reads HTML.
Flip fetch_content. The same page comes back as markdown: about 48,000 tokens becomes 1,300.
fetch_contentfalse · 48,000 tokensBuilt for the context window.
Search you can steer
Limit results to the domains you trust, exclude the ones you don’t, and ask for pages from the last hour.
include docs.astro.buildexclude pinterest.comrecency 60 minlimit 5Markdown, not markup
Set fetch_content and every result carries its page text as clean markdown, ready for the context window.
## Deploy to Cloudflare - Install @astrojs/cloudflare - Set the adapter in astro.configRead known URLs
Already have the links? POST up to 10 to /api/v1/fetch and get their text as markdown. Empty results are refunded.
Pay per call, atomically
Each call is charged in one step, so two parallel requests can never spend the same dollar.
Failures cost nothing
If the backend errors after the charge, the credit comes back on its own and shows in your ledger.
Keys you can revoke
Live and test keys, last-used times, one-click revoke. Only hashes are stored.
First result in two minutes.
Sign up, pay, make a key and call the API. No SDK to install and nothing to configure: JSON in, JSON out, with the cost of the call and your balance in every response.
Pick a plan
A monthly plan from $50 adds that much credit every month, or top up once. Credit shows in your balance within seconds of paying.
Create a key
Name it, choose live or test, copy it once. Send it as a Bearer token or an X-API-Key header.
Send a query
POST the question your agent is asking. Steer it with domains, recency and a result limit.
curl "$MONID_URL/api/v1/search" \
-H "Authorization: Bearer $MONID_KEY" \
-H "content-type: application/json" \
-d '{"query": "astro cloudflare adapter", "limit": 5, "fetch_content": true}'Read the markdown
Each result comes back ranked, with its page as markdown your model can read straight away.
astro cloudflare adapter
Deploy your Astro site to Cloudflaredocs.astro.build · 1.3k tokens
## Deploy to Cloudflare - Install @astrojs/cloudflare and set the adapter…
Check the ledger
Every charge and refund is a line in your credit history, with the balance after it.
| search | −$0.002 | $24.998 |
| search | −$0.002 | $24.996 |
| refund | +$0.002 | $24.998 |
Create a key. Make a call.
One endpoint. Send your key as a Bearer token or an X-API-Key header; every response carries the call’s cost and your remaining balance. A 402 means nothing was charged.
Get an API keycurl "$MONID_URL/api/v1/search" \
-H "Authorization: Bearer $MONID_KEY" \
-H "content-type: application/json" \
-d '{"query": "astro cloudflare adapter", "limit": 5, "fetch_content": true}'const res = await fetch(`${process.env.MONID_URL}/api/v1/search`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.MONID_KEY}`,
'content-type': 'application/json',
},
body: JSON.stringify({ query: 'astro cloudflare adapter', limit: 5, fetch_content: true }),
});
const { results } = await res.json();
// results[0].markdown is ready for the context windowimport os, requests
res = requests.post(
f"{os.environ['MONID_URL']}/api/v1/search",
headers={"Authorization": f"Bearer {os.environ['MONID_KEY']}"},
json={"query": "astro cloudflare adapter", "limit": 5, "fetch_content": True},
)
results = res.json()["results"]{
"status": "success",
"total_results": 5,
"credits": { "cost": "$0.002", "remaining_balance": "$24.9980" },
"results": [{
"title": "Deploy your Astro site to Cloudflare",
"url": "https://docs.astro.build/…/cloudflare/",
"snippet": "The @astrojs/cloudflare adapter…",
"markdown": "## Deploy to Cloudflare\n\nInstall the adapter…"
}, …]
}Every call, every cent.
The dashboard shows volume, spend and latency over 30 days, and the calls behind them. Sample data below.
Balance
$24.98Searches, 30 days
1,284Spend, 30 days
$2.57Latency p50 / p95
640 / 1,420 msSearches per day
- mcp tool design best practices612 ms$0.002
- postgres connection pooling workers701 ms$0.002
- latest rust async runtimefailed$0.000
One-off top-up
For a project that needs credit once. Any whole-dollar amount from $50 to $1,000.
$0.002 per search or fetched URL; the processing fee is added at checkout ($52.78 for $50).
$50 once
Top upMonthly plan
For an agent that runs every day. Plans of $50, $100, $150 or $200 a month add that much credit at each renewal.
Unused credit rolls over, and you can change or cancel the plan in the billing portal. The processing fee is added at checkout: the $50 plan is $52.78 a month.
$50/mo
Start a planQuestions, answered.
What happens when a call fails?
If the search backend errors, the charge is refunded automatically and the refund shows in your credit history. A call that is rejected before it runs, such as bad input or missing credits, is never charged.
Is there a subscription?
Yes: monthly plans of $50, $100, $150 or $200 add that much credit every month, and unused credit rolls over. You can also top up once from $50. Each search or fetched URL costs $0.002. The payment processing fee is added at checkout.
What does one call return?
Ranked results with title, URL and snippet. Add fetch_content to get the text of each result as clean markdown for your model. A separate fetch endpoint reads up to 10 URLs per call.
How are API keys stored?
Only a hash of each key is stored, so a key is shown once when you create it. Revoke it from the dashboard at any time.
Can I try it before writing code?
Yes. The dashboard playground runs the same search your keys run, with cards, markdown and raw JSON views. It uses the same credits.