category_slugstringwajib
Category slug from get_categories results (e.g. 'crm', 'project-management')
https://api.sandbase.ai/v1/api/g2/category-productsList software products within a given G2 category. Returns products with name, slug, rating, and review count.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns a list of software products in one G2 category, with each product's name, slug, rating, and review count. It needs a category_slug such as crm, and an optional page number.
curl -X POST "https://api.sandbase.ai/v1/api/g2/category-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category_slug": "crm", "page": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category_slug | string | Yes | Category slug from get_categories results (e.g. 'crm', 'project-management') |
page | integer | No | Page number for pagination |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"category": "crm",
"page": 1,
"products": [
{
"name": "Salesforce Sales Cloud",
"rating": 4.4,
"review_count": 27587,
"slug": "agentforce-sales-formerly-salesforce-sales-cloud"
}
]
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.category | The category slug that the request used, for example crm. |
data.page | The page number of this result set. |
data.products[].name | Display name of the software product. |
data.products[].slug | G2 slug for the product. Use it as the product input in other G2 APIs. |
data.products[].rating | Average rating of the product on G2, shown as a decimal such as 4.4. |
data.products[].review_count | Number of reviews the product has on G2. |
status | Shows success when the call worked. |
category_slug values from G2 Categories.page to read more products in the same category. The response echoes the current page in data.page.slug to G2 Product Overview for details or to G2 Product Reviews for individual reviews.$0.05 per successful call. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/g2/category-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"category_slug": "crm"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
category_slugstringwajibCategory slug from get_categories results (e.g. 'crm', 'project-management')
pageintegerPage number for pagination
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
G2 Category ProductsAPI ini G2 | $0.05 per panggilan | JSON Asinkron |
G2 | $0.05 per panggilan | JSON Asinkron |
G2 | $0.01 per panggilan | JSON Asinkron |
G2 | Dari $0.0025 per panggilan | JSON |
G2 | $0.02 per panggilan | JSON Asinkron |
Panduan:Best Review API in 2026: G2 and Trustpilot Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/g2/category-products dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.05 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: category_slug (string). Opsional: page (integer). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Hasil JSON. Endpoint ini berjalan secara asinkron, jadi responsnya memberi tahu cara mengambil hasil yang sudah selesai. README di halaman ini menyertakan contoh respons.
Tidak. G2 Category Products berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API G2 secara terpisah.