Developer tools6 min readBy Purrkey teamUpdated

Claude Code web search tool: three Purrkey search endpoints billed per call

Give Claude Code a web search tool in two steps, then pick between Google results, a cited answer, search with page content, or news items, with per call prices

On this page

You have one Claude Code session open on a repository and need it to run web searches for three kinds of lookup: an error message, current docs for a library, and a few news items. The operator is a developer who wants the agent to search during the session without pasting results by hand. The deliverable is a table for the session: one row per lookup, the chosen tool id, what came back, and the next link to open

The table keeps one row per lookup so you can see which tool ran and which link to open next. A row can stop at a link list when that is enough, or continue to a cited answer or page content when the next step needs it. The prompt below is the setup step, and the choice rules are the second step. No search has been run for this article; the table design is a plan, not a result

Give Claude Code the tool

  1. Save the public skill file https://purrkey.app/SKILL.md as ~/.claude/skills/purrkey/SKILL.md, the user Skill directory Claude Code reads.

  2. Set PURRKEY_API_KEY in the environment that starts Claude Code, then from the project folder run:

    Terminal
    claude mcp add --transport http purrkey https://api.purrkey.app/mcp --header 'Authorization: Bearer ${PURRKEY_API_KEY}'

    Check the connection with /mcp

The single quotes keep the variable reference so Claude Code reads the key from its environment; the skill file contains instructions, not credentials

Candidate tools on Purrkey

Purrkey lists four tools for this job: three search endpoints and a news endpoint. Prices are as read from the public catalog

ToolReturnsPrice per callPick it when
anyapi.google.search (called through POST /v1/runs with toolId anyapi.google.search)Google web results for a query$0.002You need a list of links and titles to open next
anyapi.perplexity.search (called through POST /v1/runs with toolId anyapi.perplexity.search)A cited answer$0.0111The agent needs one cited answer rather than links
firecrawl.search (called through POST /v1/runs with toolId firecrawl.search)Search results with page content$0.005 fixed per creditThe next step would be scraping the top results anyway
anyapi.google.news (called through POST /v1/runs with toolId anyapi.google.news)Google News results for a query$0.00099You need date ordered coverage of a release or incident

For the three AnyAPI tools, the price column uses a ceiling per call. Successful runs settle at the actual AnyAPI charge. firecrawl.search is listed at a fixed price per credit. No search has been run for this article; the candidate table is a design for choosing

How to choose for this task

Use anyapi.google.search when the next step is to open a list of links and titles. Use anyapi.perplexity.search when the agent needs one cited answer rather than links. Use firecrawl.search when the next step would be scraping the top results anyway, since it returns page content with the results. Use anyapi.google.news for date ordered coverage of a release or incident

The input for each tool is one search query per call; the catalog does not list a field name for it. Compare the tools by what one call returns and by the number of calls the job takes. One anyapi.google.search call returns Google web results for a query. One anyapi.perplexity.search call returns a cited answer. One firecrawl.search call is one credit for search results with page content. One anyapi.google.news call returns Google News results for a query. The catalog does not list response field names for these tools, so the decision rests on the return shape: links and titles, a cited answer, page content, or news items

The billing limit for firecrawl.search sits next to the page content choice: it is a fixed price per credit, not a price that settles at the actual AnyAPI charge. If the next step would be scraping the top results anyway, that fixed credit buys search results with page content

The agent prompt

The prompt below asks Claude Code to check the current inputs and price of each tool id before it runs a search. Replace the example jobs with your own; the example query uses a reserved example domain, so swap in a real domain for a live lookup

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search the web during this coding session. Check the current inputs and price of each tool id before running it: anyapi.google.search, anyapi.perplexity.search, firecrawl.search, anyapi.google.news. Use anyapi.google.search for a list of links and titles, anyapi.perplexity.search for one cited answer, firecrawl.search when the next step would be scraping the top results anyway, and anyapi.google.news for date ordered coverage. Run the three Example jobs below and return a table with job, chosen tool id, what came back, and the next link to open. Do not paste raw pages into the chat. Do not guess a result.

Example jobs:
1. Look up the error message "EADDRINUSE acme-plumbing.example" and return links to open next.
2. Find current docs for the library named in this repo, using one cited answer if the docs page is unclear.
3. Pull three news items about a release or incident.

Estimated tool cost

The plan uses the quantities below

StepFormulaUnit pricePlanned quantityTotal
Google searches50 calls x $0.002$0.002 per call50$0.1
Cited answers10 calls x $0.0111$0.0111 per call10$0.111
Searches with page content10 calls x $0.005$0.005 per credit10$0.05
News searches20 calls x $0.00099$0.00099 per call20$0.0198

The AnyAPI rows are ceilings; firecrawl.search is a fixed price per credit. Model fees for the agent are not counted. The plan total is the sum of the four steps

Next action

Open the Google Search tool page to start with the first lookup

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Google Search.
Explore Google Search tools and pricing

FAQ

How do I set up web search for Claude Code with Purrkey?

Use the agent prompt in this article, which starts with the public skill file and then asks Purrkey to search the web during a coding session. The prompt tells the agent to check the current inputs and price of each tool id before running it.

Which Purrkey tool should Claude Code use for web search?

Use anyapi.google.search for a list of links and titles, anyapi.perplexity.search for one cited answer, firecrawl.search when the next step would be scraping the top results anyway, and anyapi.google.news for date ordered coverage.

How much does a Claude Code web search cost with Purrkey?

The public catalog lists anyapi.google.search at $0.002 per call, anyapi.perplexity.search at $0.0111 per call, firecrawl.search at $0.005 fixed per credit, and anyapi.google.news at $0.00099 per call. The plan in this article uses 50 Google searches, 10 cited answers, 10 searches with page content and 20 news searches for a total of $0.2808.

What does anyapi.google.search return?

It returns Google web results for a query.

What does firecrawl.search return?

It returns search results with page content and is listed at a fixed price per credit.

Can Claude Code get a cited answer instead of links?

Yes. anyapi.perplexity.search returns a cited answer and is listed at $0.0111 per call.

What does anyapi.google.news return?

It returns Google News results for a query and is listed at $0.00099 per call.

Next step

Try this with Google Search

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Google Search tools

Share this article