{
  "openapi": "3.0.1",
  "info": {
    "title": "Gartner Peer Insights Scraper",
    "description": "Scrape public Gartner Peer Insights product profiles, ratings, market listings, and review samples. Optional session cookie unlocks paginated reviews. Unblocker-first. MCP-ready.",
    "version": "0.1",
    "x-build-id": "YCu6C6X6A0G6QNukg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~gartner-peer-insights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-gartner-peer-insights-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/khadinakbar~gartner-peer-insights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-gartner-peer-insights-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/khadinakbar~gartner-peer-insights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-gartner-peer-insights-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": {
          "productUrls": {
            "title": "Product / reviews URLs",
            "type": "array",
            "description": "Gartner Peer Insights product page URLs. Accepts short form https://www.gartner.com/reviews/product/{slug} or long market/vendor/product/reviews URLs. Use this when you already know the product page. NOT a free-text search — use searchTerms or productSlugs for that.",
            "items": {
              "type": "string"
            }
          },
          "marketUrls": {
            "title": "Market category URLs",
            "type": "array",
            "description": "Gartner market/category listing URLs such as https://www.gartner.com/reviews/market/meeting-solutions. Returns product cards (name, rating, review count, SEO slug). NOT individual product review pages — use productUrls for those.",
            "items": {
              "type": "string"
            }
          },
          "productSlugs": {
            "title": "Product SEO slugs",
            "type": "array",
            "description": "Product SEO names without a full URL (e.g. zoom-meetings, salesforce-sales-cloud). Converted to /reviews/product/{slug}. Prefer productUrls when you have the canonical link.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Product name hints",
            "type": "array",
            "description": "Free-text product names slugified into /reviews/product/{slug} lookups (e.g. Zoom Meetings → zoom-meetings). Best-effort public slug resolution; prefer exact productUrls when known. NOT a full Gartner site search API.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (legacy)",
            "type": "array",
            "description": "Optional requestListSources-style URL list. Same classification as productUrls/marketUrls. Prefer productUrls or marketUrls for clarity.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on review/highlight rows saved per product. Public pages usually expose a small sample; larger values matter mainly when sessionCookie unlocks api3 pagination. Default 5 for quality tests. Range 1-500.",
            "default": 5
          },
          "maxProducts": {
            "title": "Max products per market",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on product cards saved from each market URL. Default 20. Range 1-200.",
            "default": 20
          },
          "includeProductSummary": {
            "title": "Include product summary row",
            "type": "boolean",
            "description": "If true (default), saves one product profile row (ratings, vendor, description) per product URL in addition to review rows.",
            "default": true
          },
          "includeReviewHighlights": {
            "title": "Include likes/dislikes highlights",
            "type": "boolean",
            "description": "If true (default), also saves public likes/dislikes highlight snippets as review-highlight rows when present on the product page.",
            "default": true
          },
          "sort": {
            "title": "Review sort (authenticated mode)",
            "enum": [
              "helpful",
              "newest"
            ],
            "type": "string",
            "description": "Sort used for authenticated api3 pagination when a Peer Insights cookie is provided. Ignored for public page samples. Default most helpful.",
            "default": "helpful"
          },
          "sessionCookie": {
            "title": "Peer Insights session cookie (optional)",
            "type": "string",
            "description": "Optional Cookie header from a logged-in Gartner Peer Insights browser session. Caller-provided / user-provided: supply your own secret for the run. Enables api3 pagination for fuller review catalogs. Leave empty for public-only scraping. This value is never written to the dataset, output, or logs."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. UNBLOCKER is strongly recommended — Gartner sits behind Cloudflare. Default: 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}