6 search types. 40+ locations. Real-time results. One simple API.
{
"results": [
{
"title": "OpenAI GPT-5 Release...",
"link": "https://example.com/...",
"snippet": "Latest AI breakthrough...",
"date": "2025-01-20"
},
// ... up to 10 results
],
"cost": 0.002
}Each search type returns structured data optimized for its content category.
Web-wide search across all indexed pages
Breaking news and recent articles
High-resolution images with metadata
Video content from major platforms
Product listings with prices and ratings
Academic papers and citations
from llmlayer import LLMLayerClient
client = LLMLayerClient(api_key="...")
# Search the web
response = client.search_web(
query="latest AI news",
search_type="news",
recency="day"
)
for result in response.results:
print(result.title)import { LLMLayerClient } from 'llmlayer';
const client = new LLMLayerClient({
apiKey: process.env.LLMLAYER_API_KEY
});
const { results } = await client.searchWeb({
query: 'machine learning papers',
searchType: 'scholar',
location: 'us'
});
results.forEach(r => console.log(r.title));curl -X POST https://api.llmlayer.dev/api/v2/web_search \
-H "Authorization: Bearer $LLMLAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "best restaurants NYC", "search_type": "general", "location": "us"}'/api/v2/web_search| PARAMETER | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
query* | string | — | Your search query |
search_type | string | general | general, news, images, videos, shopping, scholar |
location | string | us | ISO country code (us, uk, de, fr, etc.) |
recency | string | — | hour, day, week, month, year (general/news only) |
domain_filter | array | — | Include/exclude domains, prefix with - to exclude |
* Required parameter
Give your agents real-time web access for research and fact-checking
Build news feeds, price trackers, or research databases
Monitor competitors, track trends, analyze sentiment
Search papers, find citations, build research assistants
Get your API key and search the web in minutes. Free credits to start. No credit card required.