Search is Linkup’s synchronous web search endpoint, optimized for AI consumption. Given a natural-language query, theDocumentation Index
Fetch the complete documentation index at: https://docs.linkup.so/llms.txt
Use this file to discover all available pages before exploring further.
/search route returns ranked sources, optionally bundled with a cited natural-language answer or with structured output matching a JSON schema. depth controls how much search and retrieval work the agent performs, and outputType selects the shape of the response.
Modes
Search comes with threedepth modes:
| Mode | Description | Latency |
|---|---|---|
"fast" | Sub-second latency, no query reinterpretation, no LLM. Query passed as-is to our index for retrieval. | <1s |
"standard" | Single-iteration agentic search. The agent interprets the query, can run parallel sub-searches, and can scrape one URL provided in the query. | 1–3s |
"deep" | Multi-iteration agentic search-and-scrape chaining with evaluation. | 5–30s |
Agentic search ("standard", "deep")
In "standard" and "deep", the system interprets the query, plans the retrieval, and evaluates the outputs returned. This means those two modes understand instructions on how to behave/perform the search.
"fast" does not invoke an LLM. No query interpretation, no scraping — the query is passed as-is to the index.- run one or several web searches,
- open and scrape webpages,
- reuse information discovered in earlier steps,
- refine or expand queries until the requested data is found.
Output types
| Output Type | Description |
|---|---|
"searchResults" | Array of {name, url, content}. Ranked URLs and content snippets for grounding. |
"sourcedAnswer" | Search results plus a natural-language answer with inline citations. |
"structured" | Search results plus JSON matching the caller’s structuredOutputSchema. Requires a JSON schema in structuredOutputSchema; see the structured output tutorial. |
Filtering and date controls
includeDomains/excludeDomains: restrict to or exclude up to 100 domains.fromDate/toDate: restrict to an ISO 8601 date range.maxResults: cap the number of returned sources.includeImages: surface relevant images.
Pricing
Cost depends on bothdepth and outputType. "sourcedAnswer" and "structured" invoke an LLM and carry a small premium over raw "searchResults".
depth | outputType | Cost |
|---|---|---|
"fast" / "standard" | "searchResults" | $0.005 per call |
"fast" / "standard" | "sourcedAnswer" / "structured" | $0.006 per call |
"deep" | "searchResults" | $0.05 per call |
"deep" | "sourcedAnswer" / "structured" | $0.055 per call |
Example
Get your API key
Create a Linkup account for free to get your API key.
outputType:
"structured" returns the JSON object described by structuredOutputSchema.
Next
Best practices
Depth selection, query phrasing, schema design.
For AI agents
Tool definitions and integration prompt for coding agents.
API reference
Full parameter spec and response schema.