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

# /onthemarket/agents/properties

> List every property an OnTheMarket agent branch currently markets, for sale, to rent or overseas. Returns the same property cards as the search endpoint: id, url, address, price, bedroom/bathroom counts, features, images, coordinates and status labels.

**Price:** 10 credits per 30 results

**⚠️ Common errors:** 412: Agent branch not found



## OpenAPI

````yaml /openapi/real-estate.json post /api/onthemarket/agents/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/onthemarket/agents/properties:
    post:
      tags:
        - /onthemarket
      summary: /onthemarket/agents/properties
      description: >-
        List every property an OnTheMarket agent branch currently markets, for
        sale, to rent or overseas. Returns the same property cards as the search
        endpoint: id, url, address, price, bedroom/bathroom counts, features,
        images, coordinates and status labels.


        **Price:** 10 credits per 30 results


        **⚠️ Common errors:** 412: Agent branch not found
      operationId: __api_onthemarket_agents_properties_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OnthemarketAgentsPropertiesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OnthemarketPropertyCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OnthemarketAgentsPropertiesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        agent:
          type: string
          minLength: 1
        transaction_type:
          $ref: '#/components/schemas/OnthemarketTransactionType'
        count:
          type: integer
          minimum: 1
        sort:
          $ref: '#/components/schemas/OnthemarketSortOrder'
          default: recent
        include_unavailable:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - agent
        - transaction_type
        - count
    OnthemarketPropertyCard:
      properties:
        '@type':
          type: string
          default: OnthemarketPropertyCard
        id:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        property_title:
          anyOf:
            - type: string
            - type: 'null'
        property_type:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        display_price:
          anyOf:
            - type: string
            - type: 'null'
        short_price:
          anyOf:
            - type: string
            - type: 'null'
        price_qualifier:
          anyOf:
            - type: string
            - type: 'null'
        bedroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        bathroom_count:
          anyOf:
            - type: integer
            - type: 'null'
        features:
          items:
            type: string
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        main_label:
          anyOf:
            - type: string
            - type: 'null'
        added_reduced_label:
          anyOf:
            - type: string
            - type: 'null'
        is_spotlight:
          anyOf:
            - type: boolean
            - type: 'null'
        agent_id:
          anyOf:
            - type: integer
            - type: 'null'
        agent_name:
          anyOf:
            - type: string
            - type: 'null'
        agent_alias:
          anyOf:
            - type: string
            - type: 'null'
        agent_phone:
          anyOf:
            - type: string
            - type: 'null'
        agent_image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OnthemarketTransactionType:
      type: string
      enum:
        - for-sale
        - to-rent
        - overseas
    OnthemarketSortOrder:
      type: string
      enum:
        - recommended
        - price_high
        - price_low
        - recent
    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

````