Livestock Market Prices Valuations API

The Valuations API from Livestock Market Prices — 1 operation(s) for valuations.

GitHub OpenAPI

Operations 1

POST /api/v1/valuations Calculate a Member account's gross-value estimate #

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-valuations-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-valuations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Livestock Market Prices public Valuations 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: Valuations
paths:
  /api/v1/valuations:
    post:
      operationId: estimateValuation
      summary: Calculate a Member account's gross-value estimate
      description: Uses one eligible USD-per-CWT liveweight observation for a signed-in Member or Pro account. Per-head and per-pair quotes remain public but are rejected for stateless valuation because they cannot be converted truthfully. Herd inputs are not persisted by this endpoint.
      security:
      - memberSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValuationRequest'
      responses:
        '200':
          description: Modeled gross value
          headers:
            Cache-Control:
              description: Anonymous valuation inputs and results are not cached
              schema:
                type: string
                const: private, no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValuationResponse'
        '400':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '408':
          description: The request body missed the total read deadline (REQUEST_BODY_TIMEOUT)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestBodyTimeoutError'
        '413':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '415':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Structured public API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: The member valuation rate boundary rejected the request (VALUATION_RATE_LIMITED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValuationRateLimitedError'
        '503':
          description: The data service or production member-valuation rate boundary is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValuationUnavailableError'
      tags:
      - Valuations
components:
  schemas:
    ValuationResponse:
      type: object
      required:
      - data
      - meta
      - citation
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ValuationResult'
        meta:
          $ref: '#/components/schemas/Meta'
        citation:
          $ref: '#/components/schemas/Citation'
    RequestBodyTimeoutError:
      allOf:
      - $ref: '#/components/schemas/ApiError'
      - type: object
        required:
        - error
        properties:
          error:
            type: object
            required:
            - code
            properties:
              code:
                type: string
                const: REQUEST_BODY_TIMEOUT
    ValuationResult:
      type: object
      properties:
        gross_value_usd:
          type: string
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
        price_usd_per_cwt:
          type: string
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
        animal_count:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        average_weight_lb:
          type: string
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
        approximation:
          type: boolean
        warnings:
          type: array
          items:
            type: string
        citation:
          type: object
          properties:
            publisher_name:
              type: string
              const: Livestock Market Prices
            canonical_url:
              type: string
              format: uri
            primary_sources:
              minItems: 1
              type: array
              items:
                type: object
                properties:
                  publisher_name:
                    type: string
                    minLength: 1
                  report_url:
                    type: string
                    format: uri
                required:
                - publisher_name
                - report_url
                additionalProperties: false
            sale_dates:
              minItems: 1
              type: array
              items:
                type: string
                pattern: ^\d{4}-\d{2}-\d{2}$
            retrieved_at:
              type: string
              format: date-time
              pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
            dataset_revision:
              type: string
              minLength: 1
            methodology_version:
              type: string
              minLength: 1
            statistic_type:
              type: string
              const: derived_valuation
            attribution_text:
              type: string
              minLength: 1
            rights_url:
              type: string
              format: uri
            use_requirements:
              type: object
              properties:
                source_attribution_required:
                  type: boolean
                  const: true
                source_link_required:
                  type: boolean
                  const: true
                claim_as_original_data_prohibited:
                  type: boolean
                  const: true
                terms_url:
                  type: string
                  const: https://livestockmarketprices.com/terms#terms-sources
              required:
              - source_attribution_required
              - source_link_required
              - claim_as_original_data_prohibited
              - terms_url
              additionalProperties: false
          required:
          - publisher_name
          - canonical_url
          - primary_sources
          - sale_dates
          - retrieved_at
          - dataset_revision
          - methodology_version
          - statistic_type
          - attribution_text
          - rights_url
          - use_requirements
          additionalProperties: false
      required:
      - gross_value_usd
      - price_usd_per_cwt
      - animal_count
      - average_weight_lb
      - approximation
      - warnings
      - citation
      additionalProperties: false
    Meta:
      type: object
      required:
      - api_version
      - dataset_revision
      - methodology_version
      - applied_filters
      - next_cursor
      - generated_at
      additionalProperties: false
      properties:
        api_version:
          type: string
          const: 1.3.0-alpha.1
        dataset_revision:
          type: string
        methodology_version:
          type: string
        applied_filters:
          type: object
          additionalProperties:
            oneOf:
            - type: string
            - type: number
        next_cursor:
          type:
          - string
          - 'null'
        generated_at:
          type: string
          format: date-time
    ValuationRequest:
      type: object
      properties:
        observation_id:
          type: string
          minLength: 1
          maxLength: 256
        animal_count:
          type: integer
          minimum: 1
          maximum: 10000
        average_weight_lb:
          type: string
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
        statistic:
          type: string
          enum:
          - reported_low
          - reported_high
          - reported_average
          - reported_weighted_average
          - range_midpoint
      required:
      - observation_id
      - animal_count
      - average_weight_lb
      - statistic
      additionalProperties: false
    ValuationUnavailableError:
      oneOf:
      - $ref: '#/components/schemas/ApiError'
      - $ref: '#/components/schemas/ValuationRateLimitUnavailableError'
    ValuationRateLimitedError:
      type: object
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
          - code
          - message
          additionalProperties: false
          properties:
            code:
              type: string
              const: VALUATION_RATE_LIMITED
            message:
              type: string
              minLength: 1
    Citation:
      type: object
      properties:
        publisher_name:
          type: string
          const: Livestock Market Prices
        canonical_url:
          type: string
          format: uri
        primary_sources:
          minItems: 1
          type: array
          items:
            type: object
            properties:
              publisher_name:
                type: string
                minLength: 1
              report_url:
                type: string
                format: uri
            required:
            - publisher_name
            - report_url
            additionalProperties: false
        sale_dates:
          minItems: 1
          type: array
          items:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
        retrieved_at:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
        dataset_revision:
          type: string
          minLength: 1
        methodology_version:
          type: string
          minLength: 1
        statistic_type:
          type: string
          enum:
          - reported_range
          - reported_average
          - reported_weighted_average
          - publisher_top_of_market_range
          - derived_midpoint
          - derived_valuation
        attribution_text:
          type: string
          minLength: 1
        rights_url:
          type: string
          format: uri
        use_requirements:
          type: object
          properties:
            source_attribution_required:
              type: boolean
              const: true
            source_link_required:
              type: boolean
              const: true
            claim_as_original_data_prohibited:
              type: boolean
              const: true
            terms_url:
              type: string
              const: https://livestockmarketprices.com/terms#terms-sources
          required:
          - source_attribution_required
          - source_link_required
          - claim_as_original_data_prohibited
          - terms_url
          additionalProperties: false
      required:
      - publisher_name
      - canonical_url
      - primary_sources
      - sale_dates
      - retrieved_at
      - dataset_revision
      - methodology_version
      - statistic_type
      - attribution_text
      - rights_url
      - use_requirements
      additionalProperties: false
    ValuationRateLimitUnavailableError:
      type: object
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
          - code
          - message
          additionalProperties: false
          properties:
            code:
              type: string
              const: VALUATION_RATE_LIMIT_UNAVAILABLE
            message:
              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