> ## 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.

# /idealista/properties

> Get a single Idealista property listing (Portugal or Italy) by id or listing URL: title, location, sale or rent operation, asking price with the previous price and discount when the seller has cut it, price per m², gross and usable floor area, rooms, bathrooms, condition, construction year, energy rating, the full advertiser description, the specification lists shown on the page, photo and video URLs with per-media-type counts, and the listing agency with its AMI licence number.

**Price:** 1 credit

**⚠️ Common errors:** 412: Listing not found: a well-formed id that is expired, withdrawn, never existed, or belongs to the other country's site



## OpenAPI

````yaml /openapi/real-estate.json post /api/idealista/properties
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/idealista/properties:
    post:
      tags:
        - /idealista
      summary: /idealista/properties
      description: >-
        Get a single Idealista property listing (Portugal or Italy) by id or
        listing URL: title, location, sale or rent operation, asking price with
        the previous price and discount when the seller has cut it, price per
        m², gross and usable floor area, rooms, bathrooms, condition,
        construction year, energy rating, the full advertiser description, the
        specification lists shown on the page, photo and video URLs with
        per-media-type counts, and the listing agency with its AMI licence
        number.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Listing not found: a well-formed id that is
        expired, withdrawn, never existed, or belongs to the other country's
        site
      operationId: __api_idealista_properties_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdealistaPropertiesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IdealistaProperty'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IdealistaPropertiesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        domain:
          $ref: '#/components/schemas/IdealistaDomain'
          default: pt
        property:
          type: string
          minLength: 1
      type: object
      required:
        - property
    IdealistaProperty:
      properties:
        '@type':
          type: string
          default: IdealistaProperty
        id:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
        listing_title:
          anyOf:
            - type: string
            - type: 'null'
        location:
          anyOf:
            - type: string
            - type: 'null'
        location_id:
          anyOf:
            - type: string
            - type: 'null'
        property_type:
          anyOf:
            - type: string
            - type: 'null'
        operation:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        previous_price:
          anyOf:
            - type: number
            - type: 'null'
        price_drop_percent:
          anyOf:
            - type: integer
            - type: 'null'
        price_per_m2:
          anyOf:
            - type: number
            - type: 'null'
        surface:
          anyOf:
            - type: integer
            - type: 'null'
        usable_surface:
          anyOf:
            - type: integer
            - type: 'null'
        room_count:
          anyOf:
            - type: integer
            - type: 'null'
        bathroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        floor:
          anyOf:
            - type: string
            - type: 'null'
        has_elevator:
          anyOf:
            - type: boolean
            - type: 'null'
        condition:
          anyOf:
            - type: string
            - type: 'null'
        year_built:
          anyOf:
            - type: integer
            - type: 'null'
        energy_rating:
          anyOf:
            - type: string
            - type: 'null'
        reference:
          anyOf:
            - type: string
            - type: 'null'
        features:
          items:
            type: string
          type: array
          default: []
        building_features:
          items:
            type: string
          type: array
          default: []
        media:
          anyOf:
            - $ref: '#/components/schemas/IdealistaMediaCounts'
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        floor_plan_images:
          items:
            type: string
          type: array
          default: []
        videos:
          items:
            type: string
          type: array
          default: []
        agency:
          anyOf:
            - $ref: '#/components/schemas/IdealistaAgency'
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    IdealistaDomain:
      type: string
      enum:
        - pt
        - it
    IdealistaMediaCounts:
      properties:
        '@type':
          type: string
          default: IdealistaMediaCounts
        images:
          anyOf:
            - type: integer
            - type: 'null'
        floor_plans:
          anyOf:
            - type: integer
            - type: 'null'
        videos:
          anyOf:
            - type: integer
            - type: 'null'
        virtual_tours:
          anyOf:
            - type: integer
            - type: 'null'
        home_staging:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    IdealistaAgency:
      properties:
        '@type':
          type: string
          default: IdealistaAgency
        name:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        licence:
          anyOf:
            - type: string
            - type: 'null'
        is_professional:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
    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

````