Your agent checks the price before every API call.

Add the skill to Claude Code or Codex. For SERP, X and SEO data it compares every provider, uses the cheapest and stops at your budget.

Read the source
Read https://getcheapapi.com/llms.txt and install the getcheapapi skill for this agent by following its install steps.

Paste it into Claude Code or Codex. The agent reads llms.txt and installs the skill itself.

See what your agent would save

Your receipt

keyword.volume · 5 keywords

goanyapi keyword-search-volume$0.01500

dataforseo search_volume/live$0.09000

Saved$0.07500

Same call · 50 keywords: the cheapest flips

dataforseo search_volume/live$0.09000

goanyapi keyword-search-volume$0.15000

Saved$0.06000

What you stop paying for

Silent switches to dearer sourcesup to 28×

Search-operator surcharges5×

15 calls where one batch would do15×

Requests sent after the balance ran out211 requests

Saved on these two calls$0.13500

Your agent sees this before anything runs. Getting the quote is free.

The same data can cost 2× to 200× more, depending on the route.

The default route is usually the expensive one. The widest gap we have measured on a single call:

Up to this much between AnyAPI’s sources for one X search

What you get

Lower bills, on terms you control.

Your agent picks the lowest price

It asks for serp.google or x.search and gets the same fields from any provider, with duplicates dropped and lists sent as one batch where allowed.

Know the cost before it pays

Every run quotes each provider, even ones you have no key for, and checks again right before the call; if the price jumps, it waits for your OK.

A spending cap that holds

Anything over --max-usd (ten cents by default) is refused before it starts, and an empty balance (402) stops the run instead of hundreds of retries.

Open, local and yours to change

Routes, prices and the skill’s instructions are plain files you can edit; calls go straight to the provider, and every charge is logged on your machine (getcheapapi spend).

fig. 02 · same job, five prices · your agent pays for the shortest bar

15 kinds of data to start. Add your own.

Ships with routes across AnyAPI, DataForSEO, GoAnyAPI, twitterapi.io and Yir. Need another provider or endpoint? Add it to the catalog in a few lines, and send a pull request if others could use it too.

Yir is run by the same team, and some provider links in the README and CLI carry our referral code. Routes are ranked by price only.

Data your agent can ask for, and the providers that sell it
#DataProviders
CAP.001serp.googleAnyAPI · GoAnyAPI · DataForSEO
CAP.002serp.bingAnyAPI · GoAnyAPI
CAP.003x.searchAnyAPI · twitterapi.io
CAP.004reddit.searchAnyAPI
CAP.005tiktok.searchAnyAPI
CAP.006google.trendsAnyAPI · GoAnyAPI
CAP.007keyword.volumeDataForSEO · GoAnyAPI
CAP.008keyword.ideasDataForSEO · GoAnyAPI
CAP.009backlinks.summaryGoAnyAPI · DataForSEO
CAP.010domain.rankDataForSEO
CAP.011domain.drGoAnyAPI
CAP.012website.trafficGoAnyAPI
CAP.013image.generateYir
CAP.014video.generateYir
CAP.015speech.generateYir

Free and open. Make it yours.

MIT · no account · no markup

$0

Paste the prompt into your agent and add the keys you already have. Fork it, change it, ship it with your own agents.

Read https://getcheapapi.com/llms.txt and install the getcheapapi skill for this agent by following its install steps.

Before you add it

Read the source
Q.001 / Is it free?

Yes. MIT licensed, with no account and no fee. You pay providers directly with your own keys, at their prices.

Q.002 / Which agents does it work with?

Any agent that can load a skill folder or run a shell command, such as Claude Code and Codex. Scripts and cron jobs can call the CLI directly.

Q.003 / Can I add a provider or change a price?

Yes. Routes and prices live in one catalog file. Edit it, run the free schema check against the live provider, and keep the change to yourself or send a pull request.

Q.004 / Do I need a key for every provider?

No. One key is enough to start. Routes you have no key for are still priced, so you can see what adding one would save.

Q.005 / Does my data go through your servers?

No. Data calls go straight to the provider. The price cache, ledger and saved results stay in ~/.getcheapapi on your machine.

Q.006 / How much will I save?

It depends on the data and how much of it you buy. Run getcheapapi quote with your own input: it shows every provider's price side by side and spends nothing.

Q.007 / How is this different from a provider’s MCP server?

A provider’s MCP server only calls that provider. getcheapapi is a skill plus a CLI: it prices every provider before each call and needs no server, because your agent reads the instructions and runs the CLI.