{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Reviews Scraper — Software Reviews & Ratings",
    "description": "Scrape G2 software reviews and product profiles: star ratings, likes and dislikes, problems solved, reviewer role, company size and industry, plus product ratings, categories, pricing, alternatives.",
    "version": "0.1",
    "x-build-id": "TDKxLPcL1to8WXDUy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~g2-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-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/tortuga~g2-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-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/tortuga~g2-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-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",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "G2 product pages (https://www.g2.com/products/slack/reviews, any tab of a product works), category pages (https://www.g2.com/categories/crm) or search pages (https://www.g2.com/search?query=help+desk). A reviews URL copied from the browser with G2 filters applied (order=…, filters[…]=…) keeps those filters. Category and search pages are paginated automatically and every product on them is processed in the selected mode.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productSlugs": {
            "title": "Product slugs",
            "type": "array",
            "description": "Shortcut for product URLs: the part after /products/ in a G2 link, e.g. \"slack\" or \"hubspot-marketing-hub\" for https://www.g2.com/products/hubspot-marketing-hub/reviews.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to scrape",
            "enum": [
              "reviews",
              "products",
              "category"
            ],
            "type": "string",
            "description": "reviews: one item per user review (default). products: one profile item per product (rating, review count, star distribution, categories, pricing plans, alternatives, features, pros and cons). category: one card per product on category or search pages (rank, rating, review count, summary, badges).",
            "default": "reviews"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many items in total (reviews, products or cards across all start URLs). Keeps cost predictable: no page is requested for items that would not fit.",
            "default": 100
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "type": "integer",
            "description": "Reviews mode only: cap per product, so a category run spreads the budget across products. G2 shows visitors 100 reviews per sorted list; above 100 the actor also reads the star-rating, company-size, region, industry and role slices of the list and merges them, each slice contributing in proportion to its size.",
            "default": 100
          },
          "sortReviews": {
            "title": "Sort reviews",
            "enum": [
              "most_recent",
              "most_helpful",
              "highest_rated",
              "lowest_rated",
              "g2_default"
            ],
            "type": "string",
            "description": "Order in which reviews are collected (matters whenever a cap is set). Most recent is best for monitoring; G2 default is the order the site shows first.",
            "default": "most_recent"
          },
          "ratingFilter": {
            "title": "Only these star ratings",
            "type": "array",
            "description": "Optional: keep only reviews in these star buckets, e.g. 1 and 2 for complaints. G2 groups half stars downwards into the bucket above them: 1 = 0 to 1 stars, 2 = 1.5 to 2, 3 = 2.5 to 3, 4 = 3.5 to 4, 5 = 4.5 to 5. The filter is applied by G2, so you do not pay for reviews you do not want. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "companySizeFilter": {
            "title": "Only these company sizes",
            "type": "array",
            "description": "Optional: keep only reviews written by people at small businesses (50 or fewer employees), mid-market companies (51-1,000) or enterprises (more than 1,000). Applied by G2. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "small_business",
                "mid_market",
                "enterprise"
              ],
              "enumTitles": [
                "Small business (50 or fewer emp.)",
                "Mid-market (51-1,000 emp.)",
                "Enterprise (> 1,000 emp.)"
              ]
            },
            "default": []
          },
          "searchQuery": {
            "title": "Only reviews mentioning",
            "type": "string",
            "description": "Optional: keyword search inside the review text (G2's own \"Search reviews\" box), e.g. \"pricing\" or \"customer support\". Leave empty for all reviews."
          },
          "publishedAfter": {
            "title": "Only reviews published or updated since",
            "type": "string",
            "description": "Optional: a date (YYYY-MM-DD) or a period such as \"7 days\" or \"1 month\". Reviews are read newest first and collection stops at the page where they get older than this, so a scheduled run only fetches (and bills) what is new. Reviews that were refreshed by their author after this date are included (see updatedDate)."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only what is new: in `reviews` mode, reviews no earlier run output (read newest first from G2's most-recent list, without facet slicing, so up to 100 per product per run; paging stops at the first page that reaches already-seen reviews, usually after 1 request when little is new); in `products` mode, profiles whose rating or pricing plans changed; in `category` mode, products new to the list or whose rating changed (review counts and rank are not compared). Use with a Schedule; unchanged items are not charged. Combine with **Only reviews published or updated since** to bound how far back the first run reads.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input. Only used with **Only new or changed items**."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "G2 blocks datacenter and residential proxies at the edge, so the default is Apify's Unblocker proxy (group UNBLOCKER). It is billed to your Apify account per successful request: 10 Unblocker units, about $0.0015 on the free plan and less on paid plans. One request returns 10 reviews, 15-20 category cards or one product profile; failed requests are free. Other proxy groups will most likely be blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}