{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews Scraper - Top Reviews Sample per Product",
    "description": "Sample the top G2 reviews of any software product with rating, pros, cons, reviewer role, company size and industry. Export to CSV, Excel, JSON or XML.",
    "version": "0.0",
    "x-build-id": "Kv9afsdGLeKBbGhtF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~g2-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-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/parseforge~g2-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-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/parseforge~g2-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-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": [
          "productUrls"
        ],
        "properties": {
          "productUrls": {
            "title": "Products (G2 URLs or slugs)",
            "type": "array",
            "description": "G2 product pages to sample, one per line: a product URL such as https://www.g2.com/products/slack/reviews or just the slug (slack). Category pages are not supported. You get a SAMPLE of the top reviews of each product, not its full history.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit per product. G2 shows only 10 reviews per filter slice and the Actor reads many slices, so the real ceiling is about 500 to 650 unique reviews per product; asking for more just ends earlier. 5-star reviews cannot be selected with the rating filter.",
            "default": 100
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "First day to keep, as YYYY-MM-DD. Empty = no lower limit."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "Last day to keep, as YYYY-MM-DD. Empty = no upper limit."
          },
          "sortBy": {
            "title": "Sort reviews",
            "enum": [
              "default",
              "newest",
              "lowest-rated"
            ],
            "type": "string",
            "description": "Lowest rated reads the lowest rating buckets first and sorts every slice worst-first, so pain points come first and survive a low Max Items. Newest sorts every slice most recent first (used automatically with a date range). This orders how slices are read; it is not a global sort of the final dataset.",
            "default": "default"
          },
          "ratingBuckets": {
            "title": "Rating buckets",
            "type": "array",
            "description": "G2 rating buckets to read. Empty = all four. There is no bucket for 5-star reviews: G2 ignores that filter.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "Bucket 1: lowest ratings",
                "Bucket 2: about 1.5 to 2 stars",
                "Bucket 3: about 2.5 to 3 stars",
                "Bucket 4: about 3.5 to 4 stars"
              ]
            }
          },
          "companySegments": {
            "title": "Company size",
            "type": "array",
            "description": "Only read reviews from these company sizes. Empty = all three.",
            "items": {
              "type": "string",
              "enum": [
                "179",
                "180",
                "181"
              ],
              "enumTitles": [
                "Small business (50 or fewer employees)",
                "Mid-market (51 to 1000 employees)",
                "Enterprise (more than 1000 employees)"
              ]
            }
          },
          "regions": {
            "title": "Reviewer region",
            "type": "array",
            "description": "Only read reviews from these regions. Empty = every region G2 lists for the product.",
            "items": {
              "type": "string",
              "enum": [
                "North America",
                "Europe",
                "Asia",
                "Latin America",
                "Middle East",
                "Africa",
                "ANZ"
              ],
              "enumTitles": [
                "North America",
                "Europe",
                "Asia",
                "Latin America",
                "Middle East",
                "Africa",
                "Australia and New Zealand"
              ]
            }
          },
          "extendWith": {
            "title": "Go deeper with",
            "type": "array",
            "description": "After the main slices, full slices are split again to reach more reviews, one lever at a time. Empty = all three. Untick to keep runs shorter.",
            "items": {
              "type": "string",
              "enum": [
                "sort",
                "role",
                "industry"
              ],
              "enumTitles": [
                "Sort orders (most recent, highest rated, lowest rated, most helpful)",
                "Reviewer role",
                "Reviewer industry"
              ]
            }
          },
          "proxyMode": {
            "title": "Unblocker",
            "enum": [
              "apify-unblocker",
              "custom-proxy-url"
            ],
            "type": "string",
            "description": "Apify unblocker (default) or your own proxy / unblocker URL. If your own URL is missing or refused, the run fails with a clear message instead of falling back.",
            "default": "apify-unblocker"
          },
          "customProxyUrl": {
            "title": "Custom proxy URL",
            "type": "string",
            "description": "Only used with \"Your own proxy or unblocker URL\". Form: http://user:password@host:port (for example a Web Unlocker endpoint). Stored as a secret and never logged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}