{
  "openapi": "3.0.1",
  "info": {
    "title": "MagicBricks Scraper",
    "description": "Scrape property listings from MagicBricks: rent and buy prices, area, BHK, amenities, RERA IDs, location, and full descriptions for Indian cities.",
    "version": "1.0",
    "x-build-id": "FqrJ5oPdfGojVZJjU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~magicbricks-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-magicbricks-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/parsebird~magicbricks-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-magicbricks-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/parsebird~magicbricks-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-magicbricks-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": {
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "rent",
              "buy"
            ],
            "type": "string",
            "description": "Search for properties to rent or to buy.",
            "default": "rent"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Indian city name, e.g. \"Bangalore\", \"Mumbai\", \"New Delhi\" — or paste a full MagicBricks search URL to use as the starting point instead.",
            "default": "Bangalore"
          },
          "localities": {
            "title": "Localities",
            "type": "array",
            "description": "Optional list of neighborhoods to search within the city, e.g. \"Koramangala\", \"HSR Layout\". Leave empty to search the whole city.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bhk": {
            "title": "BHK",
            "type": "array",
            "description": "Number of bedrooms to include. Leave empty for any. Multiple values are OR-combined.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "1 BHK",
                "2 BHK",
                "3 BHK",
                "4 BHK",
                "5 BHK",
                "6+ BHK"
              ]
            },
            "default": []
          },
          "propertyType": {
            "title": "Property type",
            "type": "array",
            "description": "Restrict to one or more property types. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "villa",
                "independent-house",
                "builder-floor",
                "studio",
                "penthouse",
                "plot"
              ],
              "enumTitles": [
                "Apartment",
                "Villa",
                "Independent House",
                "Builder Floor",
                "Studio",
                "Penthouse",
                "Plot"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in INR. Monthly rent for rent mode, total price for buy mode."
          },
          "maxPrice": {
            "title": "Max price (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in INR."
          },
          "minArea": {
            "title": "Min area (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum area in square feet."
          },
          "maxArea": {
            "title": "Max area (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum area in square feet."
          },
          "furnishing": {
            "title": "Furnishing",
            "type": "array",
            "description": "Restrict to one or more furnishing types. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "furnished",
                "semi-furnished",
                "unfurnished"
              ],
              "enumTitles": [
                "Furnished",
                "Semi-Furnished",
                "Unfurnished"
              ]
            },
            "default": []
          },
          "availability": {
            "title": "Availability",
            "enum": [
              "ready",
              "under-construction",
              "any"
            ],
            "type": "string",
            "description": "Buy mode only: restrict to ready-to-move or under-construction properties.",
            "default": "any"
          },
          "tenantType": {
            "title": "Tenant type",
            "type": "array",
            "description": "Rent mode only: restrict to one or more preferred tenant types. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "family",
                "bachelor",
                "company"
              ],
              "enumTitles": [
                "Family",
                "Bachelor",
                "Company"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of listings to return.",
            "default": 15
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "MagicBricks blocks non-Indian and datacenter IPs, so an Indian residential proxy is required. The default below works out of the box.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}