GroundsocialDocs

API · Web

GET /web/search

Search the web: titles, URLs, snippets and news, optionally with page content.

RequestGET /v1/web/search
Operation idweb.search.all
Cost2 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search the web: titles, URLs, snippets and news, optionally with page content.

Query parameters

NameTypeRequiredDescription
querystringyesExample: open source vector database.
sourcesstringnoComma-separated: web, news (default web).
categoriesstringnoAccepted for compatibility.
limitintegerno
countrystringno
locationstringnoAccepted for compatibility; use country.
time_range"any" | "day" | "week" | "month" | "year"noOne of any, day, week, month, year.
sort_by_date"true" | "false"noOne of true, false.
include_domainsstringno
exclude_domainsstringno
include_content"true" | "false"noOne of true, false.

Responses

StatusMeaningSchema
200Web and news results.
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404That host does not resolve or the page does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Web is temporarily unavailable. Retryable; nothing was charged.Error

Errors use one shape everywhere; see Errors for every code and what to do.