{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews Scraper — Ratings, Role & Reputation Monitor",
    "description": "🔥 Up to 20% OFF! Scrape G2 software reviews — rating, text, reviewer role & company size, sub-ratings, with cross-run reputation monitoring (new & negative-review alerts). Residential proxy built in. Perfect for competitive & market research. ⚡",
    "version": "0.0",
    "x-build-id": "SEX5yyYMA73ygTaTL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bgfc97~g2-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bgfc97-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/bgfc97~g2-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bgfc97-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/bgfc97~g2-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bgfc97-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",
        "required": [
          "mode",
          "productUrlsOrSlugs"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "productReviews",
              "productInfo"
            ],
            "type": "string",
            "description": "What to return: 'productReviews' (product summary + its individual reviews) or 'productInfo' (just the product summary — rating, pricing, categories, FAQ, top alternatives — with no reviews and no per-review charge).",
            "default": "productReviews"
          },
          "productUrlsOrSlugs": {
            "title": "G2 products (slugs or URLs)",
            "type": "array",
            "description": "One or more G2 products. A bare slug (\"slack\"), a product URL (\"https://www.g2.com/products/asana\") or a reviews URL all work. Renamed products are handled automatically (the Actor detects G2's canonical slug from the page).",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of reviews to collect per product (across all pages, after filtering). Each collected review is one charged item.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "most_recent",
              "most_helpful",
              "highest_rated",
              "lowest_rated"
            ],
            "type": "string",
            "description": "Order G2 returns reviews in. 'most_recent' lets the Actor stop early once a date filter is passed; 'most_helpful' is G2's own default.",
            "default": "most_recent"
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at least this many stars (1-5). Leave empty for no minimum."
          },
          "maxRating": {
            "title": "Maximum star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at most this many stars (1-5). Leave empty for no maximum."
          },
          "reviewsFrom": {
            "title": "Reviews from (date)",
            "type": "string",
            "description": "Keep only reviews published on or after this date (YYYY-MM-DD). With 'Most recent' sort the Actor stops paging once it passes this date."
          },
          "reviewsTo": {
            "title": "Reviews to (date)",
            "type": "string",
            "description": "Keep only reviews published on or before this date (YYYY-MM-DD)."
          },
          "companySizes": {
            "title": "Company sizes",
            "type": "array",
            "description": "Keep only reviews from these reviewer company segments. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Small-Business",
                "Mid-Market",
                "Enterprise"
              ]
            }
          },
          "verifiedOnly": {
            "title": "Verified reviewers only",
            "type": "boolean",
            "description": "Keep only reviews from G2 'Validated Reviewer' profiles.",
            "default": false
          },
          "includeIncentivized": {
            "title": "Include incentivized reviews",
            "type": "boolean",
            "description": "When off, drop reviews G2 marks as incentivized (gift-card / reward reviews).",
            "default": true
          },
          "includeAlternatives": {
            "title": "Include top alternatives",
            "type": "boolean",
            "description": "Add G2's 'Top-Rated Alternatives' (competitor products with slug, name and rating) to each product record.",
            "default": true
          },
          "includeFaq": {
            "title": "Include product FAQ",
            "type": "boolean",
            "description": "Add G2's product FAQ (question/answer pairs) to each product record.",
            "default": true
          },
          "includeInsights": {
            "title": "Include review insights (analytics)",
            "type": "boolean",
            "description": "Emit one extra 'reviewInsights' record per product, computed from the reviews collected this run: star-rating sentiment breakdown, recurring liked/disliked phrases reviewers actually wrote, G2's own feature mentions, company-size / industry / role mix, and provenance analytics (verified %, incentivized %, source mix, current-vs-former-user mix). Derived from real data only — nothing fabricated. Not charged. Only applies in 'productReviews' mode.",
            "default": true
          },
          "includeComparison": {
            "title": "Include competitor comparison matrix",
            "type": "boolean",
            "description": "Emit one 'comparison' record for the run: a side-by-side of every product scraped (rating, total reviews, entry-level price, free tier, primary category) plus the ratings G2 shows on each product's 'Top-Rated Alternatives' cards, ranked by rating. Each row is tagged with its data source. Not charged.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used when the Actor escalates past the free plain-fetch pass (G2 sits behind Cloudflare + DataDome, so a plain request is usually challenged). RESIDENTIAL is strongly recommended and used by default. You pay for proxy traffic. The plain-fetch first pass runs without proxy; escalation (proxied fetch, then a stealth browser) turns it on automatically. Turn the proxy off to run every tier direct.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency (browser tier)",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages the stealth-browser tier fetches in parallel. Real browsers are memory-heavy, so this is clamped 1-8; default 3.",
            "default": 3
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "maximum": 15,
            "type": "number",
            "description": "Polite pause between page requests (0-15).",
            "default": 1
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "maximum": 180,
            "type": "integer",
            "description": "Timeout per page request (5-180).",
            "default": 40
          },
          "trackChanges": {
            "title": "Track changes between runs (cross-run monitor)",
            "type": "boolean",
            "description": "Turn the run into a REPUTATION MONITOR. Each product's snapshot (average rating, total reviews, star distribution, pricing, competitors) and a bounded index of this run's reviews are saved to a named key-value store that survives between runs, so the next run with the same monitorKey diffs today's G2 against the last look: NEW reviews, NEW NEGATIVE reviews (≤2★ — flagged first), average-rating up/down, how many reviews entered G2 overall, star-distribution shifts (a 1★ spike = critical alert), new competitors in G2's Top-Rated Alternatives, pricing moves. Adds a few monitor columns per product/review and one free 'monitor_summary' row. Off = identical to today, zero monitor columns. Run on a schedule with the same monitorKey + same products/filters.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "A stable name tying successive monitoring runs together (e.g. 'slack-reputation-watch'). Use the SAME key + same products/filters on each run so diffs compare like with like. Only used when 'Track changes' is on; blank falls back to 'default'. Use one key per saved product set — different keys keep independent histories."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}