> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> An address, APN, building, owner or company name to options, as West Kite's search box shows them: up to ten ranked results for an address, each with why it matched (match; reason: exact, suffix_variant, direction_variant, range, alternate, spelling, geocoded, prefix), a confidence from 0 to 1, its city and state, and exact. Act on the first result alone only at confidence 0.9 or more. Street suffix variants (Pkwy for a record filed PY), misspelled streets and ordinals ("1 Markt St", "350 Fith Ave") find the building. An address West Kite does not hold returns no results with note "No match" (warning appears only when the search could not answer). Text with no house number that names an owner lists that owner's properties first; places the text names come back in places (pass one as in). When nothing matches exactly, the closest records held come back with exact: false and corrected_query, never an empty guess. in or lat and lng prefer options there. A point alone (lat and lng without q) returns the parcel whose outline contains it (stacked parcels: all of them); with none, the nearest property within about 500 m, with nearest: true.



## OpenAPI

````yaml /openapi.json get /search
openapi: 3.1.0
info:
  title: West Kite API
  version: 1.0.0
  description: >-
    Sourced US commercial property records, owner research and contacts, priced
    per call. A call that fails, or a lookup that finds nothing, costs nothing.
    Missing fields are unavailable, never zero: each answer lists them in
    missing with a reason.
  contact:
    url: https://westkite.com/docs/api
servers:
  - url: https://api.westkite.com/v1
security:
  - bearer: []
  - apiKey: []
paths:
  /search:
    get:
      tags:
        - Properties
      summary: Search
      description: >-
        An address, APN, building, owner or company name to options, as West
        Kite's search box shows them: up to ten ranked results for an address,
        each with why it matched (match; reason: exact, suffix_variant,
        direction_variant, range, alternate, spelling, geocoded, prefix), a
        confidence from 0 to 1, its city and state, and exact. Act on the first
        result alone only at confidence 0.9 or more. Street suffix variants
        (Pkwy for a record filed PY), misspelled streets and ordinals ("1 Markt
        St", "350 Fith Ave") find the building. An address West Kite does not
        hold returns no results with note "No match" (warning appears only when
        the search could not answer). Text with no house number that names an
        owner lists that owner's properties first; places the text names come
        back in places (pass one as in). When nothing matches exactly, the
        closest records held come back with exact: false and corrected_query,
        never an empty guess. in or lat and lng prefer options there. A point
        alone (lat and lng without q) returns the parcel whose outline contains
        it (stacked parcels: all of them); with none, the nearest property
        within about 500 m, with nearest: true.
      operationId: search
      parameters:
        - name: q
          in: query
          required: false
          description: Words to search.
          schema:
            type: string
        - name: in
          in: query
          required: false
          description: 'With q: a place to prefer, e.g. San Francisco, CA.'
          schema:
            type: string
        - name: lat
          in: query
          required: false
          description: >-
            Latitude: alone with lng, the parcel there; with q, prefer options
            near it.
          schema:
            type: number
        - name: lng
          in: query
          required: false
          description: Longitude.
          schema:
            type: number
        - name: limit
          in: query
          required: false
          description: Results, up to 50. Default 20.
          schema:
            type: integer
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - missing
                  - billing
                  - request_id
                properties:
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items:
                          $ref: '#/components/schemas/SearchHit'
                      places:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            kind:
                              type: string
                            in:
                              type: string
                            county_fips:
                              type: array
                              items:
                                type: string
                      corrected_query:
                        type: string
                        description: >-
                          What the closest options were read as, when nothing
                          matched exactly.
                      note:
                        type: string
                      warning:
                        type: string
                        description: >-
                          The search could not answer in time: an empty answer
                          is not evidence of no match.
                  missing:
                    type: array
                    items:
                      $ref: '#/components/schemas/MissingField'
                  billing:
                    $ref: '#/components/schemas/Billing'
                  request_id:
                    type: string
        '400':
          description: invalid_request
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: invalid_key
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: scope_missing
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: idempotency_conflict
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate_limited
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: service_unavailable
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  headers:
    RateLimit-Limit:
      description: Requests per minute on the team's plan.
      schema:
        type: integer
    RateLimit-Remaining:
      description: Requests left in the current minute.
      schema:
        type: integer
    RateLimit-Reset:
      description: Seconds until the minute resets.
      schema:
        type: integer
    X-Request-Id:
      description: The request's id, as request_id in the body.
      schema:
        type: string
    Server-Timing:
      description: >-
        Milliseconds each step of the call took on West Kite's side: pre, plan,
        admit (key, limits and hold), work (the endpoint itself) and settle
        (charge and log), e.g. admit;dur=40, work;dur=310. Durations only.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  schemas:
    SearchHit:
      type: object
      required:
        - id
        - title
      properties:
        id:
          type: string
        title:
          type: string
        url:
          type: string
        match:
          enum:
            - address
            - apn
            - owner
            - name
          description: What kind of match it is.
        exact:
          type: boolean
          description: False for the closest records held when nothing matched exactly.
        confidence:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            How sure the match is, 0 to 1. Act on the first result alone only at
            0.9 or more; below that, show the choices.
        reason:
          enum:
            - exact
            - suffix_variant
            - direction_variant
            - range
            - alternate
            - spelling
            - nearby_number
            - geocoded
            - prefix
            - apn
            - owner
            - name
            - street
          description: >-
            Why it matched. Addresses: exact (as filed), suffix_variant (another
            street type), direction_variant, range (inside a filed number
            range), alternate (one of the lot's other addresses), spelling (a
            corrected street name), geocoded (the parcel where a geocoder puts
            the address), prefix (starts with the text typed). Others: apn,
            owner, name, street.
        city:
          type:
            - string
            - 'null'
        state:
          type:
            - string
            - 'null'
        coordinates:
          type: array
          items:
            type: number
        nearest:
          type: boolean
        distance_m:
          type: number
    MissingField:
      type: object
      required:
        - field
        - reason
      properties:
        field:
          type: string
        reason:
          enum:
            - not_covered
            - not_published
            - not_on_record
            - not_found
            - temporarily_unavailable
          description: >-
            not_covered on a find: a where field West Kite holds for under 5% of
            properties in the scope (rows filtered on it are only that share).
        note:
          type: string
    Billing:
      type: object
      required:
        - operation_id
        - operation
        - charged_usd
        - balance_usd
      properties:
        operation_id:
          type: string
        operation:
          type: string
        charged_usd:
          type: number
        balance_usd:
          type: number
        replayed:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              enum:
                - invalid_request
                - invalid_key
                - insufficient_balance
                - spend_limit_exceeded
                - max_cost_too_low
                - scope_missing
                - not_found
                - endpoint_removed
                - idempotency_conflict
                - rate_limited
                - internal_error
                - service_unavailable
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            reason:
              type: string
              description: >-
                invalid_key: revoked, expired or unknown. rate_limited: requests
                (per minute), concurrency (in flight), agent_questions (the
                Agent's own cap) or agent_signups (sign-ups started).
            retry_after:
              type: integer
            upgrade_url:
              type: string
            quoted_usd:
              type: number
            concurrent:
              type: integer
            balance_usd:
              type: number
            available_usd:
              type: number
            spend_cap_usd:
              type: number
            spent_usd:
              type: number
        request_id:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: wk_live_ key
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.