{
  "openapi": "3.0.1",
  "info": {
    "title": "MagicBricks Property Scraper — Price, BHK, Area (India)",
    "description": "Scrape MagicBricks property listings — price, BHK, carpet & covered area, locality, project, builder, amenities, images and lister. Paste any filtered search or property URL, or build a search from a city + filters. Optional detail-page enrichment. JSON, CSV, Excel out",
    "version": "0.1",
    "x-build-id": "dcuKXWevwVUyGMfwj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~magicbricks-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-magicbricks-property-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/memo23~magicbricks-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-magicbricks-property-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/memo23~magicbricks-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-magicbricks-property-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": "Search & property URLs",
            "type": "array",
            "description": "MagicBricks search-results URLs (apply any filters on the site, then paste the URL — e.g. `https://www.magicbricks.com/flats-in-bangalore-for-sale-pppfs`) and/or direct property URLs (`https://www.magicbricks.com/propertyDetails/...&id=...`). Auto-classified.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name, e.g. `Bangalore`, `Mumbai`, `Pune`, `Gurgaon`. Resolved by MagicBricks to its internal city."
          },
          "transactionType": {
            "title": "Buy or Rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Whether to search properties for sale (buy) or for rent. Used by the city builder.",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "MagicBricks property-type slugs for the city builder. Common values: `Multistorey-Apartment`, `Builder-Floor-Apartment`, `Residential-House`, `Villa`, `Penthouse`, `Studio-Apartment`, `Residential-Plot`, `Farm-House`, `Serviced-Apartments`. Friendly names like `apartment`, `house`, `plot` are accepted too. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "bedrooms": {
            "title": "Bedrooms (BHK)",
            "type": "array",
            "description": "BHK filter for the city builder, e.g. `2`, `3`. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minBudget": {
            "title": "Min budget (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price for the city builder, in rupees (e.g. 5000000 = ₹50 Lac)."
          },
          "maxBudget": {
            "title": "Max budget (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price for the city builder, in rupees (e.g. 10000000 = ₹1 Cr)."
          },
          "scrapeDetails": {
            "title": "Scrape property detail pages",
            "type": "boolean",
            "description": "Also fetch each property's detail page to enrich the row with the full readable amenities list, full description and a spec overview. Richer rows, but ~2× the requests (slower). Off = listing-only (already ~45 fields per property).",
            "default": false
          },
          "maxItems": {
            "title": "Max properties (whole run)",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on property rows across the entire run. Each row is one paid `property` event. Default 1000. Free-tier users are additionally capped at 100.",
            "default": 1000
          },
          "maxItemsPerSearch": {
            "title": "Max properties per search URL",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per search URL / city build. MagicBricks paginates ~30 properties per page. Default 1000.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel HTTP requests. MagicBricks sits behind Akamai — keep this moderate (4–8). Default 5.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Per-request retry budget on Akamai blocks (403), 429 and network errors. Each retry rotates to a fresh India residential IP across two pools. Default 12.",
            "default": 12
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "MagicBricks is India-only and Akamai-protected. Paying runs use a built-in dual India residential pool automatically; this setting applies to free-tier runs (defaults to Apify Residential, India).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}