Skip to main content
POST
Web Search API - Raw search results

Authorizations

Authorization
string
header
required

Bearer token authentication using your LLMLayer API key. Include in Authorization header as: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
query
string
required

The search query

Example:

"latest AI news"

search_type
enum<string>
default:general

Type of search. All types cost $0.002 per search.

Available options:
general,
news,
shopping,
videos,
images,
scholar
location
string
default:us

Country code for localized results (us, uk, ca, etc.)

Example:

"us"

recency
enum<string> | null

Filter results by time period

Available options:
hour,
day,
week,
month,
year
domain_filter
string[] | null

Include/exclude domains. Prefix with '-' to exclude (e.g., ['-reddit.com'])

Example:

Response

Raw search results

results
object[]
required

Search results. Structure varies by search_type.

cost
number

Cost in USD. $0.002 for all search types.