Web search API
Web and news results for a query, with title, URL and snippet, domain filters, region and time range, and optionally the top pages read into Markdown, from our own search fetchers.
GET /v1/web/searchBeta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/web/search?query=vector%20database&sources=web,news",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "query": "vector database", "web": [ { "position": 1, "title": "What is a Vector Database? - GeeksforGeeks", "url": "https://www.geeksforgeeks.org/data-science/what-is-a-vector-database/", "snippet": "A vector database is a specialized type of database designed to store, index and search high dimensional vector represen…" }, { "position": 2, "title": "Vector database - Wikipedia", "url": "https://en.wikipedia.org/wiki/Vector_database", "snippet": "A vector database, vector store or vector search engine is a database that stores and retrieves embeddings of data in ve…" }, "… 8 more" ], "news": [ { "position": 1, "title": "VCs are obsessed with vector databases. Here are seven AI startups in the space that have raised millions from investors…", "url": "https://www.businessinsider.com/seven-vector-database-startups-poised-to-win-ai-revolution-2024-4", "snippet": "Vector databases don't get as much love as their flashier counterparts, large language models (LLMs). But the startups b…", "source": "Business Insider", "published_at": "2024-04-19T10:00:00.000Z" }, { "position": 2, "title": "Vector Database Market $ 8,945.7 million by 2030 | MarketsandMarkets™", "url": "https://www.prnewswire.com/news-releases/vector-database-market--8-945-7-million-by-2030--marketsandmarkets-302632640.ht…", "snippet": "This expansion is fueled by the rapid adoption of AI, LLMs, and multimodal applications that require high-performance ve…", "source": "irblog.prnewswire.com", "published_at": "2025-12-04T15:01:00.000Z" }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | Example: open source vector database. |
sourcesquery | string | Comma-separated: web, news (default web). |
categoriesquery | string | Accepted for compatibility. |
limitquery | integer | |
countryquery | string | |
locationquery | string | Accepted for compatibility; use country. |
time_rangequery | "any" | "day" | "week" | "month" | "year" | One of any, day, week, month, year. |
sort_by_datequery | "true" | "false" | One of true, false. |
include_domainsquery | string | |
exclude_domainsquery | string | |
include_contentquery | "true" | "false" | One of true, false. |
Status codes
| Status | Meaning |
|---|---|
200 | Web and news results. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | That host does not resolve or the page does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Web is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Which index?
DuckDuckGo’s, read by our own fetcher; for Bing results use the Bing endpoints.
Web is a trademark of its owner. We are not affiliated with or endorsed by it.