ThaiProps Search API

The Search API from ThaiProps — 18 operation(s) for search.

GitHub OpenAPI

Operations 18

POST /search/analytics/context Register Search Analytics Context #
POST /search/analytics/property-events Record Search Property Analytics #
POST /search/analytics/property-click Record Property Click Analytics #
POST /search Search Properties #
POST /search/ai Ai Search Properties #
GET /search/transport-order Transport Order #
PUT /search/transport-order/{transport_type}/{line_key} Update Transport Order #
GET /search/transport-stations Get Transport Stations #
GET /search/areas Get Search Areas #
GET /search/districts Get Search Districts #
GET /search/projects Get Search Projects #
GET /search/landmarks Get Search Landmarks #
GET /search/nearby-directory Get Nearby Directory #
GET /search/property-types Get Search Property Types #
GET /search/provinces Get Search Provinces #
POST /search/analytics/property-click-v2 Record Property Click Measurement V2 #
POST /search/analytics/property-view Record Property View Measurement #
POST /search/analytics/ad-event Record Ad Measurement #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thaiprops-com:thaiprops-com-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thaiprops-com-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThaiProps Admin Search API
  version: 0.1.0
tags:
- name: Search
paths:
  /search/analytics/context:
    post:
      tags:
      - Search
      summary: Register Search Analytics Context
      operationId: register_search_analytics_context_search_analytics_context_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAnalyticsContextBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/analytics/property-events:
    post:
      tags:
      - Search
      summary: Record Search Property Analytics
      operationId: record_search_property_analytics_search_analytics_property_events_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPropertyAnalyticsBatch'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/analytics/property-click:
    post:
      tags:
      - Search
      summary: Record Property Click Analytics
      operationId: record_property_click_analytics_search_analytics_property_click_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PropertyClickAnalyticsBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search:
    post:
      tags:
      - Search
      summary: Search Properties
      operationId: search_properties_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/ai:
    post:
      tags:
      - Search
      summary: Ai Search Properties
      operationId: ai_search_properties_search_ai_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiSearchPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/transport-order:
    get:
      tags:
      - Search
      summary: Transport Order
      operationId: transport_order_search_transport_order_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /search/transport-order/{transport_type}/{line_key}:
    put:
      tags:
      - Search
      summary: Update Transport Order
      operationId: update_transport_order_search_transport_order__transport_type___line_key__put
      parameters:
      - name: transport_type
        in: path
        required: true
        schema:
          type: string
          title: Transport Type
      - name: line_key
        in: path
        required: true
        schema:
          type: string
          title: Line Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransportLineUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/transport-stations:
    get:
      tags:
      - Search
      summary: Get Transport Stations
      operationId: get_transport_stations_search_transport_stations_get
      parameters:
      - name: type
        in: query
        required: true
        schema:
          type: string
          title: Type
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: Bangkok
          title: Province
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/areas:
    get:
      tags:
      - Search
      summary: Get Search Areas
      operationId: get_search_areas_search_areas_get
      parameters:
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: Bangkok
          title: Province
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/districts:
    get:
      tags:
      - Search
      summary: Get Search Districts
      operationId: get_search_districts_search_districts_get
      parameters:
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: Bangkok
          title: Province
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/projects:
    get:
      tags:
      - Search
      summary: Get Search Projects
      description: Published project suggestions use the same approved identities as mining.
      operationId: get_search_projects_search_projects_get
      parameters:
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Province
      - name: q
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Q
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/landmarks:
    get:
      tags:
      - Search
      summary: Get Search Landmarks
      operationId: get_search_landmarks_search_landmarks_get
      parameters:
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: Bangkok
          title: Province
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/nearby-directory:
    get:
      tags:
      - Search
      summary: Get Nearby Directory
      operationId: get_nearby_directory_search_nearby_directory_get
      parameters:
      - name: province
        in: query
        required: false
        schema:
          type: string
          default: Bangkok
          title: Province
      - name: category
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Category
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 500
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/property-types:
    get:
      tags:
      - Search
      summary: Get Search Property Types
      operationId: get_search_property_types_search_property_types_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /search/provinces:
    get:
      tags:
      - Search
      summary: Get Search Provinces
      operationId: get_search_provinces_search_provinces_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /search/analytics/property-click-v2:
    post:
      tags:
      - Search
      summary: Record Property Click Measurement V2
      operationId: record_property_click_measurement_v2_search_analytics_property_click_v2_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PropertyMeasurementClickBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/analytics/property-view:
    post:
      tags:
      - Search
      summary: Record Property View Measurement
      operationId: record_property_view_measurement_search_analytics_property_view_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PropertyMeasurementViewBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /search/analytics/ad-event:
    post:
      tags:
      - Search
      summary: Record Ad Measurement
      operationId: record_ad_measurement_search_analytics_ad_event_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdMeasurementEventBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PropertyClickAnalyticsBody:
      properties:
        event_token:
          type: string
          title: Event Token
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        property_id:
          type: integer
          title: Property Id
        source:
          type: string
          title: Source
        page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Path
        search_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Search Token
        project_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Project Id
        portfolio_slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Portfolio Slug
        result_position:
          anyOf:
          - type: integer
          - type: 'null'
          title: Result Position
        view_mode:
          anyOf:
          - type: string
            enum:
            - list
            - map
          - type: 'null'
          title: View Mode
      type: object
      required:
      - event_token
      - property_id
      - source
      title: PropertyClickAnalyticsBody
    MapPoint:
      properties:
        lat:
          type: number
          title: Lat
        lng:
          type: number
          title: Lng
      type: object
      required:
      - lat
      - lng
      title: MapPoint
    SearchPropertyAnalyticsEvent:
      properties:
        search_token:
          type: string
          title: Search Token
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        property_id:
          type: integer
          title: Property Id
        event_type:
          type: string
          enum:
          - listed
          - impression
          - click
          title: Event Type
        result_position:
          anyOf:
          - type: integer
          - type: 'null'
          title: Result Position
        view_mode:
          anyOf:
          - type: string
            enum:
            - list
            - map
          - type: 'null'
          title: View Mode
      type: object
      required:
      - search_token
      - property_id
      - event_type
      title: SearchPropertyAnalyticsEvent
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    AiSearchPayload:
      properties:
        prompt:
          type: string
          title: Prompt
        mode:
          anyOf:
          - type: string
            enum:
            - buy
            - rent
          - type: 'null'
          title: Mode
        province:
          anyOf:
          - type: string
          - type: 'null'
          title: Province
        page_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Page Size
          default: 20
      type: object
      required:
      - prompt
      title: AiSearchPayload
    NearbyCenter:
      properties:
        lat:
          type: number
          title: Lat
        lng:
          type: number
          title: Lng
      type: object
      required:
      - lat
      - lng
      title: NearbyCenter
    AdMeasurementEventBody:
      properties:
        event_token:
          type: string
          title: Event Token
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        event_type:
          type: string
          enum:
          - impression
          - click
          - view
          - conversion
          title: Event Type
        property_id:
          type: integer
          title: Property Id
        placement_id:
          type: string
          title: Placement Id
        campaign_id:
          type: integer
          title: Campaign Id
        ad_id:
          type: integer
          title: Ad Id
        auction_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Auction Token
        search_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Search Token
        result_position:
          anyOf:
          - type: integer
          - type: 'null'
          title: Result Position
        page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Path
        referrer:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer
        attribution_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Attribution Token
      type: object
      required:
      - event_token
      - event_type
      - property_id
      - placement_id
      - campaign_id
      - ad_id
      title: AdMeasurementEventBody
    PropertyMeasurementViewBody:
      properties:
        event_token:
          type: string
          title: Event Token
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        property_id:
          type: integer
          title: Property Id
        source:
          type: string
          title: Source
        placement_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Placement Id
        page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Path
        referrer:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer
        search_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Search Token
        project_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Project Id
        portfolio_slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Portfolio Slug
        campaign_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Campaign Id
        ad_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ad Id
        click_event_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Click Event Token
        attribution_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Attribution Token
        is_paid:
          type: boolean
          title: Is Paid
          default: false
        context_json:
          additionalProperties: true
          type: object
          title: Context Json
          default: {}
      type: object
      required:
      - event_token
      - property_id
      - source
      title: PropertyMeasurementViewBody
    PropertyMeasurementClickBody:
      properties:
        event_token:
          type: string
          title: Event Token
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        property_id:
          type: integer
          title: Property Id
        source:
          type: string
          title: Source
        page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Path
        referrer:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer
        search_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Search Token
        project_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Project Id
        portfolio_slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Portfolio Slug
        result_position:
          anyOf:
          - type: integer
          - type: 'null'
          title: Result Position
        view_mode:
          anyOf:
          - type: string
            enum:
            - list
            - map
          - type: 'null'
          title: View Mode
        placement_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Placement Id
        campaign_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Campaign Id
        ad_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ad Id
        attribution_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Attribution Token
        is_paid:
          type: boolean
          title: Is Paid
          default: false
        context_json:
          additionalProperties: true
          type: object
          title: Context Json
          default: {}
      type: object
      required:
      - event_token
      - property_id
      - source
      title: PropertyMeasurementClickBody
    TransportLineUpdate:
      properties:
        stations:
          items:
            type: string
          type: array
          title: Stations
      type: object
      required:
      - stations
      title: TransportLineUpdate
    SearchPropertyAnalyticsBatch:
      properties:
        events:
          items:
            $ref: '#/components/schemas/SearchPropertyAnalyticsEvent'
          type: array
          title: Events
      type: object
      required:
      - events
      title: SearchPropertyAnalyticsBatch
    SearchAnalyticsContextBody:
      properties:
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          default: site_search
        page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Path
        criteria:
          additionalProperties: true
          type: object
          title: Criteria
          default: {}
        result_count:
          type: integer
          title: Result Count
          default: 0
      type: object
      title: SearchAnalyticsContextBody
    SearchPayload:
      properties:
        mode:
          type: string
          enum:
          - buy
          - rent
          title: Mode
        province:
          anyOf:
          - type: string
          - type: 'null'
          title: Province
        property_types:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Property Types
        location:
          anyOf:
          - type: string
          - type: 'null'
          title: Location
        keyword:
          anyOf:
          - type: string
          - type: 'null'
          title: Keyword
        property_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Property Id
        project_ids:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Project Ids
        station_ids:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Station Ids
        areas:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Areas
        districts:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Districts
        bedrooms_min:
          anyOf:
          - type: number
          - type: 'null'
          title: Bedrooms Min
        bedrooms_values:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Bedrooms Values
        price_min:
          anyOf:
          - type: integer
          - type: 'null'
          title: Price Min
        price_max:
          anyOf:
          - type: integer
          - type: 'null'
          title: Price Max
        area_min:
          anyOf:
          - type: number
          - type: 'null'
          title: Area Min
        area_max:
          anyOf:
          - type: number
          - type: 'null'
          title: Area Max
        map_bounds:
          anyOf:
          - $ref: '#/components/schemas/MapBounds'
          - type: 'null'
        map_bounds_list:
          anyOf:
          - items:
              $ref: '#/components/schemas/MapBounds'
            type: array
          - type: 'null'
          title: Map Bounds List
        map_polygon:
          anyOf:
          - items:
              $ref: '#/components/schemas/MapPoint'
            type: array
          - type: 'null'
          title: Map Polygon
        nearby_center:
          anyOf:
          - $ref: '#/components/schemas/NearbyCenter'
          - type: 'null'
        nearby_radius_km:
          anyOf:
          - type: number
          - type: 'null'
          title: Nearby Radius Km
        features:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Features
        project_features:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Project Features
        built_after_year:
          anyOf:
          - type: integer
          - type: 'null'
          title: Built After Year
        availability:
          anyOf:
          - type: string
            enum:
            - now
            - '7'
            - '30'
            - updated_7
          - type: 'null'
          title: Availability
        pet_friendly:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Pet Friendly
        short_term:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Short Term
        private_pool:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Private Pool
        duplex:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Duplex
        map_only:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Map Only
          default: false
        analytics_search_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Analytics Search Token
        analytics_session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Analytics Session Id
        analytics_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Analytics Source
        analytics_page_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Analytics Page Path
        sort:
          anyOf:
          - type: string
            enum:
            - best
            - newest
            - availability
            - updated
            - newest_added
            - price_low
            - price_high
            - area_low
            - area_high
            - floor_high
          - type: 'null'
          title: Sort
          default: best
        page:
          anyOf:
          - type: integer
          - type: 'null'
          title: Page
          default: 1
        page_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Page Size
          default: 20
      type: object
      required:
      - mode
      title: SearchPayload
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MapBounds:
      properties:
        north:
          type: number
          title: North
        south:
          type: number
          title: South
        east:
          type: number
          title: East
        west:
          type: number
          title: West
      type: object
      required:
      - north
      - south
      - east
      - west
      title: MapBounds