{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews & Products Scraper | AI, Competitor Intel (2026)",
    "description": "Scrape G2 reviews and products in real-time. 32 fields: 6 sub-ratings, switching competitors, structured pros/cons, LLM-ready markdown. Top 10 competitors ranked per product. Built for market research, competitive intelligence, sales enablement. No login, no proxy, no anti-bot. $4 per 1,000 rows.",
    "version": "1.0",
    "x-build-id": "vpUg2zk6ketYKC4Eg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/factden~g2-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-factden-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/factden~g2-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-factden-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/factden~g2-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-factden-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "reviews",
              "products"
            ],
            "type": "string",
            "description": "Pick the workflow:\n- **Extract reviews** (default): get every public review for the products listed below. Writes review rows to the `Reviews` dataset and a per-product summary (incl. `topCompetitors`) to the `Products` dataset.\n- **Discover products**: find the top N products on G2 matching a search query. Writes product rows to the `Products` dataset; the `Reviews` dataset stays empty.",
            "default": "reviews"
          },
          "startUrls": {
            "title": "G2 product URLs or slugs",
            "minItems": 0,
            "maxItems": 100,
            "type": "array",
            "description": "Each entry is either a full G2 URL (`https://www.g2.com/products/<slug>` or `.../reviews`) or a bare canonical slug (`slack`, `microsoft-teams` — lowercase, hyphens, no spaces). Up to 100 products per run.",
            "items": {
              "type": "string",
              "pattern": "^(https?://([a-zA-Z0-9-]+\\.)?[gG]2\\.com/products/[a-zA-Z0-9-]{2,50}([/?#].*)?$|[a-zA-Z0-9-]{2,50})$"
            }
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard ceiling per product (1–50,000). Default 100 ≈ $0.41 per run, fits inside the $5 free credit. Raise for the full pull: 1,000 reviews ≈ $4.01, 10,000 ≈ $40.01.",
            "default": 100
          },
          "fromDate": {
            "title": "From date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only return reviews submitted on or after this date. Format: YYYY-MM-DD. Leave blank for no lower bound."
          },
          "toDate": {
            "title": "To date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only return reviews submitted on or before this date. Format: YYYY-MM-DD. Leave blank for no upper bound."
          },
          "minRating": {
            "title": "Minimum rating (1–5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only return reviews with an overall rating ≥ this value. Default 1 = include all detractors.",
            "default": 1
          },
          "maxRating": {
            "title": "Maximum rating (1–5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only return reviews with an overall rating ≤ this value. Default 5 = include all promoters.",
            "default": 5
          },
          "sortReviews": {
            "title": "Sort reviews by",
            "enum": [
              "newest",
              "helpful",
              "rating_high",
              "rating_low"
            ],
            "type": "string",
            "description": "How to order extracted reviews. `newest` (default) = most recent first. `rating_low` is the fastest path to negative-review pain-point mining. `helpful` surfaces the reviews G2 readers themselves found most useful.",
            "default": "newest"
          },
          "verifiedReviewer": {
            "title": "Verified reviewers only",
            "type": "boolean",
            "description": "When on, only reviews from verified G2 reviewers are returned (filters out the vendor-submitted set). Default off = include all.",
            "default": false
          },
          "searchQuery": {
            "title": "Search query",
            "minLength": 2,
            "maxLength": 200,
            "type": "string",
            "description": "Keyword used to look up products on G2 (e.g. `communication`, `CRM`, `project management`, `saas`). 2–200 characters."
          },
          "maxProducts": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many products to return (1–1,000). Each product row costs $0.004.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Defaults to Apify Proxy datacenter group, included in your Apify plan's monthly proxy quota (~9 GB free on Personal; this actor uses under 50 MB per 36k-review extraction). Switch to residential if you hit IP issues.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}