home/apis/web-search
Web Search API

Search the web,
programmatically.

Six content types, forty-plus locations, real-time results — ranked, deduplicated, and returned as clean JSON your agent can act on.

pricing
$0.002per search

Pay-as-you-go. No subscription, no minimum — and your credits never expire.

POST /api/v2/web_search
6
search types
40+
locations
< 1s
typical response
JSON
structured out
40+ locations

Target searches by country so your agent sees what local users see.

Time filters

Constrain recency from the last hour to the last year.

Domain control

Include or exclude specific sites to keep results on-topic.

Six lenses

One endpoint. Six kinds of web.

Switch content type with a single parameter — every type returns its own structured fields.

$0.002
General

Web-wide search across all indexed pages

titlelinksnippetdate
$0.002
News

Breaking news and recent articles

titlelinksnippetsourcedateimageUrl
$0.002
Images

High-resolution images with metadata

titleimageUrlthumbnailUrlwidthheight
$0.002
Videos

Video content from major platforms

titlelinkvideoUrldurationchannel
$0.002
Shopping

Product listings with prices and ratings

titlepriceratingratingCountsource
$0.002
Scholar

Academic papers and citations

titlelinkpublicationInfocitedBypdfUrl
In practice

One call. That's the integration.

01from llmlayer import LLMLayerClient
02
03client = LLMLayerClient(api_key="YOUR_LLMLAYER_API_KEY")
04
05results = client.search_web(
06 query="EU AI regulation",
07 search_type="news", # general · news · images · videos · shopping · scholar
08 recency="day", # hour · day · week · month · year
09 location="us", # 40+ locations
10)
11
12for r in results.results:
13 print(r["title"], r["link"])

Start with nothing to lose.

Free credits on signup, no card. The meter only moves when you call.