/search
curl --request POST \
--url https://api.linkup.so/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"depth": "deep",
"excludeDomains": [
"wikipedia.org"
],
"includeDomains": [
"microsoft.com",
"agolution.com"
],
"outputType": "sourcedAnswer",
"q": "What is Microsoft's 2024 revenue?"
}
EOFimport requests
url = "https://api.linkup.so/v1/search"
payload = {
"depth": "deep",
"excludeDomains": ["wikipedia.org"],
"includeDomains": ["microsoft.com", "agolution.com"],
"outputType": "sourcedAnswer",
"q": "What is Microsoft's 2024 revenue?"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
depth: 'deep',
excludeDomains: ['wikipedia.org'],
includeDomains: ['microsoft.com', 'agolution.com'],
outputType: 'sourcedAnswer',
q: 'What is Microsoft\'s 2024 revenue?'
})
};
fetch('https://api.linkup.so/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkup.so/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'depth' => 'deep',
'excludeDomains' => [
'wikipedia.org'
],
'includeDomains' => [
'microsoft.com',
'agolution.com'
],
'outputType' => 'sourcedAnswer',
'q' => 'What is Microsoft\'s 2024 revenue?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkup.so/v1/search"
payload := strings.NewReader("{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkup.so/v1/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkup.so/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"name": "Microsoft 2024 Annual Report",
"url": "https://www.microsoft.com/investor/reports/ar24/index.html",
"content": "Highlights from fiscal year 2024 compared with fiscal year 2023 included: Microsoft Cloud revenue increased 23% to $137.4 billion.",
"favicon": "https://www.microsoft.com/favicon.ico",
"type": "text",
"publishedAt": "2024-07-30"
}
]
}Search
/search
The /search endpoint allows you to retrieve web content.
POST
/
v1
/
search
/search
curl --request POST \
--url https://api.linkup.so/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"depth": "deep",
"excludeDomains": [
"wikipedia.org"
],
"includeDomains": [
"microsoft.com",
"agolution.com"
],
"outputType": "sourcedAnswer",
"q": "What is Microsoft's 2024 revenue?"
}
EOFimport requests
url = "https://api.linkup.so/v1/search"
payload = {
"depth": "deep",
"excludeDomains": ["wikipedia.org"],
"includeDomains": ["microsoft.com", "agolution.com"],
"outputType": "sourcedAnswer",
"q": "What is Microsoft's 2024 revenue?"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
depth: 'deep',
excludeDomains: ['wikipedia.org'],
includeDomains: ['microsoft.com', 'agolution.com'],
outputType: 'sourcedAnswer',
q: 'What is Microsoft\'s 2024 revenue?'
})
};
fetch('https://api.linkup.so/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkup.so/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'depth' => 'deep',
'excludeDomains' => [
'wikipedia.org'
],
'includeDomains' => [
'microsoft.com',
'agolution.com'
],
'outputType' => 'sourcedAnswer',
'q' => 'What is Microsoft\'s 2024 revenue?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkup.so/v1/search"
payload := strings.NewReader("{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkup.so/v1/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkup.so/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"depth\": \"deep\",\n \"excludeDomains\": [\n \"wikipedia.org\"\n ],\n \"includeDomains\": [\n \"microsoft.com\",\n \"agolution.com\"\n ],\n \"outputType\": \"sourcedAnswer\",\n \"q\": \"What is Microsoft's 2024 revenue?\"\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"name": "Microsoft 2024 Annual Report",
"url": "https://www.microsoft.com/investor/reports/ar24/index.html",
"content": "Highlights from fiscal year 2024 compared with fiscal year 2023 included: Microsoft Cloud revenue increased 23% to $137.4 billion.",
"favicon": "https://www.microsoft.com/favicon.ico",
"type": "text",
"publishedAt": "2024-07-30"
}
]
}Get your API key
Create a Linkup account for free to get your API key.
depth, outputType, and the other parameters,
see the Search overview.Authorizations
Body
application/json
Defines the search mode. flash is lowest latency: ranked sources and snippets in a few hundred milliseconds, built for low-latency use cases. fast is higher-quality one-shot retrieval in about a second — the recommended default for most agentic applications. standard is a single pass of agentic search for queries that span several topics or sources. deep runs several search iterations, optimizing for coverage and multi-hop agentic workflows.
Available options:
deep, fast, flash, standard