{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews Scraper",
    "description": "Export G2 software reviews with star rating, title, likes, dislikes, problems solved, date, reviewer role, industry and company size. Paste G2 product links or slugs, scrape many products in one run, filter by stars and company size and sort by newest or most helpful.",
    "version": "1.0",
    "x-build-id": "0HdQ7GbvsdQolUk6a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~g2-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-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/thescrappa~g2-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-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/thescrappa~g2-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-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": [
          "products"
        ],
        "properties": {
          "products": {
            "title": "Products",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "G2 products to scrape, one per entry. Paste the G2 product link or the slug, the part after /products/ in the link.",
            "items": {
              "type": "object",
              "required": [
                "product"
              ],
              "properties": {
                "product": {
                  "title": "G2 product link or slug",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500,
                  "description": "G2 product slug such as slack, or the g2.com product link. The Actor reads the slug after /products/ in the link.",
                  "editor": "textfield"
                },
                "stars": {
                  "title": "Star ratings",
                  "type": "array",
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "enum": [
                      "5",
                      "4",
                      "3",
                      "2",
                      "1"
                    ],
                    "enumTitles": [
                      "5 stars (4.5 to 5)",
                      "4 stars (3.5 to 4)",
                      "3 stars (2.5 to 3)",
                      "2 stars (1.5 to 2)",
                      "1 star (0 to 1)"
                    ]
                  },
                  "description": "Only reviews with these star ratings. G2 groups half stars: 5 stars means 4.5 to 5. Leave empty for all ratings.",
                  "editor": "select"
                },
                "companySize": {
                  "title": "Reviewer company size",
                  "type": "array",
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "enum": [
                      "small_business",
                      "mid_market",
                      "enterprise"
                    ],
                    "enumTitles": [
                      "Small business (50 or fewer employees)",
                      "Mid-market (51 to 1,000 employees)",
                      "Enterprise (more than 1,000 employees)"
                    ]
                  },
                  "description": "Only reviews from reviewers at companies of these sizes. Leave empty for all sizes.",
                  "editor": "select"
                }
              }
            }
          },
          "stars": {
            "title": "Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Only reviews with these star ratings. G2 groups half stars: 5 stars means 4.5 to 5. Leave empty for all ratings.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2",
                "1"
              ],
              "enumTitles": [
                "5 stars (4.5 to 5)",
                "4 stars (3.5 to 4)",
                "3 stars (2.5 to 3)",
                "2 stars (1.5 to 2)",
                "1 star (0 to 1)"
              ]
            }
          },
          "companySize": {
            "title": "Reviewer company size",
            "uniqueItems": true,
            "type": "array",
            "description": "Only reviews from reviewers at companies of these sizes. Leave empty for all sizes.",
            "items": {
              "type": "string",
              "enum": [
                "small_business",
                "mid_market",
                "enterprise"
              ],
              "enumTitles": [
                "Small business (50 or fewer employees)",
                "Mid-market (51 to 1,000 employees)",
                "Enterprise (more than 1,000 employees)"
              ]
            }
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "most_relevant",
              "most_helpful",
              "highest_rated",
              "lowest_rated"
            ],
            "type": "string",
            "description": "Order of the reviews. Newest first gives up to about 375 reviews per product. The other orders give up to 100, because G2 shows 10 pages of 10 reviews.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Maximum reviews to save for each product. Up to 25 newest reviews take one quick request; more take about 30 seconds per product. The other sort orders stop at 100.",
            "default": 50
          },
          "maxPages": {
            "title": "Maximum Pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum pages to request for each batch entry. Not used when Sort order is Newest first (up to about 375 reviews), which reads one request.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}