> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /magicbricks/properties/search

> Search Magicbricks property listings by city for sale or rent, with filters for property type, bedrooms, budget, area, recency, gated community and corner property. Returns listing cards with price, configuration, area, locality, builder/project, amenities, nearby landmarks, geo coordinates, RERA id, image and dealer name.

**Price:** 20 credits per 30 results



## OpenAPI

````yaml /openapi/real-estate.json post /api/magicbricks/properties/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/magicbricks/properties/search:
    post:
      tags:
        - /magicbricks
      summary: /magicbricks/properties/search
      description: >-
        Search Magicbricks property listings by city for sale or rent, with
        filters for property type, bedrooms, budget, area, recency, gated
        community and corner property. Returns listing cards with price,
        configuration, area, locality, builder/project, amenities, nearby
        landmarks, geo coordinates, RERA id, image and dealer name.


        **Price:** 20 credits per 30 results
      operationId: __api_magicbricks_properties_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicbricksPropertiesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MagicbricksSearchProperty'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MagicbricksPropertiesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        city:
          type: string
          minLength: 1
        listing_type:
          $ref: '#/components/schemas/MagicbricksListingType'
          default: buy
        count:
          type: integer
          minimum: 1
        proptype:
          anyOf:
            - items:
                $ref: '#/components/schemas/MagicbricksPropertyType'
              type: array
            - type: 'null'
        bedrooms:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
        budget_min:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        budget_max:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        area_min:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        area_max:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
        area_unit:
          $ref: '#/components/schemas/MagicbricksAreaUnit'
          default: Sq-ft
        posted_since:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
        gated_community:
          anyOf:
            - type: boolean
            - type: 'null'
        corner_property:
          anyOf:
            - type: boolean
            - type: 'null'
        sort:
          $ref: '#/components/schemas/MagicbricksSort'
          default: Relevance
      type: object
      required:
        - city
        - count
    MagicbricksSearchProperty:
      properties:
        '@type':
          type: string
          default: MagicbricksSearchProperty
        id:
          type: string
        url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        property_type:
          anyOf:
            - type: string
            - type: 'null'
        transaction_type:
          anyOf:
            - type: string
            - type: 'null'
        listing_for:
          anyOf:
            - type: string
            - type: 'null'
        possession_status:
          anyOf:
            - type: string
            - type: 'null'
        posted_at:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        price_text:
          anyOf:
            - type: string
            - type: 'null'
        price_per_sqft:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        area_sqft:
          anyOf:
            - type: number
            - type: 'null'
        area_unit:
          anyOf:
            - type: string
            - type: 'null'
        bedroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        bathroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        balcony_count:
          anyOf:
            - type: integer
            - type: 'null'
        furnishing:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        rera_id:
          anyOf:
            - type: string
            - type: 'null'
        is_verified:
          anyOf:
            - type: boolean
            - type: 'null'
        posted_by:
          anyOf:
            - type: string
            - type: 'null'
        builder_name:
          anyOf:
            - type: string
            - type: 'null'
        project_name:
          anyOf:
            - type: string
            - type: 'null'
        project_url:
          anyOf:
            - type: string
            - type: 'null'
        amenities:
          items:
            type: string
          type: array
          default: []
        landmarks:
          items:
            type: string
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        image_count:
          anyOf:
            - type: integer
            - type: 'null'
        dealer_name:
          anyOf:
            - type: string
            - type: 'null'
        dealer_company:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MagicbricksListingType:
      type: string
      enum:
        - buy
        - rent
    MagicbricksPropertyType:
      type: string
      enum:
        - Apartment
        - Independent-House
        - Villa
        - Plot
        - Farm-House
        - Agricultural-Land
    MagicbricksAreaUnit:
      type: string
      enum:
        - Sq-ft
        - Sq-m
        - Sq-yrd
    MagicbricksSort:
      type: string
      enum:
        - Relevance
        - Price-Low-to-High
        - Price-High-to-Low
        - Most-Recent
        - Rate-per-sqft-Low-to-High
        - Rate-per-sqft-High-to-Low
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````