Product Reviews
curl --request GET \
--url https://api.wokelo.ai/api/enterprise/company/product-reviews/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wokelo.ai/api/enterprise/company/product-reviews/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wokelo.ai/api/enterprise/company/product-reviews/', 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.wokelo.ai/api/enterprise/company/product-reviews/",
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.wokelo.ai/api/enterprise/company/product-reviews/"
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.wokelo.ai/api/enterprise/company/product-reviews/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/enterprise/company/product-reviews/")
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{
"status": "success",
"data": {
"company": "salesforce",
"product_name": "Slack",
"rating": 4.5,
"star_distribution": {
"1": 128,
"2": 270,
"3": 1239,
"4": 7083,
"5": 25056
},
"reviews": [
{
"review_id": 10674077,
"review_title": "Easy to use enterprise communication platform"
}
]
}
}
Enrichment
Product Reviews
Fetch G2 product reviews for a given company.
GET
/
api
/
enterprise
/
company
/
product-reviews
/
Product Reviews
curl --request GET \
--url https://api.wokelo.ai/api/enterprise/company/product-reviews/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.wokelo.ai/api/enterprise/company/product-reviews/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wokelo.ai/api/enterprise/company/product-reviews/', 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.wokelo.ai/api/enterprise/company/product-reviews/",
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.wokelo.ai/api/enterprise/company/product-reviews/"
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.wokelo.ai/api/enterprise/company/product-reviews/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wokelo.ai/api/enterprise/company/product-reviews/")
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{
"status": "success",
"data": {
"company": "salesforce",
"product_name": "Slack",
"rating": 4.5,
"star_distribution": {
"1": 128,
"2": 270,
"3": 1239,
"4": 7083,
"5": 25056
},
"reviews": [
{
"review_id": 10674077,
"review_title": "Easy to use enterprise communication platform"
}
]
}
}
Overview
Retrieves paginated product reviews for a specified company, supporting configurable result limits and offsets for efficient data navigation. Returns a structured list of product reviews.Endpoint Details
- Method: GET
- Endpoint:
/api/enterprise/company/product-reviews/
Authentication requirements
- Include a valid JWT token in your request header
- If you don’t have a token yet, you can get one from the
/auth/token/endpoint first.
Request
Request Parameters
Header Parameters
string
required
JWT token obtained from the Authentication request
URL Parameters
string
required
Permalink of the company whose product reviews need to be fetched E.g.
"salesforce"integer
Maximum number of product reviews to return
integer
Number of records to skip before starting to return results
Response
Successful response will have status as “success”. Results are returned in the response.{
"status": "success",
"data": {
"company": "salesforce",
"product_name": "Slack",
"rating": 4.5,
"star_distribution": {
"1": 128,
"2": 270,
"3": 1239,
"4": 7083,
"5": 25056
},
"reviews": [
{
"review_id": 10674077,
"review_title": "Easy to use enterprise communication platform"
}
]
}
}