{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Scraper API — Reviews, Products, Ratings & Competitors",
    "description": "G2 scraper and unofficial G2.com API: extract B2B software reviews with full reviewer detail, product profiles, ratings, pricing plans, review breakdowns by segment and industry, alternatives and comparisons. Past G2's 100-review cap. Export JSON, CSV, Excel. From $4.50/1k reviews.",
    "version": "1.2",
    "x-build-id": "BsxIvhbI2POz5Q4Lg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pro100chok~g2-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pro100chok-g2-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/pro100chok~g2-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pro100chok-g2-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/pro100chok~g2-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pro100chok-g2-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": [
          "scrapeType"
        ],
        "properties": {
          "scrapeType": {
            "title": "What to collect",
            "enum": [
              "reviews",
              "product_profile",
              "listing",
              "alternatives",
              "categories_directory"
            ],
            "type": "string",
            "description": "What you want back. This is independent of what you paste below: give it a category or search and ask for Reviews, and the actor walks the listing and then collects reviews for every product it finds - all in one run.",
            "default": "reviews"
          },
          "targets": {
            "title": "Products, categories, searches or G2 URLs",
            "type": "array",
            "description": "One field for everything - mix and match freely, one entry per line. Accepts: a product URL (https://www.g2.com/products/slack/reviews) or slug (slack); a category URL or slug (https://www.g2.com/categories/crm, crm); a G2 search URL (https://www.g2.com/search?query=bank); a comparison URL (https://www.g2.com/compare/slack-vs-microsoft-teams) or two slugs (slack,microsoft-teams); or just a search phrase (project management). Each entry is recognised automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxProductsToFollow": {
            "title": "Max products per listing",
            "minimum": 0,
            "type": "integer",
            "description": "When a category, search or comparison is used as the starting point, how many of the products found there to scrape. Set 0 for no limit.",
            "default": 10
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many reviews per product. Set 0 to collect every review a product has (large products have tens of thousands).",
            "default": 100
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "most_recent",
              "most_helpful",
              "highest_rated",
              "lowest_rated"
            ],
            "type": "string",
            "description": "Order in which reviews are collected. Most recent is best for monitoring; highest or lowest rated pulls praise or complaints first.",
            "default": "most_recent"
          },
          "stars": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only collect reviews with these star ratings. Leave empty for all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2",
                "1"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars",
                "1 star"
              ]
            },
            "default": []
          },
          "companySegments": {
            "title": "Company size",
            "type": "array",
            "description": "Only collect reviews written by people at companies of these sizes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Small-Business",
                "Mid-Market",
                "Enterprise"
              ],
              "enumTitles": [
                "Small Business (<=50 emp.)",
                "Mid-Market (51-1000 emp.)",
                "Enterprise (>1000 emp.)"
              ]
            },
            "default": []
          },
          "reviewerRoles": {
            "title": "Reviewer role",
            "type": "array",
            "description": "Only collect reviews written by these roles. Leave empty for all roles.",
            "items": {
              "type": "string",
              "enum": [
                "User",
                "Administrator",
                "Executive Sponsor",
                "Internal Consultant",
                "Consultant",
                "Agency",
                "Industry Analyst / Tech Writer"
              ],
              "enumTitles": [
                "User",
                "Administrator",
                "Executive Sponsor",
                "Internal Consultant",
                "Consultant",
                "Agency",
                "Industry Analyst / Tech Writer"
              ]
            },
            "default": []
          },
          "regions": {
            "title": "Reviewer region",
            "type": "array",
            "description": "Only collect reviews from these regions. Leave empty for all regions.",
            "items": {
              "type": "string",
              "enum": [
                "North America",
                "Asia",
                "Europe",
                "Latin America",
                "Middle East",
                "Africa",
                "ANZ"
              ],
              "enumTitles": [
                "North America",
                "Asia",
                "Europe",
                "Latin America",
                "Middle East",
                "Africa",
                "Australia & New Zealand"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on the total number of records this run produces. Set 0 for no limit.",
            "default": 0
          },
          "maxListingPages": {
            "title": "Max listing pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many pages to walk through a category listing. Each page returns roughly 20-30 products.",
            "default": 1
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many times to retry a page that fails to load before skipping it.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used for the run. Residential US proxies are strongly recommended and are the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}