{
  "openapi": "3.0.1",
  "info": {
    "title": "MakeMyTrip & Goibibo Reviews Scraper 🏨 Ratings, Text & Data",
    "description": "Scrape MakeMyTrip and Goibibo hotel reviews plus full hotel details - ratings, sub-ratings, review text, travel type, owner responses, photos, and LLM-ready markdown. Hotel profiles included free. Structured JSON/CSV for analytics, AI and market research. No API, no login.",
    "version": "1.0",
    "x-build-id": "tSaf3wKecYHBdhKli"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/factden~makemytrip-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-factden-makemytrip-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/factden~makemytrip-scraper/runs": {
      "post": {
        "operationId": "runs-sync-factden-makemytrip-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/factden~makemytrip-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-factden-makemytrip-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": "🌐 Hotel URLs",
            "maxItems": 500,
            "type": "array",
            "description": "Paste hotel page links from MakeMyTrip and/or Goibibo — copy them straight from your browser. Any MakeMyTrip link works (the hotel page, an SEO/search link, or a .global link) and any Goibibo hotel link. Mix both sites freely, up to 500 per run. No IDs needed — but if you already have hotel IDs, you can paste them in the field below instead.",
            "items": {
              "type": "string"
            }
          },
          "hotelIds": {
            "title": "🆔 Hotel IDs",
            "maxItems": 500,
            "type": "array",
            "description": "Raw hotel IDs instead of full URLs. 18-digit IDs are treated as MakeMyTrip, 19-digit IDs as Goibibo. Handy when you already have IDs from a previous run.",
            "items": {
              "type": "string"
            }
          },
          "reviewSource": {
            "title": "🏨 Review source",
            "enum": [
              "auto",
              "makemytrip",
              "goibibo",
              "both"
            ],
            "type": "string",
            "description": "Which brand's reviews to collect for each hotel. Auto = match each input's own brand (a MakeMyTrip link returns MakeMyTrip reviews, a Goibibo link returns Goibibo reviews). Both = collect MakeMyTrip and Goibibo reviews for every hotel (uses the shared hotel identity; bills more rows).",
            "default": "auto"
          },
          "maxReviewsPerHotel": {
            "title": "🔢 Max reviews per hotel",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum reviews to collect per hotel, per selected brand. Note: with Review source = Both, each brand is scraped up to this limit, so a hotel can return (and bill) up to 2x this many reviews. Set to 0 to skip reviews and return hotel details only.",
            "default": 200
          },
          "sortBy": {
            "title": "🔀 Sort order",
            "enum": [
              "mostRelevant",
              "mostRecent",
              "helpful",
              "positive",
              "negative"
            ],
            "type": "string",
            "description": "Order reviews are collected in, applied before the per-hotel cap.",
            "default": "mostRecent"
          },
          "fromDate": {
            "title": "📅 From date",
            "type": "string",
            "description": "Only include reviews submitted on/after this date (YYYY-MM-DD)."
          },
          "toDate": {
            "title": "📅 To date",
            "type": "string",
            "description": "Only include reviews submitted on/before this date (YYYY-MM-DD)."
          },
          "minRating": {
            "title": "🌟 Minimum rating (1 = worst, 5 = best)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Minimum overall rating to include.",
            "default": 1
          },
          "maxRating": {
            "title": "🌟 Maximum rating (1 = worst, 5 = best)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum overall rating to include.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) by default - works for both MakeMyTrip and Goibibo. If Goibibo returns no data from your region, switch the proxy country.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}