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

# /trademe/agents/search

> Search TradeMe real-estate agents by location or by agent/agency name. Returns agent cards: name, agency, contact phones, photo, sold and live listing counts, partner status and recently sold properties.

**Price:** 5 credits per 19 results

**⚠️ Common errors:** 412: No agents matched the location or keyword



## OpenAPI

````yaml /openapi/real-estate.json post /api/trademe/agents/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/trademe/agents/search:
    post:
      tags:
        - /trademe
      summary: /trademe/agents/search
      description: >-
        Search TradeMe real-estate agents by location or by agent/agency name.
        Returns agent cards: name, agency, contact phones, photo, sold and live
        listing counts, partner status and recently sold properties.


        **Price:** 5 credits per 19 results


        **⚠️ Common errors:** 412: No agents matched the location or keyword
      operationId: __api_trademe_agents_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrademeAgentsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TrademeAgentCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrademeAgentsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        location:
          anyOf:
            - type: string
            - type: 'null'
        keyword:
          anyOf:
            - type: string
            - type: 'null'
        count:
          type: integer
          minimum: 1
        sort:
          $ref: '#/components/schemas/TrademeAgentSortOrder'
          default: featured
      type: object
      required:
        - count
    TrademeAgentCard:
      properties:
        '@type':
          type: string
          default: TrademeAgentCard
        alias:
          type: string
        first_name:
          anyOf:
            - type: string
            - type: 'null'
        last_name:
          anyOf:
            - type: string
            - type: 'null'
        agency_name:
          anyOf:
            - type: string
            - type: 'null'
        work_phone:
          anyOf:
            - type: string
            - type: 'null'
        mobile_phone:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        agency_image:
          anyOf:
            - type: string
            - type: 'null'
        sold_listing_count:
          anyOf:
            - type: integer
            - type: 'null'
        live_listing_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_partner:
          anyOf:
            - type: boolean
            - type: 'null'
        recently_sold:
          items:
            $ref: '#/components/schemas/TrademeAgentSoldProperty'
          type: array
          default: []
      type: object
      required:
        - alias
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    TrademeAgentSortOrder:
      type: string
      enum:
        - featured
        - sold_listings
        - first_name_asc
        - first_name_desc
        - last_name_asc
        - last_name_desc
    TrademeAgentSoldProperty:
      properties:
        '@type':
          type: string
          default: TrademeAgentSoldProperty
        id:
          type: integer
        address:
          anyOf:
            - type: string
            - type: 'null'
        sale_price:
          anyOf:
            - type: integer
            - type: 'null'
        sale_date:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        listing_id:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
    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

````