{
  "openapi": "3.0.1",
  "info": {
    "title": "G2 Software Reviews & Product Intelligence",
    "description": "Collect structured software product and review data from supported, authorized sources (JSON/CSV import or a licensed API) for SaaS research, competitor intelligence, product discovery, and customer feedback analysis.",
    "version": "1.0",
    "x-build-id": "h5Rk5jWjedHvMQri7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mrdoe~g2-software-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mrdoe-g2-software-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/mrdoe~g2-software-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mrdoe-g2-software-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/mrdoe~g2-software-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mrdoe-g2-software-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": [
          "source"
        ],
        "properties": {
          "source": {
            "title": "Data source",
            "enum": [
              "json_import",
              "csv_import",
              "authorized_api"
            ],
            "type": "string",
            "description": "json_import and csv_import read a file you provide via importUrl - no G2 access needed. authorized_api calls a licensed/authorized API you have your own access to (set apiBaseUrl and apiToken). This Actor does not scrape G2 live: G2's terms prohibit it and the site is bot-protected, so no bypass is implemented.",
            "default": "json_import"
          },
          "dataType": {
            "title": "Record type to keep",
            "enum": [
              "all",
              "products",
              "reviews",
              "categories",
              "competitors"
            ],
            "type": "string",
            "description": "Which record type(s) to output. \"all\" keeps every record type present in the source.",
            "default": "all"
          },
          "importUrl": {
            "title": "Import file URL (for json_import / csv_import)",
            "type": "string",
            "description": "A URL to a JSON or CSV file you have the rights to use. Fetched once; not re-authenticated. See the README for the expected columns/structure."
          },
          "apiBaseUrl": {
            "title": "Authorized API base URL (for authorized_api)",
            "type": "string",
            "description": "Base URL of the licensed/authorized API you already have access to. This Actor does not include a bundled G2 API integration - G2 has no public API - so this only works against a source you provide."
          },
          "apiToken": {
            "title": "Authorized API token (for authorized_api)",
            "type": "string",
            "description": "Bearer token for the API above. Never logged or included in output records."
          },
          "productUrls": {
            "title": "Product URLs (optional)",
            "type": "array",
            "description": "Specific product URLs to keep, when the source record includes a productUrl. Leave empty to keep all products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs (optional)",
            "type": "array",
            "description": "Specific product IDs to keep, when the source record includes a productId. Leave empty to keep all products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category filter (optional)",
            "type": "string",
            "description": "Keep only records whose category matches this (case-insensitive, substring match)."
          },
          "searchQuery": {
            "title": "Search query (optional, authorized_api only)",
            "type": "string",
            "description": "Passed through to the authorized API's search parameter, if it supports one. Ignored by the import sources."
          },
          "maxProducts": {
            "title": "Max products",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of distinct products to include.",
            "default": 50
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of review records kept per product.",
            "default": 20
          },
          "maxItems": {
            "title": "Max output records",
            "minimum": 0,
            "type": "integer",
            "description": "Overall cap on how many records this run writes to the dataset, across all record types. Default is 5 for a free, quick test; raise it (or set 0 for no cap beyond the other limits above) for a real run.",
            "default": 5
          },
          "includeReviewText": {
            "title": "Include review text",
            "type": "boolean",
            "description": "Keep the reviewTitle/reviewText fields on review records, when present in the source.",
            "default": true
          },
          "includePricing": {
            "title": "Include pricing",
            "type": "boolean",
            "description": "Keep pricingModel/pricingDetails on product records, when present in the source.",
            "default": true
          },
          "includeCompetitors": {
            "title": "Include competitors",
            "type": "boolean",
            "description": "Keep competitor records and the competitors field on product records, when present in the source.",
            "default": true
          },
          "includeAnalysis": {
            "title": "Include review analysis",
            "type": "boolean",
            "description": "For each product with at least one review, add one computed \"review_analysis\" record: common pros/cons, frequent words in positive/negative reviews, and a rating-based sentiment summary. Rule-based (word/phrase frequency), not AI - no paid API required.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}