NuaSense Analysis Prices API

Ready-made analyses: Prices — what things cost, where, and when

GitHub OpenAPI

Operations 11

GET /api/partner/v1/market/meta What can this API do, and what are the valid names? #
GET /api/partner/v1/market/fertilizer/price What does DAP cost right now, and where? #
GET /api/partner/v1/market/fertilizer/rank Which counties are dearest and which cheapest? #
GET /api/partner/v1/market/fertilizer/markets What does it cost in each individual market inside a county? #
GET /api/partner/v1/market/fertilizer/trend Is the price rising or falling, and by how much? #
GET /api/partner/v1/market/fertilizer/seasonality Which month of the year is cheapest to buy? #
GET /api/partner/v1/market/fertilizer/backtest Would that seasonal rule actually have made money? #
GET /api/partner/v1/market/fertilizer/margin Where is the retail-minus-wholesale markup fattest? #
GET /api/partner/v1/market/fertilizer/source-compare Do the official prices and the online asking prices agree? #
GET /api/partner/v1/market/fertilizer/global-benchmark How does the local price compare to the world market? #
GET /api/partner/v1/market/fertilizer/affordability Can farmers here actually afford fertilizer this season? #

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/nuasense-com:nuasense-com-analysis-prices-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

nuasense-com-analysis-prices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NuaSense Analysis Prices API
  version: 1.0.0
  description: 'East African farm and market data. Your own weather stations and soil probes with the agronomy computed from them (spray windows, disease risk, irrigation need, a forecast for the station), and the market layer for Kenya, Tanzania, Uganda and Rwanda (county prices, satellite demand, news signals, food security).


    Authentication: an API key from https://platform.nuasense.com (API Keys), sent as `Authorization: Bearer nua_live_…`. Call `GET /catalog` first: it lists the datasets this key reaches.


    Send `X-NuaSense-Client` with what you are (for example `skill/0.1.0; agent=claude-code`). It changes nothing in price or limits.


    Prose docs for agents: https://api.nuasense.com/index.md'
  contact:
    name: NuaSense
    url: https://nuasense.com
    email: info@nuasense.com
  termsOfService: https://nuasense.com/terms/
servers:
- url: https://api.nuasense.com
security:
- bearerAuth: []
tags:
- name: analysis-prices
  description: 'Ready-made analyses: Prices — what things cost, where, and when'
paths:
  /api/partner/v1/market/meta:
    get:
      operationId: analysisMeta
      tags:
      - analysis-prices
      summary: What can this API do, and what are the valid names?
      parameters:
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/price:
    get:
      operationId: analysisFertilizerPrice
      tags:
      - analysis-prices
      summary: What does DAP cost right now, and where?
      description: 'What does DAP cost right now, and where? Example: ?variety=dap&county=nakuru'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/rank:
    get:
      operationId: analysisFertilizerRank
      tags:
      - analysis-prices
      summary: Which counties are dearest and which cheapest?
      description: 'Which counties are dearest and which cheapest? Example: ?variety=dap&order=desc'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - name: order
        in: query
        required: false
        description: order
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/markets:
    get:
      operationId: analysisFertilizerMarkets
      tags:
      - analysis-prices
      summary: What does it cost in each individual market inside a county?
      description: 'What does it cost in each individual market inside a county? Example: ?variety=dap&county=kakamega'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - name: source
        in: query
        required: false
        description: source
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/trend:
    get:
      operationId: analysisFertilizerTrend
      tags:
      - analysis-prices
      summary: Is the price rising or falling, and by how much?
      description: 'Is the price rising or falling, and by how much? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/seasonality:
    get:
      operationId: analysisFertilizerSeasonality
      tags:
      - analysis-prices
      summary: Which month of the year is cheapest to buy?
      description: 'Which month of the year is cheapest to buy? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/backtest:
    get:
      operationId: analysisFertilizerBacktest
      tags:
      - analysis-prices
      summary: Would that seasonal rule actually have made money?
      description: 'Would that seasonal rule actually have made money? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: field
        in: query
        required: false
        description: field
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/margin:
    get:
      operationId: analysisFertilizerMargin
      tags:
      - analysis-prices
      summary: Where is the retail-minus-wholesale markup fattest?
      description: 'Where is the retail-minus-wholesale markup fattest? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/source-compare:
    get:
      operationId: analysisFertilizerSourceCompare
      tags:
      - analysis-prices
      summary: Do the official prices and the online asking prices agree?
      description: 'Do the official prices and the online asking prices agree? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/global-benchmark:
    get:
      operationId: analysisFertilizerGlobalBenchmark
      tags:
      - analysis-prices
      summary: How does the local price compare to the world market?
      description: 'How does the local price compare to the world market? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
  /api/partner/v1/market/fertilizer/affordability:
    get:
      operationId: analysisFertilizerAffordability
      tags:
      - analysis-prices
      summary: Can farmers here actually afford fertilizer this season?
      description: 'Can farmers here actually afford fertilizer this season? Example: ?variety=dap'
      parameters:
      - name: variety
        in: query
        required: false
        description: variety
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - $ref: '#/components/parameters/Client'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/E400'
        '401':
          $ref: '#/components/responses/E401'
        '402':
          $ref: '#/components/responses/E402'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '429':
          $ref: '#/components/responses/E429'
components:
  responses:
    E404:
      description: The dataset exists but is not published to this key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E429:
      description: Per-minute, daily or monthly budget reached. Wait for Retry-After or ask with a smaller limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E400:
      description: A field the key cannot reach, a bad time or aggregation value, or a continent-wide dataset called without a filter. The body names the problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E402:
      description: Market or location history beyond the free 30 days, or prepaid credit spent. Tell the human what needs credit; do not retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E401:
      description: Missing, malformed, revoked or expired key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    E403:
      description: The key lacks the scope, or names a station it does not own.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        dataset:
          type: string
  parameters:
    Client:
      name: X-NuaSense-Client
      in: header
      required: false
      description: What is calling, for example skill/0.1.0; agent=claude-code. Changes nothing in price or limits.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from https://platform.nuasense.com/manage/keys
externalDocs:
  description: Docs for agents and developers
  url: https://api.nuasense.com/index.md