# G2 API

Compare software products using user reviews, vendor profiles, ratings and alternative options for SaaS evaluation.

Use a supported product URL or slug for software details, and keep product reviews, vendor records and comparison results distinct.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "g2", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/g2-api](https://everyinfra.com/en/g2-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Match a `keyword` against G2's software catalog and see each product's vendor, rating, ten-point score, review count, pricing type, category rank and sponsored flag. Sponsored placements can sit near the top without a higher rating.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search query for discovering software product entries in G2. It matches product catalog entries rather than indexing review body text. Product comparisons, alternatives, and vendor profiles require their respective object identifiers instead.
- Returns fields: product_name, url, reviews_url, description, vendor_name, vendor_url, rating, rating_scale, review_count, rank, image_url, categories, platform, rating_out_of_ten, pricing_type, item_type, is_sponsored
- Capability page: [https://everyinfra.com/en/g2-api/search](https://everyinfra.com/en/g2-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/search.md)

### profile — Details
Open a G2 product page by `url` or slug. Get its description, vendor, ratings, review count, pricing tiers, feature text and screenshots. The profile describes the product, not a reviewer or the vendor company.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied.
- Returns fields: slug, name, description, url, reviews_url, alternatives_url, vendor_name, vendor_url, rating, rating_scale, review_count, pricing_tiers, features_text, image_urls, platform, rating_out_of_ten
- Capability page: [https://everyinfra.com/en/g2-api/profile](https://everyinfra.com/en/g2-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/profile.md)

### reviews — Reviews
Pull a G2 product's aggregate rating, review summary and top pros and cons, plus individual reviews with reviewer job title, company size and vendor responses. The summary is G2's digest, and sorting does not turn it into the verbatim text of every review.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied.
  - `sort` (optional): Sorts reviews using allowed values: newest, relevance (default), or top_rated. Although accepted across shared object endpoints, passing this parameter does not guarantee that product profile details, vendor pages, or comparison lists will change their internal sorting order. One of: newest, relevance, top_rated.
- Returns fields: record_type, product_slug, url, aggregate_rating, total_reviews, summary_text, top_pros, top_cons, platform, id, title, text, rating, rating_scale, responses, author_name, author_job_title, author_business_size, product_name, posted_at
- Capability page: [https://everyinfra.com/en/g2-api/reviews](https://everyinfra.com/en/g2-api/reviews?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/reviews.md)

### vendor — Vendor
Look up a G2 vendor page by `url` for founding year, headquarters, ownership, revenue band, employee count, phone and the products it lists. Revenue and headcount are as published on G2, not audited figures.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied.
  - `slug` (optional): Specifies the path slug for the target resource: product actions accept the slug following /products/, while vendor accepts the vendor slug following /sellers/. Do not mix slugs across object types. Providing a slug does not waive the required url or category parameters for the given action.
  - `vendor` (optional): Specifies either the seller path slug from /sellers/ or a direct vendor page URL. It does not perform a free-text company name search, and vendor action calls must still include the required url parameter.
  - `vendor_url` (optional): Provides the /sellers/<slug> vendor landing page URL as a compatibility input for vendor targeting. It does not replace the required url parameter on the vendor action.
- Returns fields: slug, name, url, description, founded, hq_location, product_count, total_reviews, products, platform, ownership, total_revenue, employees, phone
- Capability page: [https://everyinfra.com/en/g2-api/vendor](https://everyinfra.com/en/g2-api/vendor?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/vendor.md)

### alternatives — Alternatives
Get up to 30 G2 alternatives to the product at `url`. Each one has vendor, rating, ten-point score, entry-level price and category rank. A place on the list, or a high rank, does not prove feature parity or better value.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied.
- Returns fields: name, slug, url, description, vendor_name, rating, rating_scale, review_count, rank, source_product_slug, image_url, platform, rating_out_of_ten, entry_level_price
- Capability page: [https://everyinfra.com/en/g2-api/alternatives](https://everyinfra.com/en/g2-api/alternatives?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/alternatives.md)

### compare — Product comparison
Compare the G2 products named in `slugs` on one comparison page. Get each product's rating and review count, ratings by dimension and the alternatives the page suggests. Slugs are joined with -vs- into the page path. You can also pass a ready-made `combined_slug`.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `slugs` (required): Specifies an array of product slugs or product URLs for the compare action, which are automatically joined with -vs- to construct the G2 comparison path. This parameter does not execute separate parallel queries or accept vendor names; choose product combinations with existing G2 comparison pages.
  - `combined_slug` (optional): Specifies the pre-joined comparison path slug following /compare/ for the compare action, taking precedence over auto-generated slug arrays. It does not accept single vendor-and-product identifiers, and passing an explicit url parameter takes higher precedence.
  - `url` (optional): Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied.
- Returns fields: url, combined_slug, product_count, products, ratings, alternatives_shown, platform
- Capability page: [https://everyinfra.com/en/g2-api/compare](https://everyinfra.com/en/g2-api/compare?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/compare.md)

### category — Category
Browse a G2 software category by its slug or category URL and get ranked products with vendor, ratings, entry-level price, awards and sponsored flag. Product names and keywords are not accepted, and the list does not cover the whole market.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=40. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `category` (required): Specifies the G2 software category path slug or full /categories/<slug> URL copied directly from a category page. It does not accept product names or free-form keywords, and accepted values are not restricted to predefined example lists.
- Returns fields: name, slug, url, vendor_name, vendor_slug, category, category_slug, rating, rating_scale, review_count, rank, page, image_url, platform, description, rating_out_of_ten, entry_level_price, is_sponsored, awards
- Capability page: [https://everyinfra.com/en/g2-api/category](https://everyinfra.com/en/g2-api/category?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/g2-api/category.md)

## G2 API questions

### What can I retrieve with the G2 API?

Set `platform` to `g2`. The current catalog lists search, details, reviews, vendor, alternatives, and more. These action names identify different G2 objects or views; they are not interchangeable search modes.

### Which input starts the G2 `search` request?

Specifies the search query for discovering software product entries in G2. It matches product catalog entries rather than indexing review body text. Product comparisons, alternatives, and vendor profiles require their respective object identifiers instead. Send it as `keyword` inside `params`.

### Which fields can G2 `search` return?

Its declared schema includes `product_name`, `reviews_url`, `description`, and `vendor_name`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every G2 action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=g2
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
