{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Scraper · Reviews, Products, Categories & Search",
    "description": "Scrape G2 reviews ⚡ fast, 🎯 accurate and 🔍 detailed — reviewer job title, company size, industry, split answers and badges — plus products, pricing, categories, sellers and search. 💰 $1 per 1,000 reviews. Your first 5,000 reviews every month are free 🚀",
    "version": "0.0",
    "x-build-id": "iTZK0IZ4z6XA9SIil"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~g2-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-g2-product-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/omkar-cloud~g2-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-g2-product-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/omkar-cloud~g2-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-g2-product-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": {
          "products": {
            "title": "G2 products",
            "type": "array",
            "description": "Products whose reviews (and, if you switch it on, full profile) you want. Type a product name (<code>Slack</code>, <code>HubSpot Marketing Hub</code>), a slug (<code>hubspot-marketing-hub</code>) or paste a G2 product link — one per line. Names are matched to G2's top search result, and the run log shows each match.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "G2 URLs or a file",
            "type": "array",
            "description": "Any G2 link: product (<code>/products/notion/reviews</code>), category (<code>/categories/crm</code>), seller (<code>/sellers/salesforce</code>) or search (<code>/search?query=crm</code>). Regional sites like <code>fr.g2.com</code> work too. You can also upload a text/CSV file or link a Google Sheet with one URL, slug or product name per line.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "title": "G2 categories",
            "type": "array",
            "description": "Category slugs (<code>crm</code>, <code>project-management</code>) or category links. You get one row per ranked product in the category. Turn on <b>Also scrape the products found</b> below to get their reviews too.",
            "items": {
              "type": "string"
            }
          },
          "sellers": {
            "title": "G2 sellers (vendors)",
            "type": "array",
            "description": "Seller slugs (<code>salesforce</code>) or seller links. You get the seller's profile plus one row per product it sells on G2.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search G2 for",
            "type": "array",
            "description": "Keywords to search G2 with (<code>email marketing</code>, <code>ai note taker</code>). You get one row per product G2 returns, in G2's own ranking.",
            "items": {
              "type": "string"
            }
          },
          "scrapeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "One row per review, plus one summary row per product (rating breakdown, top pros and cons with mention counts, reviewer mix by company size, industry, region and role).",
            "default": true
          },
          "scrapeProductDetails": {
            "title": "Scrape product details",
            "type": "boolean",
            "description": "One row per product with its full G2 profile: description, pricing plans, features with satisfaction scores, pros and cons, alternatives, comparisons, integrations, company facts and the product's website.",
            "default": false
          },
          "websiteContacts": {
            "title": "Find emails, phones & social profiles on each product's website",
            "enum": [
              "off",
              "homepage",
              "key_pages",
              "deep"
            ],
            "type": "string",
            "description": "With product details on: visit each product's own website and add the emails, phone numbers, social profiles and technologies found there. <code>Homepage</code> scans the home page, <code>Key pages</code> also the contact, about, careers and blog pages, <code>Deep</code> up to 20 pages. Billed per product whose website was crawled.",
            "default": "off"
          },
          "expandListings": {
            "title": "Also scrape the products found in categories, sellers and searches",
            "type": "boolean",
            "description": "Treat every product listed by your categories, sellers and searches as if you had added it to <b>G2 products</b>: its reviews and/or details are scraped according to the switches above.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many reviews for each product. G2 shows 100 reviews per filter, so for more the scraper collects across star ratings, company sizes and sort orders — thousands per product.",
            "default": 100
          },
          "reviewsSort": {
            "title": "Sort reviews by",
            "enum": [
              "default",
              "most-recent",
              "most-helpful",
              "highest-rated",
              "lowest-rated"
            ],
            "type": "string",
            "description": "The order G2 returns reviews in before your limit is applied. Most recent + a small limit gives you the freshest reviews.",
            "default": "default"
          },
          "starRatings": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only reviews with these star ratings. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2",
                "1"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars",
                "1 star"
              ]
            }
          },
          "companySizes": {
            "title": "Reviewer company size",
            "type": "array",
            "description": "Only reviews from these company sizes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "small-business",
                "mid-market",
                "enterprise"
              ],
              "enumTitles": [
                "Small business (50 or fewer employees)",
                "Mid-market (51–1,000 employees)",
                "Enterprise (more than 1,000 employees)"
              ]
            }
          },
          "regions": {
            "title": "Reviewer region",
            "type": "array",
            "description": "Only reviews from these regions. Leave empty for all.",
            "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 & New Zealand"
              ]
            }
          },
          "roles": {
            "title": "Reviewer role",
            "type": "array",
            "description": "Only reviews from people in these roles. Leave empty for all.",
            "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"
              ]
            }
          },
          "industryIds": {
            "title": "Reviewer industry IDs",
            "type": "array",
            "description": "Only reviews from these industries, as G2 industry IDs (e.g. <code>274</code> = Computer Software, <code>313</code> = Information Technology and Services). Every product's summary row lists its industries with their IDs and review counts.",
            "items": {
              "type": "string"
            }
          },
          "reviewKeywords": {
            "title": "Reviews mentioning",
            "type": "string",
            "description": "Only reviews containing these words, e.g. <code>customer support</code>."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only reviews published on or after this date: a date (<code>2026-08-01</code>) or a period back from today (<code>7 days</code>, <code>2 weeks</code>, <code>3 months</code>). Reads newest first and stops at the cutoff, so you only pay for what is new."
          },
          "onlyNewReviews": {
            "title": "Only reviews my earlier runs did not return",
            "type": "boolean",
            "description": "For scheduled monitoring: each run returns only reviews you have not received before for that product (the list of delivered review IDs is kept in your own Apify account, key-value store <code>g2-seen-reviews</code>). Reads newest first and stops once a page is all old.",
            "default": false
          },
          "maxProductsPerListing": {
            "title": "Max products per category, seller or search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many products for each category, seller or search keyword.",
            "default": 100
          },
          "categorySort": {
            "title": "Sort category products by",
            "enum": [
              "g2-score",
              "popularity",
              "satisfaction"
            ],
            "type": "string",
            "description": "G2's category ranking to read.",
            "default": "g2-score"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}