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

# Export a market

> Every matching property in a market, up to 100,000 rows, as one CSV or NDJSON file. $1 per 1,000 rows.

The [Exports guide](/docs/api/exports.md) explains this endpoint in full.


## OpenAPI

````yaml POST /exports
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:
  /exports:
    post:
      tags:
        - Find
      summary: Export properties as CSV or NDJSON
      description: >-
        Every property matching where in a market, up to 100,000 rows, as a
        signed file link with the exact total and sources. format csv (default)
        is a header row then one row per property; ndjson is one JSON object per
        line with the same columns as keys (file.columns), numbers as numbers
        and an unstated value as null. Charged when prepared for the rows the
        file holds; the balance, max_cost_usd, max_rows or the key's spend cap
        size the file. The link works for 24 hours and stops when the key is
        revoked.
      operationId: createExport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: >-
                Send in (a market by name) or within (a GeoJSON polygon), not
                both.
              properties:
                type:
                  const: properties
                where:
                  type: array
                  items:
                    type: string
                in:
                  type: string
                within:
                  $ref: '#/components/schemas/Within'
                format:
                  enum:
                    - csv
                    - ndjson
                  default: csv
                max_rows:
                  type: integer
                  maximum: 100000
                max_cost_usd:
                  type: number
      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
                    additionalProperties: true
                    properties:
                      status:
                        enum:
                          - ready
                          - empty
                      total:
                        type: integer
                      scope:
                        type: string
                      resolved_scope:
                        $ref: '#/components/schemas/ResolvedScope'
                      file:
                        type:
                          - object
                          - 'null'
                        properties:
                          url:
                            type: string
                          format:
                            enum:
                              - csv
                              - ndjson
                          rows:
                            type: integer
                          columns:
                            type: array
                            items:
                              type: string
                          expires_at:
                            type: string
                            format: date-time
                      rows_left_out:
                        type: integer
                      limit_note:
                        type: string
                      sources:
                        type: array
                        items:
                          type: object
                      preview:
                        type: array
                        items:
                          type: object
                  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'
        '402':
          description: insufficient_balance, spend_limit_exceeded
          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:
  schemas:
    Within:
      description: >-
        A GeoJSON Polygon or MultiPolygon, or a Feature holding one: up to 8
        polygons, up to 40 vertices each, outer rings only (no holes),
        [longitude, latitude], inside the United States.
      oneOf:
        - type: object
          required:
            - type
            - coordinates
          properties:
            type:
              enum:
                - Polygon
                - MultiPolygon
            coordinates:
              type: array
        - type: object
          required:
            - type
            - geometry
          properties:
            type:
              const: Feature
            geometry:
              type: object
    ResolvedScope:
      type: object
      required:
        - input
        - kind
        - label
        - county_fips
        - includes_neighboring_places
        - basis
      description: Where a find searched.
      properties:
        input:
          type:
            - string
            - 'null'
          description: in as sent; null for near, within or no place.
        kind:
          enum:
            - city
            - metro
            - county
            - state
            - zip
            - place
            - point
            - polygon
            - nationwide
          description: >-
            city: the city's own records; metro: a city read as its county (no
            city boundary held); place: a region, or a New York City or San
            Francisco neighborhood, the search resolved.
        label:
          type: string
        county_fips:
          type: array
          items:
            type: string
          description: >-
            The counties searched, when the scope is a set of counties; empty
            for a point, polygon, ZIP or a place the search resolved.
        includes_neighboring_places:
          type: boolean
          description: >-
            True when the search reaches past the named place, e.g. a city read
            as its whole county.
        basis:
          enum:
            - city_records
            - census_boundary
            - counties
            - county
            - state_counties
            - zip_boundary
            - radius
            - polygon
            - search_resolved
            - all_coverage
        radius_m:
          type: number
        note:
          type: string
    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
  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
  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.