The Ultimate Guide to Web Search APIs for LLMs

compare

This is a comparison of web search APIs (SERP APIs) for LLM-powered AI workflows and agents.

Why Use a Search API With an AI Workflow?

You may need a web search API if you’re building an LLM-powered system and want to retrieve relevant web content to include in the context you provide to the LLM.

For example, if you’re creating a fact checking tool, you might want to search the web and retrieve content relating to a fact that your system is checking.

How Do AI Agents Use Web Search APIs?

If you’re developing an AI agent, you’ll typically want it to make use of web search APIs through functionality baked into LLMs known as ‘tool-calling’, ‘tool-use’ or ‘function-calling’.

Frameworks such as LangChain have support for tool-/function-calling and have off-the-shelf integrations with some of the APIs (e.g. ones for Tavily, Exa and YOU.com.)

If an integration isn’t already available, though, it’s typically fairly simple to build one.

Web Search API Pricing

NameFree TierLowest-Volume Paid TierLowest Advertised Cost (at Scale) *Search IndexContent Snippet SizeHighest Advertised Rate Limit *
Apify1428 calls/month$39/month for 11,000 calls$3.50 per 1000 callsGoogle160 chars30 calls per second
Bing1000 calls/month$0 – PAYG /
$15 per 1000 calls
$15 per 1000 callsBingUp to 250 chars250 calls per second
Brave2000 calls/month;
1 call/second
$0 – PAYG /
$5 per 1000 calls
$5 per 1000 callsBrave400 chars50 calls per second
Bright Datan/a$0 – PAYG /
$1.50 per 1000 calls
$1 per 1000 callsGoogle160 charsno limit
DataForSEOn/a$50 one-off /
$0.6 per 1000 calls
$0.6 per 1000 callsGoogle160 chars2000 calls per minute
(avg. 33 calls/sec)
Exa$10 of free credits$0 – PAYG /
$2.5 per 1000 calls
$2.50 per 1000 callsExa150 chars5 calls per second
Linkup1000 calls/month$0 – PAYG /
$5 per 1000 calls
$5 per 1000 callsLinkupUp to 5000 chars20 calls per second
SearchAPI100 free calls$40/month for 10,000 calls$1 per 1000 callsGoogle160 chars20% of monthly call volume per hour
Serper2500 calls$50 (valid for 6 months) for 50,000 calls$0.30 per 1000 callsGoogle150 chars300 calls per second
SerpApi100 calls/month$75/month for 5,000 searches$5.50 per 1000 callsGoogle160 chars20% of monthly plan volume per hour
Tavily1000 calls/month$0 – PAYG /
$8 per 1000 calls
$5 per 1000 callsTavily3000+ chars1000 calls per minute
(avg. 17 calls/sec)
you.com1000 calls/month
for 60 days
$100/month for 11,765 calls$8 per 1000 callsyou.com600 charsNot advertised
* Bespoke pricing and rate limits may be available for high volumes / enterprise accounts.

What to Consider When Choosing a Web Search API

1. Underlying Search Index

Different services use different search indexes to retrieve their results.

Many services are wrappers around Google Search and should therefore return very similar results to each other. (These list ‘Google’ in the ‘Search Index’ column of the table above.)

Other services have their own indexes and may return very different sets of results.

Just as you may prefer Google over Bing search when you’re searching manually, you may prefer the results from one web search API over those from another.

2. Amount of Content for Each Search Result

Different services return different amounts of information for each search result. This can have a big impact on the effectiveness of your RAG workflow or agent.

In some cases you may prefer a service that returns relatively long snippets of content even if it costs more per request. In others you may find that smaller snippets of content are fine or even preferable as the LLM’s prompt ends up being more focussed.

3. Pricing

Prices vary considerably between services.

When you’re comparing prices, be aware that some services have optional parameters that, if you need them, can significantly impact pricing, e.g. doubling the cost of requests.

4. Latency

Services differ widely in how quickly they respond to requests.

Low cost services that work by scraping Google (these will list ‘Google’ in the ‘Search Index’ column) may be much slower than services that query their own indexes. These ‘Google wrapper’ services sometimes offer a choice of more expensive, faster options and cheaper, slower options.

5. Rate Limits

All services are limited, to some extent, in the rate of requests they can handle. Some have fixed rate limits that they make public.

6. Other Terms and Conditions

Depending on the nature of your business, factors such as a provider’s privacy policies and/or the country where they operate their servers may be very important.

    Hoping For Something Else?

    What would you like to know or see? (required)

    Your Name (optional)

    Your Email (optional)

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    Some of the links in this article are affiliate links. This means I may earn a commission if you make a purchase through them—at no extra cost to you.