Brand Visibility
curl --request GET \
--url https://scrapebadger.com/v1/grok/brand-visibility \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/grok/brand-visibility"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/grok/brand-visibility', 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://scrapebadger.com/v1/grok/brand-visibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$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://scrapebadger.com/v1/grok/brand-visibility"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/grok/brand-visibility")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/grok/brand-visibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"mentioned": true,
"mention_count": 123,
"share_of_voice": 123,
"position": {},
"citation_rank": {},
"competitors": [
{}
],
"answer": "<string>",
"citations": [
{}
],
"search_results": [
{}
],
"x_search_results": [
{}
]
}Brand Visibility
Brand Visibility
Measure brand mentions, share of voice, position, competitors, and citation rank in a real Grok answer.
GET
/
v1
/
grok
/
brand-visibility
Brand Visibility
curl --request GET \
--url https://scrapebadger.com/v1/grok/brand-visibility \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/grok/brand-visibility"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/grok/brand-visibility', 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://scrapebadger.com/v1/grok/brand-visibility",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$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://scrapebadger.com/v1/grok/brand-visibility"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/grok/brand-visibility")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/grok/brand-visibility")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"mentioned": true,
"mention_count": 123,
"share_of_voice": 123,
"position": {},
"citation_rank": {},
"competitors": [
{}
],
"answer": "<string>",
"citations": [
{}
],
"search_results": [
{}
],
"x_search_results": [
{}
]
}Ask Grok a buyer-intent prompt and receive the full answer plus deterministic brand-visibility analysis. Accepts
GET and POST.
Credits: 25
Authorization
Parameters
Response
Example
cURL
curl -G "https://scrapebadger.com/v1/grok/brand-visibility" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "prompt=What are the best web scraping APIs?" \
--data-urlencode "brand=ScrapeBadger" \
--data-urlencode "competitors=Bright Data" \
--data-urlencode "competitors=Apify" \
--data-urlencode "brand_domain=scrapebadger.com" \
--max-time 90
Response
{
"prompt": "What are the best web scraping APIs?",
"brand": "ScrapeBadger",
"mentioned": true,
"mention_count": 2,
"share_of_voice": 0.5,
"position": 118,
"citation_rank": 2,
"competitors": [
{"brand": "Bright Data", "mentioned": true, "mention_count": 1},
{"brand": "Apify", "mentioned": true, "mention_count": 1}
],
"answer": "ScrapeBadger, Bright Data, and Apify are common choices..."
}

