Livestock Market Prices Data API

The Data API from Livestock Market Prices — 1 operation(s) for data.

GitHub OpenAPI

Operations 1

GET /data/prices.csv Download the same filtered observations as formula-safe CSV #

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/livestockmarketprices-com:livestockmarketprices-com-data-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

livestockmarketprices-com-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Livestock Market Prices public Data API
  version: 1.3.0-alpha.1
  description: Read reviewed, rights-approved livestock observations from one coherent dataset release, with exact decimal strings and source citations. Reuse requires preserving the original source name and exact link and prohibits presenting source observations or LMP-derived results as the user's own original data.
  termsOfService: https://livestockmarketprices.com/terms#terms-sources
servers:
- url: https://livestockmarketprices.com
tags:
- name: Data
paths:
  /data/prices.csv:
    get:
      operationId: downloadPricesCsv
      summary: Download the same filtered observations as formula-safe CSV
      parameters:
      - $ref: '#/components/parameters/Species'
      - $ref: '#/components/parameters/Class'
      - $ref: '#/components/parameters/Purpose'
      - $ref: '#/components/parameters/BreedType'
      - $ref: '#/components/parameters/WeightBand'
      - $ref: '#/components/parameters/Location'
      - $ref: '#/components/parameters/WeightLb'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: UTF-8 CSV with provenance columns
          headers:
            ETag:
              description: Release- and request-specific validator
              schema:
                type: string
            Link:
              description: Typed links for the response, including rel="next" when another bounded CSV page exists
              schema:
                type: string
            X-LMP-Dataset-Revision:
              description: Coherent public release key
              schema:
                type: string
            X-LMP-Next-Cursor:
              description: Opaque cursor for the next CSV page; absent on the final page
              schema:
                type: string
                maxLength: 256
          content:
            text/csv:
              schema:
                type: string
        '304':
          description: The supplied ETag still matches
        '400':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No published observations match the valid filters (NO_MATCHING_PRICES)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NoMatchingPricesError'
        '409':
          description: The cursor belongs to a different dataset release (STALE_CURSOR)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StaleCursorError'
        '503':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      tags:
      - Data
components:
  parameters:
    Location:
      name: location
      in: query
      description: 'Namespaced published location selector: all, state:CC:AA, region:ID, or market:ID'
      schema:
        type: string
        pattern: ^(?:all|state:[A-Z]{2}:[A-Z0-9]{2,3}|region:[A-Za-z0-9][A-Za-z0-9._:-]{0,127}|market:[A-Za-z0-9][A-Za-z0-9._:-]{0,127})$
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    Species:
      name: species
      in: query
      schema:
        type: string
        enum:
        - goat
        - sheep
        - cattle
    WeightLb:
      name: weight_lb
      in: query
      schema:
        type: string
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
        maxLength: 256
    BreedType:
      name: breed_type
      in: query
      schema:
        type: string
        enum:
        - meat_goat
        - dairy_miniature
        - angora
        - hair_sheep
        - wool_sheep
        - beef_cattle
        - dairy_cattle
        - crossbred_cattle
    Class:
      name: class
      in: query
      schema:
        type: string
        enum:
        - unclassified_goats
        - unclassified_sheep
        - kids
        - nannies_does
        - bucks_billies
        - wethers_muttons
        - lambs
        - ewes
        - rams_bucks
        - steers
        - heifers
        - cows
        - bulls
        - calves
        - cow_calf_pairs
        - other_cattle
    Purpose:
      name: purpose
      in: query
      schema:
        type: string
        enum:
        - slaughter
        - replacement
        - stocker
        - feeder
        - show
        - breeding
    WeightBand:
      name: weight_band
      in: query
      schema:
        type: string
        enum:
        - unreported
        - 20-39
        - 40-59
        - 60-79
        - 80-109
        - 110-plus
        - under-300
        - 300-399
        - 400-499
        - 500-599
        - 600-699
        - 700-799
        - 800-999
        - 1000-plus
  schemas:
    StaleCursorError:
      allOf:
      - $ref: '#/components/schemas/ApiError'
      - type: object
        required:
        - error
        properties:
          error:
            type: object
            required:
            - code
            - details
            properties:
              code:
                type: string
                const: STALE_CURSOR
              details:
                type: object
                required:
                - cursor_dataset_revision
                - current_dataset_revision
                additionalProperties: false
                properties:
                  cursor_dataset_revision:
                    type: string
                    minLength: 1
                  current_dataset_revision:
                    type: string
                    minLength: 1
    NoMatchingPricesError:
      allOf:
      - $ref: '#/components/schemas/ApiError'
      - type: object
        required:
        - error
        properties:
          error:
            type: object
            required:
            - code
            - details
            properties:
              code:
                type: string
                const: NO_MATCHING_PRICES
              details:
                type: object
                required:
                - applied_filters
                - dataset_revision
                additionalProperties: false
                properties:
                  applied_filters:
                    type: object
                    additionalProperties:
                      oneOf:
                      - type: string
                      - type: number
                  dataset_revision:
                    type: string
                    minLength: 1
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              minLength: 1
            message:
              type: string
              minLength: 1
            details: {}
            request_id:
              type: string
              minLength: 1
          required:
          - code
          - message
          - request_id
          additionalProperties: false
      required:
      - error
      additionalProperties: false
  securitySchemes:
    memberSession:
      type: apiKey
      in: cookie
      name: lmp_session
      description: A signed-in LMP Member or Pro session.
externalDocs:
  description: Citation and source-preservation guidance
  url: https://livestockmarketprices.com/citations