{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews Scraper",
    "description": "Scrape G2.com software reviews by product URL, name, search or category: rating, pros, cons, reviewer role, company size, industry, vendor response. Filters by stars, company size, region, role, keyword, date. More than 100 reviews per product. Export JSON, CSV, Excel.",
    "version": "0.0",
    "x-build-id": "ZRTbDdWDpsM1KmlJ4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~g2-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-g2-reviews-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nice_dev~g2-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-g2-reviews-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nice_dev~g2-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-g2-reviews-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "G2 product, search or category URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "G2 URLs: a product page in any form (`https://www.g2.com/products/slack/reviews`, `https://www.g2.com/products/slack`, a single review URL), a search (`https://www.g2.com/search?query=crm`), a category (`https://www.g2.com/categories/crm`) or an alternatives page (`https://www.g2.com/products/slack/competitors/alternatives`). Review filters and sort pasted in a product URL (`?order=most_recent&filters[company_segment][]=181`) are kept. Search, category and alternatives pages give up to **Max products per search / category** products. Added to the product names below. URLs are typed one by one: a link to a remote file of URLs is not read.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "query": {
            "title": "Product name",
            "maxLength": 200,
            "type": "string",
            "description": "A software name as typed in the G2 search box (e.g. `HubSpot Marketing Hub`): the product whose name matches exactly (case ignored) is used, else the first search result (named in the log)."
          },
          "searchQueries": {
            "title": "More product names",
            "maxItems": 200,
            "uniqueItems": true,
            "type": "array",
            "description": "Several products in one run, one name per line. Added to **Product name** and the URLs above; a product reached twice is read once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerCategory": {
            "title": "Max products per search / category",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many products to take from each pasted search, category or alternatives page (in the order G2 lists them). Not used for product URLs and product names.",
            "default": 10
          },
          "maxItems": {
            "title": "Max reviews",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of reviews to save for the whole run (after deduplication and filters). 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max reviews per product",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cap for EACH product, so that the first product cannot use up the whole **Max reviews** budget. 0 = no per-product cap.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "most_recent",
              "most_helpful",
              "highest_rated",
              "lowest_rated",
              "g2_default"
            ],
            "type": "string",
            "description": "Order in which G2 lists the reviews of each product. G2 shows at most 10 pages (100 reviews) per list: above that, the Actor splits the product by star rating, company size, region, role and industry to reach the other reviews, and the order then holds inside each part only.",
            "default": "most_recent"
          },
          "includeProductDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open each product page (1 extra request per product) and add to every review of that product: description, vendor, starting price, G2's AI summary and the pros / cons themes with their counts. Charged once per product (see Pricing). Product name, rating, review count and categories are always included for free.",
            "default": false
          },
          "includeReviewAnalysis": {
            "title": "AI review analysis",
            "type": "boolean",
            "description": "Strengths, pain points and recurring themes of each product, written by AI from the reviews of that product collected in this run (so the filters, the review limits and the new-reviews-only mode apply). Paid Apify plans only. Charged once per product analyzed (see Pricing), never when the analysis fails or fewer than 3 reviews were collected for the product. The text is in English. The result is in the **AI review analysis** output tab (key-value store record `REVIEW_ANALYSIS`), not in the dataset rows.",
            "default": false
          },
          "maxReviewAnalyses": {
            "title": "Max AI review analyses",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most products analyzed in one run, whatever the number of products read. Products beyond it are listed in the record without an analysis and are not charged. Used only with **AI review analysis**.",
            "default": 100
          },
          "maxReviewsPerAnalysis": {
            "title": "Reviews read per analysis",
            "minimum": 3,
            "maximum": 100,
            "type": "integer",
            "description": "How many reviews of a product the analysis reads (the first ones the run collected, from 3 to 100). Used only with **AI review analysis**.",
            "default": 50
          },
          "starRatings": {
            "title": "Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these star ratings (G2 buckets: `1` = up to 1 star, `5` = 4.5 to 5 stars). Empty = all. Several stars are read highest star first: under **Max reviews**, the higher stars fill it first.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "companySizes": {
            "title": "Reviewer company size",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviewers from these company sizes. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "small",
                "mid",
                "enterprise"
              ],
              "enumTitles": [
                "Small business (50 or fewer employees)",
                "Mid-market (51-1,000 employees)",
                "Enterprise (more than 1,000 employees)"
              ]
            },
            "default": []
          },
          "regions": {
            "title": "Reviewer region",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviewers from these regions. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "North America",
                "Europe",
                "Asia",
                "Latin America",
                "ANZ",
                "Middle East",
                "Africa"
              ],
              "enumTitles": [
                "North America",
                "Europe",
                "Asia",
                "Latin America",
                "Australia and New Zealand",
                "Middle East",
                "Africa"
              ]
            },
            "default": []
          },
          "reviewerRoles": {
            "title": "Reviewer role",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviewers with these roles toward the software. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "user",
                "administrator",
                "executive_sponsor",
                "internal_consultant",
                "consultant",
                "agency",
                "analyst"
              ],
              "enumTitles": [
                "User",
                "Administrator",
                "Executive sponsor",
                "Internal consultant",
                "Consultant",
                "Agency",
                "Industry analyst / tech writer"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviews that mention at least one of these words, searched by G2 in the review text (one G2 search per keyword). Empty = all. Several words are read in the order given: under **Max reviews**, the first words fill it first.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Written after",
            "type": "string",
            "description": "Only reviews written on or after this date (the day the reviewer submitted them): `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month`. With **Most recent**, reading stops at the first page whose reviews G2 all published before that date; an old review that G2 publishes again among the newest is filtered out and does not stop the reading."
          },
          "postedBefore": {
            "title": "Written before",
            "type": "string",
            "description": "Only reviews submitted on or before this date (the whole day is included), or older than a period such as `30 days`."
          },
          "reviewerIndustries": {
            "title": "Reviewer industries",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only reviewers whose industry contains one of these words (`software` keeps \"Computer Software\"; case ignored). Reviews without an industry are dropped. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the reviews whose title or text contains one of these WHOLE words (case and accents ignored). Several words in one entry must appear together, in that order.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeIncentivized": {
            "title": "Exclude incentivized reviews",
            "type": "boolean",
            "description": "Drop the reviews G2 marks as incentivized (the reviewer got a gift card or similar).",
            "default": false
          },
          "withResponseOnly": {
            "title": "Only reviews with a vendor reply",
            "type": "boolean",
            "description": "Keep only the reviews the vendor answered on G2.",
            "default": false
          },
          "currentUsersOnly": {
            "title": "Current users only",
            "type": "boolean",
            "description": "Keep only the reviews G2 marks as written by a current user of the software.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new reviews",
            "type": "boolean",
            "description": "Skip the reviews that a previous run (same **Memory key**) already delivered: they are not saved again, and a review already delivered that is read again pays the filter fee, once per review and per run. With **Most recent**, reading of a product (or of each part of it) stops after a few known reviews: 8 under a **Max reviews** limit such as the default 100 (80 % of what the previous run delivered of the product when that is fewer than 10), 10 in a row with no limit. First run = everything is new.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new reviews**. Give each schedule / task its own key (e.g. `crm-weekly`). Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every review again. Untick it afterwards.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of pages read in parallel. A G2 page takes 4-70 s through the unblocking proxy, so parallel reading sets the speed.",
            "default": 10
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Most page requests in any 60 seconds. A budget, not an even pace.",
            "default": 120
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. 0 = no gap.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per page before it is marked as failed (a busy proxy answer, HTTP 502, is retried).",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log.",
            "default": false
          },
          "productUrl": {
            "title": "productUrl (alias of startUrls)",
            "type": "string",
            "description": "Same as startUrls, accepted for compatibility with other G2 scrapers."
          },
          "url": {
            "title": "url (alias of startUrls)",
            "type": "string",
            "description": "Same as startUrls, accepted for compatibility with other G2 scrapers."
          },
          "productName": {
            "title": "productName (alias of query)",
            "type": "string",
            "description": "Same as query, accepted for compatibility with other G2 scrapers."
          },
          "searchQuery": {
            "title": "searchQuery (alias of query)",
            "type": "string",
            "description": "Same as query, accepted for compatibility with other G2 scrapers."
          },
          "maxReviews": {
            "title": "maxReviews (alias of maxItems)",
            "type": "integer",
            "description": "Same as maxItems, accepted for compatibility with other G2 scrapers."
          },
          "maxResults": {
            "title": "maxResults (alias of maxItems)",
            "type": "integer",
            "description": "Same as maxItems, accepted for compatibility with other G2 scrapers."
          },
          "limit": {
            "title": "limit (alias of maxItems)",
            "type": "integer",
            "description": "Same as maxItems, accepted for compatibility with other G2 scrapers."
          },
          "maxReviewsPerProduct": {
            "title": "maxReviewsPerProduct (alias of maxItemsPerQuery)",
            "type": "integer",
            "description": "Same as maxItemsPerQuery, accepted for compatibility with other G2 scrapers."
          },
          "maxProducts": {
            "title": "maxProducts (alias of maxProductsPerCategory)",
            "type": "integer",
            "description": "Same as maxProductsPerCategory, accepted for compatibility with other G2 scrapers."
          },
          "sort": {
            "title": "sort (alias of sortBy)",
            "type": "string",
            "description": "Same as sortBy, accepted for compatibility with other G2 scrapers."
          },
          "sortOrder": {
            "title": "sortOrder (alias of sortBy)",
            "type": "string",
            "description": "Same as sortBy, accepted for compatibility with other G2 scrapers."
          },
          "sortReviews": {
            "title": "sortReviews (alias of sortBy)",
            "type": "string",
            "description": "Same as sortBy, accepted for compatibility with other G2 scrapers."
          },
          "minRating": {
            "title": "minRating (alias of starRatings)",
            "type": "integer",
            "description": "Same as starRatings, accepted for compatibility with other G2 scrapers."
          },
          "maxRating": {
            "title": "maxRating (alias of starRatings)",
            "type": "integer",
            "description": "Same as starRatings, accepted for compatibility with other G2 scrapers."
          },
          "starFilterCondition": {
            "title": "starFilterCondition (alias of starRatings)",
            "type": "string",
            "description": "Same as starRatings, accepted for compatibility with other G2 scrapers."
          },
          "starFilterValue": {
            "title": "starFilterValue (alias of starRatings)",
            "type": "integer",
            "description": "Same as starRatings, accepted for compatibility with other G2 scrapers."
          },
          "publishedAfter": {
            "title": "publishedAfter (alias of postedAfter)",
            "type": "string",
            "description": "Same as postedAfter, accepted for compatibility with other G2 scrapers."
          },
          "fromDate": {
            "title": "fromDate (alias of postedAfter)",
            "type": "string",
            "description": "Same as postedAfter, accepted for compatibility with other G2 scrapers."
          },
          "dateFrom": {
            "title": "dateFrom (alias of postedAfter)",
            "type": "string",
            "description": "Same as postedAfter, accepted for compatibility with other G2 scrapers."
          },
          "lookbackDays": {
            "title": "lookbackDays (alias of postedAfter)",
            "type": "integer",
            "description": "Same as postedAfter, accepted for compatibility with other G2 scrapers."
          },
          "publishedBefore": {
            "title": "publishedBefore (alias of postedBefore)",
            "type": "string",
            "description": "Same as postedBefore, accepted for compatibility with other G2 scrapers."
          },
          "toDate": {
            "title": "toDate (alias of postedBefore)",
            "type": "string",
            "description": "Same as postedBefore, accepted for compatibility with other G2 scrapers."
          },
          "dateTo": {
            "title": "dateTo (alias of postedBefore)",
            "type": "string",
            "description": "Same as postedBefore, accepted for compatibility with other G2 scrapers."
          },
          "incrementalMode": {
            "title": "incrementalMode (alias of onlyNew)",
            "type": "boolean",
            "description": "Same as onlyNew, accepted for compatibility with other G2 scrapers."
          },
          "onlyNewReviews": {
            "title": "onlyNewReviews (alias of onlyNew)",
            "type": "boolean",
            "description": "Same as onlyNew, accepted for compatibility with other G2 scrapers."
          },
          "monitoringMode": {
            "title": "monitoringMode (alias of onlyNew)",
            "type": "boolean",
            "description": "Same as onlyNew, accepted for compatibility with other G2 scrapers."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}