Get Query Fanouts
curl --request GET \
--url https://api.geogen.io/v1/query-fanouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.geogen.io/v1/query-fanouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.geogen.io/v1/query-fanouts', 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.geogen.io/v1/query-fanouts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.geogen.io/v1/query-fanouts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.geogen.io/v1/query-fanouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.geogen.io/v1/query-fanouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"query": "best project management tools 2024",
"frequency": 15,
"uniqueResponses": 12,
"latestDate": "2024-01-15T10:30:00.000Z",
"modelIds": [
"uuid-1",
"uuid-2"
]
},
{
"query": "top productivity software reviews",
"frequency": 8,
"uniqueResponses": 6,
"latestDate": "2024-01-14T15:45:00.000Z",
"modelIds": [
"uuid-1"
]
}
],
"totalCount": 150,
"totalQueries": 450,
"pagination": {
"totalCount": 150,
"totalPages": 8,
"currentPage": 1,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false
},
"period": "30d"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Analytics
Get Query Fanouts
Get web search queries that LLMs performed during response generation. These are the queries that AI models use to search the web while generating their responses.
GET
/
query-fanouts
Get Query Fanouts
curl --request GET \
--url https://api.geogen.io/v1/query-fanouts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.geogen.io/v1/query-fanouts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.geogen.io/v1/query-fanouts', 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.geogen.io/v1/query-fanouts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.geogen.io/v1/query-fanouts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.geogen.io/v1/query-fanouts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.geogen.io/v1/query-fanouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"query": "best project management tools 2024",
"frequency": 15,
"uniqueResponses": 12,
"latestDate": "2024-01-15T10:30:00.000Z",
"modelIds": [
"uuid-1",
"uuid-2"
]
},
{
"query": "top productivity software reviews",
"frequency": 8,
"uniqueResponses": 6,
"latestDate": "2024-01-14T15:45:00.000Z",
"modelIds": [
"uuid-1"
]
}
],
"totalCount": 150,
"totalQueries": 450,
"pagination": {
"totalCount": 150,
"totalPages": 8,
"currentPage": 1,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false
},
"period": "30d"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}
