Locus Planning API

The planning API from Locus — 2 operation(s) for planning.

GitHub OpenAPI

Operations 2

POST /api/locus_suggest_workflow Suggest workflow: ranked endpoint plan for a place + intent #
POST /api/locus-plan-research Research-plan tool selector #

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/locus-report:locus-report-planning-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

locus-report-planning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Locus Planning API
  version: 0.2.0
  description: Property-context APIs for agents. Buyers need no Locus or CDP account API key. Run a free coverage preflight, then pay per call for official-record reports, pre-engineering land entitlement and LiDAR drainage briefs, two-horizon USDA soil and site-constraint screens, photo/video media-to-market geolocation, local-change briefs, policy and ordinance context, and environmental records. Every paid result includes source provenance, caveats, and verify-next steps. Install the Locus agent skill with `npx @velinussage/locus-agent-skill add`.
  x-locus-catalog-version: 2.1.0
  x-locus-access:
    accountApiKeyRequired: false
    note: Paid routes use x402 or advertised MPP payment credentials. Configured x402 routes offer USDC on Base and Solana; the live 402 accepts array is authoritative. OpenAPI payment metadata does not represent a separate API-key requirement.
  x-locus-top-agent-endpoints: https://api.locus.report/.well-known/locus-agent-endpoints.json
  x-locus-unified-catalog: https://api.locus.report/.well-known/locus-tools.json
  x-locus-call-conventions:
    free:
      endpoint: POST /tools/call
      bodyStyle: wrapped
      shape: '{"name": "<tool>", "arguments": { ... }}'
      note: 'The free /tools/call endpoint requires a WRAPPED body: {"name": "<tool>", "arguments": { ... }}. Tool inputs go inside `arguments`, NOT at the top level. Paid /api/<slug> routes are the opposite (flat body).'
    paid:
      endpoint: POST /api/<slug>
      bodyStyle: flat-json
      shape: '{ ...fields at top level }'
      note: 'Paid Locus tools take a FLAT JSON body (fields at the top level, e.g. {"address": "..."}). Do NOT wrap the body in {name, arguments} - that wrapper is ONLY for the free POST /tools/call endpoint.'
  x-locus-categories:
  - reports
  - parcels
  - hazard
  - environmental
  - economics
  - policy
  - infrastructure
  - safety
  - marketing
  x-skill-url: https://api.locus.report/.well-known/skill.md
  x-api-catalog: https://api.locus.report/.well-known/api-catalog
  x-api-catalog-type: application/linkset+json
  x-guidance: 'TWO CALLING CONVENTIONS (do not mix them): free tools are called at POST /tools/call with a WRAPPED body {"name": "<tool>", "arguments": {...}} (inputs inside `arguments`); paid tools are called at POST /api/<slug> with a FLAT body (inputs at the top level). Sending a flat body to /tools/call, or a wrapped body to a paid route, is the most common 400. Start with the current bundle-first agent choices at https://api.locus.report/.well-known/locus-agent-endpoints.json. The unified free+paid catalog is https://api.locus.report/.well-known/locus-tools.json; the full paid index remains https://api.locus.report/.well-known/ai-tool/index.json. Free catalog scaling knobs: https://api.locus.report/tools/list?compact=1 omits input schemas for small-context discovery, and https://api.locus.report/tools/list?category=environmental filters by category. No buyer account API key is required. Workflow: (1) Call free POST /tools/call with locus_coverage_check (or locus_lane_availability) for the address — the coverage check now SPLITS status by family (civicLaneStatus / parcelStatus / nationalEndpointStatus) and returns an `alwaysAvailable` list of national tools that fire for ANY US address, so a weak civic lane never means ''skip Locus''. New: locus_suggest_workflow (place+intent) returns a ranked endpoint plan. (2) Highest-value paid call: locus-local-policy-brief ($0.07, place+intent) — cited state bills + local ordinances affecting a place, the hardest analysis to self-compile from the free lanes (national LegiScan coverage). Confirm relevant-bill density first for free with locus_local_legislation; the paid brief returns a free diagnostic if nothing relevant is found. (3) Other atomic SKUs: locus-local-trend-brief ($0.05, place+intent) for local-change analysis; locus-place-report ($0.05, address or zip) for the full cited public-record artifact — responses can be large and may expose X-Locus-Report-* headers plus GET /api/reports?settlementTx=. Preserve X-Locus-Report-Id, X-Locus-Report-Url, X-Locus-Report-Artifact-Url, and the settlement proof so the artifact can be retrieved if a client truncates or drops the response body. Supported requests are generated synchronously and can take tens of seconds. (4) Use locus-before-you-sign ($0.07, address+intent) only when one settle is worth the convenience bundle, or locus-entitlement-brief ($0.19, address or point) for a pre-engineering land entitlement, zoning, soil-horizon, and LiDAR D8 drainage/earthwork dossier (JSON + SVG + printable HTML). (5) Use locus-environmental-context ($0.05, address, latitude+longitude, or state+county; heavier call: allow 60-90s) for EPA environmental public-record context and address-level TRI/RCRA proximity, not as a substitute for free locus_environmental_history preflight. For raw land or site work, run free locus_site_constraints, locus_entitlement_activity, and locus_lidar_drainage_profile first. Do not use Locus for tenant screening, lending, insurance, employment, appraisal, policing, or safe/unsafe labels.'
  contact:
    email: velinus@locus.report
servers:
- url: https://api.locus.report
tags:
- name: Planning
paths:
  /api/locus_suggest_workflow:
    post:
      operationId: locus_suggest_workflow
      summary: 'Suggest workflow: ranked endpoint plan for a place + intent'
      description: Every time a place question is broad, call this first to rank the next Locus endpoints for buying, renting, owning, appeals, permits, disasters, or before signing. Returns a deterministic plan with cost, free or paid rail, and local availability. Planning only; no model, record lookup, or scrape. Direct flat-body route for this one free resource; no API key, payment, or catalog wrapper. Return only the cited bounded evidence described here; this route never produces a paid brief or full report.
      tags:
      - Planning
      security: []
      x-locus-access:
        exposure: free
        charged: false
        sideEffect: read
      x-locus-category: meta
      x-locus-coverage-scope: meta
      x-locus-call-pattern:
        method: POST
        path: /api/locus_suggest_workflow
        bodyStyle: flat-json
        note: 'Flat JSON body: send this tool''s fields at the top level; do not wrap them in {name, arguments}.'
      x-agentcash-keywords:
      - coverage check
      - what works here
      - lane availability
      - Suggest workflow
      - property records
      - local government records
      - US address lookup
      - public records
      - property due diligence
      - official records
      x-agentcash-use-cases:
      - check which records Locus has for an address
      - preflight coverage before paying for a report
      - check which Locus tools work for an address
      - see coverage before paying for a report
      - preflight local-record availability for a place
      - check Suggest workflow for a property before buying
      - look up Suggest workflow for a US address
      - verify Suggest workflow before I make an offer
      - see Suggest workflow before signing a contract
      - compare Suggest workflow across two properties
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                place:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: ZIP, city, county, or street address to scope which endpoints are available here.
                intent:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: 'Canonical values: renter_due_diligence, homebuyer_due_diligence, small_business_siting, community_organizer_journalist, commercial_tenant_due_diligence, land_investor_due_diligence, developer_predevelopment, environmental_research, drought_water_supply, short_term_rental_operations, data_center_development, agricultural_land_due_diligence, hoa_board_governance, renovation_planning, media_to_market, property_owner_cost_relief, property_tax_appeal, utility_bill_relief, mortgage_servicing, disaster_recovery, permit_project_closeout, tax_delinquency_redemption, government_meeting_monitoring, local_fiscal_research, county_data_research. Natural-language phrases are also accepted and normalized, e.g. renting an apartment, buying a house, property-tax appeal, homeowner cost relief, utility bill credit, mortgage servicing, disaster recovery, permit closeout, tax-sale redemption, commercial lease, data-center development, agricultural land diligence, STR operations, HOA board review, or civic monitoring, planning meetings/agendas, budgets/audits, or county data series.'
              required:
              - place
              - intent
      responses:
        '200':
          description: Free cited evidence response.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid request body.
        '429':
          description: Rate limited.
  /api/locus-plan-research:
    post:
      operationId: locus_plan_research
      summary: Research-plan tool selector
      description: LLM-assisted research plan for one goal. Selects and ranks inside the closed Locus catalog; the server joins rail, price, scope, and availability. For choosing the next record call. A deterministic charge-free fallback returns on no key, model failure, or too few valid selections. npx @velinussage/locus-agent-skill add.
      x-locus-details: 'LLM-assisted research plan for one goal. Selects and ranks inside the closed Locus catalog; the server joins rail, price, scope, and availability. For choosing the next record call. A deterministic charge-free fallback returns on no key, model failure, or too few valid selections. npx @velinussage/locus-agent-skill add. No account API key is required: call the route, read its live payment challenge, then retry with the payment credential. Coverage is checked before charge where applicable; unsupported requests return a free diagnostic instead of a paid artifact. Paid artifacts are generated synchronously, so supported requests can take tens of seconds while Locus fetches and cites public records.'
      tags:
      - Planning
      x-locus-category: reports
      x-locus-tier: brief
      x-locus-recommended-timeout-ms: 120000
      x-locus-call-pattern:
        method: POST
        path: /api/locus-plan-research
        bodyStyle: flat-json
        note: 'Paid Locus tools take a FLAT JSON body (fields at the top level, e.g. {"address": "..."}). Do NOT wrap the body in {name, arguments} - that wrapper is ONLY for the free POST /tools/call endpoint.'
        example:
          address: 1 E Edenton St, Raleigh, NC 27601
          maxSuggestions: 10
      x-payment-info:
        accountApiKeyRequired: false
        credentialNote: 'PAYMENT-SIGNATURE and Authorization: Payment are payment credentials, not Locus or CDP account API keys.'
        price:
          mode: fixed
          currency: USD
          amount: '0.05'
          note: A research plan over Locus tools for one question. $0.05 per call. Fewer than three validated suggestions returns `charged:false`.
        protocols:
        - x402:
            network: eip155:8453
            asset: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
            scheme: exact
        - mpp:
            method: tempo
            intent: charge
            currency: '0x20C000000000000000000000b9537d11c60E8b50'
            testnet: false
        offers:
        - method: x402
          intent: exact
          amount: '50000'
          currency: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
          network: eip155:8453
          scheme: exact
        - method: tempo
          intent: charge
          amount: '50000'
          currency: '0x20C000000000000000000000b9537d11c60E8b50'
          recipient: '0xF121fbeceC43e1B616D47285851c20d5fC64431b'
          testnet: false
      x-locus-access:
        accountApiKeyRequired: false
        paymentRequired: true
        paymentHeaders:
        - PAYMENT-SIGNATURE
        - 'Authorization: Payment <credential>'
      x-agentcash-advisories:
      - type: preflight
        severity: recommended
        title: Check coverage before paying
        detail: Call locus_lane_availability first for a free coverage map (which tools are wired for this address; conservative registry metadata, not a live data probe). Unsupported local-context calls return a free charged:false diagnostic before any payment challenge. Supported synchronous report calls and the heavier locus-environmental-context call can take 60-90 seconds; honor X-Locus-Recommended-Timeout-Ms on the 402/200 response instead of a 30s client default. A miss or thin result returns charged:false with settlement suppressed.
        action:
          tool: locus_lane_availability
          url: https://api.locus.report/tools/call
          sampleInput:
            place: <address>
        learnMore: https://api.locus.report/.well-known/skill.md
      x-agentcash-keywords:
      - coverage check
      - what works here
      - lane availability
      - Research-plan tool selector
      - property records
      - local government records
      - US address lookup
      - public records
      - property due diligence
      - official records
      x-agentcash-use-cases:
      - check which records Locus has for an address
      - preflight coverage before paying for a report
      - check Research-plan tool selector for a property before buying
      - look up Research-plan tool selector for a US address
      - verify Research-plan tool selector before I make an offer
      - see Research-plan tool selector before signing a contract
      - compare Research-plan tool selector across two properties
      - get Research-plan tool selector for due diligence on a house
      - check Research-plan tool selector before touring a home
      - find Research-plan tool selector for a listing I am reviewing
      security:
      - x402Payment: []
      - mppPayment: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                goal:
                  description: Natural-language research goal. The model selects and ranks only from the closed Locus catalog; it does not author coverage, cost, or availability claims. When omitted, the server synthesizes a goal from intent + place/address.
                  type: string
                  minLength: 10
                  maxLength: 500
                intent:
                  description: Short research intent (e.g. 'homebuyer', 'renter due diligence', 'small business siting', 'community organizer'). Used to synthesize a goal when `goal` is omitted.
                  type: string
                  minLength: 1
                  maxLength: 120
                address:
                  description: Optional street address. Used for deterministic coverage-profile availability joins and to supply the place when `place` is omitted.
                  type: string
                  minLength: 1
                  maxLength: 200
                place:
                  description: Optional ZIP, city, county, or street address used only for deterministic coverage-profile availability joins.
                  type: string
                  minLength: 1
                  maxLength: 200
                maxSuggestions:
                  description: Maximum number of selected tools to return. Defaults to 10 and caps at 15.
                  default: 10
                  type: integer
                  minimum: 1
                  maximum: 15
              additionalProperties: false
              description: 'Flat JSON body: { goal, place?, maxSuggestions? }. The model selects and orders only from the closed Locus catalog; price, rail, scope, and availability are server-joined.'
            examples:
              supportedCoverage:
                summary: Supported-coverage example
                value:
                  address: 1 E Edenton St, Raleigh, NC 27601
                  maxSuggestions: 10
      responses:
        '200':
          description: Successful paid artifact, or a free pre-charge diagnostic when the request is outside current coverage.
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  kind:
                    type: string
                    const: plan_research
                  goal:
                    type: string
                  place:
                    type: string
                  charged:
                    type: boolean
                  suggestions:
                    type: array
                    items:
                      type: object
                      properties:
                        tool:
                          type: string
                        why:
                          type: string
                        title:
                          type: string
                        rail:
                          type: string
                          enum:
                          - free
                          - paid
                        priceUsdc:
                          type: string
                        scope:
                          type: string
                        availableForPlace:
                          anyOf:
                          - type: boolean
                          - type: string
                            const: varies
                      required:
                      - tool
                      - why
                      - title
                      - rail
                      - scope
                      additionalProperties: false
                  deterministicFallback:
                    type: object
                    properties: {}
                    additionalProperties: {}
                  diagnostics:
                    type: object
                    properties:
                      modelUsed:
                        type: string
                      modelAttempted:
                        type: boolean
                      modelSucceeded:
                        type: boolean
                      charged:
                        type: boolean
                      reason:
                        type: string
                      hallucinatedDropped:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      validatedSuggestions:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      deterministicFallbackOnly:
                        type: boolean
                    required:
                    - modelAttempted
                    - modelSucceeded
                    - charged
                    - hallucinatedDropped
                    - validatedSuggestions
                    additionalProperties: {}
                  caveats:
                    type: array
                    items:
                      type: string
                required:
                - kind
                - goal
                - charged
                - suggestions
                - deterministicFallback
                - diagnostics
                - caveats
                additionalProperties: {}
                description: 'Closed-catalog research plan: validated model-selected tools plus deterministic fallback. charged:false when OpenRouter is unkeyed, the model fails, or fewer than three validated suggestions survive.'
        '400':
          description: Invalid request body.
        '402':
          description: 'Payment Required. For x402 v2, repeat the identical request with a valid PAYMENT-SIGNATURE header (legacy X-PAYMENT is accepted for compatibility), or use Authorization: Payment for MPP Tempo when advertised in x-payment-info.offers.'
components:
  securitySchemes:
    x402Payment:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: x402 v2 payment credential returned by the buyer after satisfying the PAYMENT-REQUIRED challenge. This is not a Locus or CDP account API key. Legacy X-PAYMENT remains accepted for compatibility.
    mppPayment:
      type: apiKey
      in: header
      name: Authorization
      description: 'MPP payment credential, not an account API key. Format: Authorization: Payment <credential>.'
    propertyUpdateJobTokenQuery:
      type: apiKey
      in: query
      name: token
      description: Private opaque property-update job token embedded in the accepted response's statusUrl.
    propertyUpdateJobTokenBearer:
      type: http
      scheme: bearer
      bearerFormat: opaque-property-update-job-token
      description: Alternative transport for the same private property-update job token.
    surroundingAreaReportProofBearer:
      type: http
      scheme: bearer
      bearerFormat: sar1-report-capability
      description: Separate proof for an active settled surrounding-area report. Send only in the Authorization header; never put it in a URL or query string.
externalDocs:
  description: Locus bundle-first agent manifest. It links the unified catalog and the detailed paid index for agents that need the full surface.
  url: https://api.locus.report/.well-known/locus-agent-endpoints.json