# Social Fetch API - G2 endpoints # Base URL: https://api.socialfetch.dev # Auth: x-api-key header (sfk_...) # Full catalog: https://www.socialfetch.dev/llms-endpoints.txt | JSON: https://www.socialfetch.dev/llms.json # Docs hub: https://www.socialfetch.dev/docs/api | OpenAPI: https://www.socialfetch.dev/openapi.json 7 documented G2 operations. Do not invent paths - only the routes below (and their linked markdown pages) are supported. ## GET /v1/g2/products/{slug} Get G2 product Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/products/slug/get.mdx SDK: client.g2.getProduct({ slug: "slack" }) Parameters: - slug (required, string) - The product's G2 slug, e.g. `slack` (`slug` in G2 lists), or its G2 page URL such as `https://www.g2.com/products/slack`. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/g2/products/slack" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/products/{slug}/reviews List G2 product reviews Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/products/slug/reviews/get.mdx SDK: client.g2.listProductReviews({ slug: "hubspot-marketing-hub", sort: "recency" }) Parameters: - slug (required, string) - The product's G2 slug, e.g. `slack` (`slug` in G2 lists), or its G2 page URL such as `https://www.g2.com/products/slack`. - sort (optional, string, enum: relevance | recency) - `relevance` (default): the order G2 shows first. `recency`: newest first. - stars (optional, integer) - Only reviews with this many stars, 1 to 5. Omit for every rating. - query (optional, string) - Only reviews that mention this text, e.g. `pricing`. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same parameters. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/g2/products/slack/reviews?sort=recency" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/products List every G2 product Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/products/get.mdx SDK: client.g2.listProducts({ limit: 1000 }) Parameters: - limit (optional, integer) - Products per page, 1-5000. Default: 1000. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same parameters. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. curl "https://api.socialfetch.dev/v1/g2/products?limit=1000" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/categories/{slug} Get G2 category products Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/categories/slug/get.mdx SDK: client.g2.getCategory({ slug: "crm" }) Parameters: - slug (required, string) - The category's G2 slug, e.g. `crm` (`slug` in G2 lists), or its G2 page URL such as `https://www.g2.com/categories/crm`. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same parameters. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/g2/categories/crm" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/categories List every G2 category Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/categories/get.mdx SDK: client.g2.listCategories() curl "https://api.socialfetch.dev/v1/g2/categories" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/sellers/{slug} Get G2 seller Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/sellers/slug/get.mdx SDK: client.g2.getSeller({ slug: "atlassian" }) Parameters: - slug (required, string) - The seller's G2 slug, e.g. `atlassian` (`slug` in G2 lists), or its G2 page URL such as `https://www.g2.com/sellers/atlassian`. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/g2/sellers/atlassian" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/g2/sellers/{slug}/products List G2 seller products Credit cost: 1 credit. Failed requests are free. Found, empty and not-found answers are all charged. Auth: API key or x402 payment (no key needed for payment) Docs: https://www.socialfetch.dev/docs/api/v1/g2/sellers/slug/products/get.mdx SDK: client.g2.listSellerProducts({ slug: "atlassian" }) Parameters: - slug (required, string) - The seller's G2 slug, e.g. `atlassian` (`slug` in G2 lists), or its G2 page URL such as `https://www.g2.com/sellers/atlassian`. - cursor (optional, string) - Pass `page.nextCursor` from the previous response to get the next page. It only works with the same parameters. Pagination: send query `cursor` from prior `data.page.nextCursor`; stop when `data.page.hasMore` is false. Outcome field: `data.lookupStatus` in `found`, `not_found` curl "https://api.socialfetch.dev/v1/g2/sellers/atlassian/products" \ -H "x-api-key: YOUR_API_KEY"