NuaSense Analysis Analysis API

Ready-made analyses: Analysis — measured answers, no forecast

GitHub OpenAPI

Operations 11

GET /api/partner/v1/market/analytics/spread Where can I buy cheap and sell dear — and does it cover the lorry? #
GET /api/partner/v1/market/analytics/price-lag When Nairobi moves, how long until my market follows? #
GET /api/partner/v1/market/analytics/inflation Which counties are getting expensive fastest? #
GET /api/partner/v1/market/analytics/yield-risk How reliable is this county's harvest, and which years failed? #
GET /api/partner/v1/market/analytics/season Has the season started here — early or late, and is the rain that starts one… #
GET /api/partner/v1/market/crop-protection What is registered against this pest on my crop, and how long before harvest? #
GET /api/partner/v1/market/fertilizer/recommendation How much fertilizer for my crop, and what does it cost me today? #
GET /api/partner/v1/market/export-residue Can I use this on my crop and still export to the EU? #
GET /api/partner/v1/market/varieties Which varieties are released for my altitude, and how long do they take? #
GET /api/partner/v1/market/analytics/coffee-grades What does coffee grade AA earn over the market? #
GET /api/partner/v1/market/analytics/tea-league Which tea factory beats its neighbours? #

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-analysis-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-analysis-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NuaSense Analysis Analysis 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-analysis
  description: 'Ready-made analyses: Analysis — measured answers, no forecast'
paths:
  /api/partner/v1/market/analytics/spread:
    get:
      operationId: analysisAnalyticsSpread
      tags:
      - analysis-analysis
      summary: Where can I buy cheap and sell dear — and does it cover the lorry?
      description: 'Where can I buy cheap and sell dear — and does it cover the lorry? Example: ?commodity=maize_dry&transport_cost_kes_per_kg=8'
      parameters:
      - name: commodity
        in: query
        required: false
        description: commodity
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - name: transport_cost_kes_per_kg
        in: query
        required: false
        description: transport cost kes per kg
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: limit
        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/analytics/price-lag:
    get:
      operationId: analysisAnalyticsPriceLag
      tags:
      - analysis-analysis
      summary: When Nairobi moves, how long until my market follows?
      description: 'When Nairobi moves, how long until my market follows? Example: ?commodity=maize_dry&reference=nairobi'
      parameters:
      - name: commodity
        in: query
        required: false
        description: commodity
        schema:
          type: string
      - name: reference
        in: query
        required: false
        description: reference
        schema:
          type: string
      - name: window_days
        in: query
        required: false
        description: window days
        schema:
          type: string
      - name: max_lag_days
        in: query
        required: false
        description: max lag 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/analytics/inflation:
    get:
      operationId: analysisAnalyticsInflation
      tags:
      - analysis-analysis
      summary: Which counties are getting expensive fastest?
      description: 'Which counties are getting expensive fastest? Example: ?commodity=maize_dry'
      parameters:
      - name: commodity
        in: query
        required: false
        description: commodity
        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/analytics/yield-risk:
    get:
      operationId: analysisAnalyticsYieldRisk
      tags:
      - analysis-analysis
      summary: How reliable is this county's harvest, and which years failed?
      description: 'How reliable is this county''s harvest, and which years failed? Example: ?county=uasin_gishu&product=maize'
      parameters:
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: product
        in: query
        required: false
        description: product
        schema:
          type: string
      - name: season
        in: query
        required: false
        description: season
        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/analytics/season:
    get:
      operationId: analysisAnalyticsSeason
      tags:
      - analysis-analysis
      summary: Has the season started here — early or late, and is the rain that starts one…
      description: 'Has the season started here — early or late, and is the rain that starts one coming? Example: ?county=nakuru'
      parameters:
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: country
        schema:
          type: string
      - name: index
        in: query
        required: false
        description: index
        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/crop-protection:
    get:
      operationId: analysisCropProtection
      tags:
      - analysis-analysis
      summary: What is registered against this pest on my crop, and how long before harvest?
      description: 'What is registered against this pest on my crop, and how long before harvest? Example: ?crop=tomato&pest=tuta absoluta'
      parameters:
      - name: crop
        in: query
        required: false
        description: crop
        schema:
          type: string
      - name: pest
        in: query
        required: false
        description: pest
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: country
        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/recommendation:
    get:
      operationId: analysisFertilizerRecommendation
      tags:
      - analysis-analysis
      summary: How much fertilizer for my crop, and what does it cost me today?
      description: 'How much fertilizer for my crop, and what does it cost me today? Example: ?county=nakuru&crop=maize&altitude_m=1850'
      parameters:
      - name: county
        in: query
        required: false
        description: county
        schema:
          type: string
      - name: crop
        in: query
        required: false
        description: crop
        schema:
          type: string
      - name: altitude_m
        in: query
        required: false
        description: altitude m
        schema:
          type: string
      - name: level
        in: query
        required: false
        description: level
        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/export-residue:
    get:
      operationId: analysisExportResidue
      tags:
      - analysis-analysis
      summary: Can I use this on my crop and still export to the EU?
      description: 'Can I use this on my crop and still export to the EU? Example: ?crop=french_bean&active=lambda-cyhalothrin'
      parameters:
      - name: crop
        in: query
        required: false
        description: crop
        schema:
          type: string
      - name: active
        in: query
        required: false
        description: active
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: limit
        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/varieties:
    get:
      operationId: analysisVarieties
      tags:
      - analysis-analysis
      summary: Which varieties are released for my altitude, and how long do they take?
      description: 'Which varieties are released for my altitude, and how long do they take? Example: ?crop=maize&altitude_m=1800&max_maturity_months=5'
      parameters:
      - name: crop
        in: query
        required: false
        description: crop
        schema:
          type: string
      - name: altitude_m
        in: query
        required: false
        description: altitude m
        schema:
          type: string
      - name: max_maturity_months
        in: query
        required: false
        description: max maturity months
        schema:
          type: string
      - name: seed_company
        in: query
        required: false
        description: seed company
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: limit
        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/analytics/coffee-grades:
    get:
      operationId: analysisAnalyticsCoffeeGrades
      tags:
      - analysis-analysis
      summary: What does coffee grade AA earn over the market?
      description: 'What does coffee grade AA earn over the market? Example: ?sales=20'
      parameters:
      - name: sales
        in: query
        required: false
        description: sales
        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/analytics/tea-league:
    get:
      operationId: analysisAnalyticsTeaLeague
      tags:
      - analysis-analysis
      summary: Which tea factory beats its neighbours?
      description: 'Which tea factory beats its neighbours? Example: ?grade=all'
      parameters:
      - name: grade
        in: query
        required: false
        description: grade
        schema:
          type: string
      - name: sales
        in: query
        required: false
        description: sales
        schema:
          type: string
      - name: min_sales
        in: query
        required: false
        description: min sales
        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