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

# /domain/agents

> Get a Domain.com.au real estate agency profile by agency id (or agency profile URL): name, address, contact details, branding, social links, sale/rent statistics and the agency's agents.

**Price:** 1 credit

**⚠️ Common errors:** 412: Agency not found or removed (well-formed but nonexistent agency id)



## OpenAPI

````yaml /openapi/real-estate.json post /api/domain/agents
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/domain/agents:
    post:
      tags:
        - /domain
      summary: /domain/agents
      description: >-
        Get a Domain.com.au real estate agency profile by agency id (or agency
        profile URL): name, address, contact details, branding, social links,
        sale/rent statistics and the agency's agents.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Agency not found or removed (well-formed but
        nonexistent agency id)
      operationId: __api_domain_agents_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainAgentsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DomainAgency'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DomainAgentsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        agent:
          type: string
          minLength: 1
      type: object
      required:
        - agent
    DomainAgency:
      properties:
        '@type':
          type: string
          default: DomainAgency
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        website:
          anyOf:
            - type: string
            - type: 'null'
        profile_tier:
          anyOf:
            - type: string
            - type: 'null'
        is_archived:
          anyOf:
            - type: boolean
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        cover:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        mobile:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        suburb:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        postcode:
          anyOf:
            - type: string
            - type: 'null'
        facebook_url:
          anyOf:
            - type: string
            - type: 'null'
        twitter_url:
          anyOf:
            - type: string
            - type: 'null'
        instagram_url:
          anyOf:
            - type: string
            - type: 'null'
        linkedin_url:
          anyOf:
            - type: string
            - type: 'null'
        youtube_url:
          anyOf:
            - type: string
            - type: 'null'
        for_sale_count:
          anyOf:
            - type: integer
            - type: 'null'
        sold_count:
          anyOf:
            - type: integer
            - type: 'null'
        private_treaty_count:
          anyOf:
            - type: integer
            - type: 'null'
        auctioned_count:
          anyOf:
            - type: integer
            - type: 'null'
        for_rent_count:
          anyOf:
            - type: integer
            - type: 'null'
        leased_count:
          anyOf:
            - type: integer
            - type: 'null'
        agents:
          items:
            $ref: '#/components/schemas/DomainAgencyContact'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    DomainAgencyContact:
      properties:
        '@type':
          type: string
          default: DomainAgencyContact
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        job_title:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        mobile:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        profile_url:
          anyOf:
            - type: string
            - 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

````