Search Results
curl --request POST \
--url https://api-lr.agent.ai/v1/action/get_search_results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"search_engine": "google",
"query": "best AI tools",
"num_posts": 1
}
'import requests
url = "https://api-lr.agent.ai/v1/action/get_search_results"
payload = {
"search_engine": "google",
"query": "best AI tools",
"num_posts": 1
}
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({search_engine: 'google', query: 'best AI tools', num_posts: 1})
};
fetch('https://api-lr.agent.ai/v1/action/get_search_results', 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-lr.agent.ai/v1/action/get_search_results",
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([
'search_engine' => 'google',
'query' => 'best AI tools',
'num_posts' => 1
]),
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-lr.agent.ai/v1/action/get_search_results"
payload := strings.NewReader("{\n \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\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-lr.agent.ai/v1/action/get_search_results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-lr.agent.ai/v1/action/get_search_results")
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 \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"response": {
"organic_results": [
{
"date": "Oct 2, 2024",
"displayed_link": "https://zapier.com › App picks › Best apps",
"domain": "zapier.com",
"favicon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAclBMVEX/TwD/SQD/RQD/oon/xrX/SwD/PQD/QgD/hWP/Yiv/9/H/8en/uaT/iGj///r/nIH/yrz/0cP/ppD/6eD/28//NgD/rZX/Ug3/cUj/lHb/////gmD/elH/mHv/sZ7/wrH/39X/jm7/az3/KgD/z8D/ZzdopBX/AAAAp0lEQVR4Ae3LhQ3EMBBE0fWanTjMjP2XGBIdpoJ8aURPAz96InhjlL0pF0IgOSelkIqikBIE4mXaOI5rPc+3QeipKIDYS9I4Cy7Ni7JSddN6tipY3CX9AGY0oSUnYu1N8zIkxnpzabpkGbps8pQ8jU/VsNCKLcdzMUs3WC8yuhrJhZrSaCxc3ZamcaEZhepH4a8cLkVEwpHLmgnknADBYxze4xKevtoBMjsJ9axv3/4AAAAASUVORK5CYII=",
"link": "https://zapier.com/blog/best-ai-productivity-tools/",
"position": 1,
"sitelinks": {
"inline": [
{
"link": "https://zapier.com/blog/free-ai-tools/",
"title": "The best free AI tools"
},
{
"link": "https://zapier.com/blog/best-ai-chatbot/",
"title": "The best AI chatbots"
},
{
"link": "https://zapier.com/blog/best-ai-search-engine/",
"title": "The best AI search engines"
},
{
"link": "https://zapier.com/blog/all-articles/best-apps/",
"title": "Best apps"
}
]
},
"snippet": "The best AI productivity tools by category · Chatbots (ChatGPT, Claude, Meta AI, Zapier Agents) · Search engines (Perplexity, Google AI ...",
"snippet_highlighted_words": [
"best AI",
"tools",
"AI",
"AI"
],
"source": "Zapier",
"title": "The best AI productivity tools in 2025"
}
],
"pagination": {
"current": 1,
"next": "https://www.google.com/search?q=best+AI+tools&oq=best+AI+tools&gl=us&hl=en&start=1&num=1&ie=UTF-8"
},
"related_searches": [
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+free&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgbEAE",
"query": "Best AI tools free"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Chatgpt&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgaEAE",
"query": "Chatgpt"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+for+students&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgYEAE",
"query": "Best AI tools for students"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+like+ChatGPT&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgZEAE",
"query": "Best AI tools like ChatGPT"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Free+AI+tools+list&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgXEAE",
"query": "Free AI tools list"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+for+business&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgWEAE",
"query": "Best AI tools for business"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Free+AI+tools+online&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgVEAE",
"query": "Free AI tools online"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Perplexity+AI&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgcEAE",
"query": "Perplexity AI"
}
],
"search_information": {
"detected_location": "United States",
"query_displayed": "best AI tools",
"time_taken_displayed": 0.28,
"total_results": 4070000000
},
"search_parameters": {
"device": "desktop",
"engine": "google",
"gl": "us",
"google_domain": "google.com",
"hl": "en",
"num": "1",
"q": "best AI tools"
}
}
}Inputs & Data Retrieval
Search Results
Fetch search results from Google, YouTube, or YouTube channels for specified queries.
POST
/
action
/
get_search_results
Search Results
curl --request POST \
--url https://api-lr.agent.ai/v1/action/get_search_results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"search_engine": "google",
"query": "best AI tools",
"num_posts": 1
}
'import requests
url = "https://api-lr.agent.ai/v1/action/get_search_results"
payload = {
"search_engine": "google",
"query": "best AI tools",
"num_posts": 1
}
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({search_engine: 'google', query: 'best AI tools', num_posts: 1})
};
fetch('https://api-lr.agent.ai/v1/action/get_search_results', 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-lr.agent.ai/v1/action/get_search_results",
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([
'search_engine' => 'google',
'query' => 'best AI tools',
'num_posts' => 1
]),
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-lr.agent.ai/v1/action/get_search_results"
payload := strings.NewReader("{\n \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\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-lr.agent.ai/v1/action/get_search_results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-lr.agent.ai/v1/action/get_search_results")
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 \"search_engine\": \"google\",\n \"query\": \"best AI tools\",\n \"num_posts\": 1\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"response": {
"organic_results": [
{
"date": "Oct 2, 2024",
"displayed_link": "https://zapier.com › App picks › Best apps",
"domain": "zapier.com",
"favicon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAclBMVEX/TwD/SQD/RQD/oon/xrX/SwD/PQD/QgD/hWP/Yiv/9/H/8en/uaT/iGj///r/nIH/yrz/0cP/ppD/6eD/28//NgD/rZX/Ug3/cUj/lHb/////gmD/elH/mHv/sZ7/wrH/39X/jm7/az3/KgD/z8D/ZzdopBX/AAAAp0lEQVR4Ae3LhQ3EMBBE0fWanTjMjP2XGBIdpoJ8aURPAz96InhjlL0pF0IgOSelkIqikBIE4mXaOI5rPc+3QeipKIDYS9I4Cy7Ni7JSddN6tipY3CX9AGY0oSUnYu1N8zIkxnpzabpkGbps8pQ8jU/VsNCKLcdzMUs3WC8yuhrJhZrSaCxc3ZamcaEZhepH4a8cLkVEwpHLmgnknADBYxze4xKevtoBMjsJ9axv3/4AAAAASUVORK5CYII=",
"link": "https://zapier.com/blog/best-ai-productivity-tools/",
"position": 1,
"sitelinks": {
"inline": [
{
"link": "https://zapier.com/blog/free-ai-tools/",
"title": "The best free AI tools"
},
{
"link": "https://zapier.com/blog/best-ai-chatbot/",
"title": "The best AI chatbots"
},
{
"link": "https://zapier.com/blog/best-ai-search-engine/",
"title": "The best AI search engines"
},
{
"link": "https://zapier.com/blog/all-articles/best-apps/",
"title": "Best apps"
}
]
},
"snippet": "The best AI productivity tools by category · Chatbots (ChatGPT, Claude, Meta AI, Zapier Agents) · Search engines (Perplexity, Google AI ...",
"snippet_highlighted_words": [
"best AI",
"tools",
"AI",
"AI"
],
"source": "Zapier",
"title": "The best AI productivity tools in 2025"
}
],
"pagination": {
"current": 1,
"next": "https://www.google.com/search?q=best+AI+tools&oq=best+AI+tools&gl=us&hl=en&start=1&num=1&ie=UTF-8"
},
"related_searches": [
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+free&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgbEAE",
"query": "Best AI tools free"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Chatgpt&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgaEAE",
"query": "Chatgpt"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+for+students&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgYEAE",
"query": "Best AI tools for students"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+like+ChatGPT&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgZEAE",
"query": "Best AI tools like ChatGPT"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Free+AI+tools+list&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgXEAE",
"query": "Free AI tools list"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Best+AI+tools+for+business&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgWEAE",
"query": "Best AI tools for business"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Free+AI+tools+online&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgVEAE",
"query": "Free AI tools online"
},
{
"link": "https://www.google.com/search?num=1&sca_esv=98cf8f3b668dc52c&hl=en&gl=us&q=Perplexity+AI&sa=X&ved=2ahUKEwi37IWr4ryLAxUNJNAFHXkRHdkQ1QJ6BAgcEAE",
"query": "Perplexity AI"
}
],
"search_information": {
"detected_location": "United States",
"query_displayed": "best AI tools",
"time_taken_displayed": 0.28,
"total_results": 4070000000
},
"search_parameters": {
"device": "desktop",
"engine": "google",
"gl": "us",
"google_domain": "google.com",
"hl": "en",
"num": "1",
"q": "best AI tools"
}
}
}Authorizations
Bearer token from your account (https://agent.ai/user/integrations#api)
Body
application/json
Search engine to use.
Available options:
google, youtube, youtube_channel Search terms to find specific results.
Example:
"best AI tools"
Number of results to return.
Available options:
1, 5, 10, 25, 50, 100 ⌘I

