{
  "openapi": "3.0.1",
  "info": {
    "title": "Gartner Peer Insights Product & Market Data Extractor",
    "description": "Get Gartner Peer Insights product profiles with rating breakdowns, available customer reviews with reviewer industry/company size/job title, or a market's full product and category listing. No login required.",
    "version": "1.1",
    "x-build-id": "MSosULKUeT3RSaekh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~gartner-peer-insights-product-and-market-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-gartner-peer-insights-product-and-market-data",
        "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/dataspryva~gartner-peer-insights-product-and-market-data/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-gartner-peer-insights-product-and-market-data",
        "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/dataspryva~gartner-peer-insights-product-and-market-data/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-gartner-peer-insights-product-and-market-data",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "products",
              "market",
              "categories"
            ],
            "type": "string",
            "description": "Choose what to collect: product profiles with reviews, a market's product listing, or the full market and category directory.",
            "default": "categories"
          },
          "productUrls": {
            "title": "Product URLs or slugs",
            "type": "array",
            "description": "Gartner Peer Insights product page URLs or product slugs, e.g. https://www.gartner.com/reviews/product/salesforce-sales-performance-management or salesforce-sales-performance-management. Used in products mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketSeoName": {
            "title": "Market",
            "type": "string",
            "description": "Gartner market slug or full market URL, e.g. sales-force-automation-platforms or https://www.gartner.com/reviews/market/sales-force-automation-platforms. Used in market mode.",
            "default": ""
          },
          "includeProductDetails": {
            "title": "Fetch full product details in market mode",
            "type": "boolean",
            "description": "When on, market mode fetches each product profile and its reviews instead of writing the fast market listing records.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum public reviews to collect for each product. Set 0 to collect only the product profile. Reviews are paged until this limit or the public review list ends.",
            "default": 50
          },
          "useFilters": {
            "title": "Add star-rating passes for more reviews",
            "type": "boolean",
            "description": "After paging, query each star rating once to surface additional unique public reviews. Has no effect when a specific star rating is selected below.",
            "default": true
          },
          "reviewSort": {
            "title": "Review sort order",
            "enum": [
              "most-helpful",
              "most-recent",
              "least-recent"
            ],
            "type": "string",
            "description": "How Gartner orders public reviews before paging.",
            "default": "most-helpful"
          },
          "reviewRating": {
            "title": "Filter reviews by star rating",
            "enum": [
              "all",
              "5",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Collect only reviews with this star rating, or all ratings.",
            "default": "all"
          },
          "reviewerType": {
            "title": "Filter reviews by reviewer type",
            "enum": [
              "all",
              "end-user",
              "partner"
            ],
            "type": "string",
            "description": "Collect reviews from all reviewers, end users, or vendor partners.",
            "default": "all"
          },
          "lastTwelveMonths": {
            "title": "Only reviews from the last 12 months",
            "type": "boolean",
            "description": "Limit reviews to those published in the last twelve months.",
            "default": false
          },
          "marketSort": {
            "title": "Market product sort order",
            "enum": [
              "ratingsCount_desc",
              "ratingsCount_asc",
              "averageRating_desc",
              "averageRating_asc",
              "name_asc",
              "name_desc"
            ],
            "type": "string",
            "description": "How products are ordered inside a market listing.",
            "default": "ratingsCount_desc"
          },
          "marketCompanySize": {
            "title": "Filter market products by company size",
            "enum": [
              "all",
              "<50M USD",
              "50M-1B USD",
              "1B-10B USD",
              "10B+ USD",
              "Gov't/PS/Ed"
            ],
            "type": "string",
            "description": "Use Gartner's company-size facet when listing products in a market.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of market, product, review, or category records to save.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The actor works without a proxy and switches automatically only if Gartner blocks the request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}