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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/lucasandersen-ai:lucasandersen-ai-basis-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
openapi: 3.2.0
info:
title: MLP Tax Computation Basis API
version: 1.0.0
description: IRS-cited tax computation for Master Limited Partnership (MLP) positions. Compute basis projections, estate planning analysis, K-1 basis tracking, sell-vs-hold comparisons, and ETF wrapper vs direct MLP analysis. Every response includes specific IRC section citations and source attribution.
contact:
name: lucasandersen.ai
url: https://lucasandersen.ai/api
license:
name: Proprietary — commercial use requires paid tier
servers:
- url: https://api.lucasandersen.ai
description: Production
tags:
- name: basis
description: K-1 partner basis worksheet
paths:
/v1/basis/compute:
post:
tags:
- basis
summary: Single-year partner basis from K-1 data (IRS worksheet Lines 1-14)
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BasisComputeInput'
responses:
'200':
$ref: '#/components/responses/Success'
'400':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimitExceeded'
operationId: postV1BasisCompute
x-operation-id-source: derived
/v1/basis/multi-year:
post:
tags:
- basis
summary: Running basis across multiple years with broker-gap analysis
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BasisMultiYearInput'
responses:
'200':
description: Successful computation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/BasisMultiYearData'
headers:
X-Request-ID:
schema:
type: string
X-Engine-Version:
schema:
type: string
X-Cache:
schema:
type: string
enum:
- HIT
- MISS
- BYPASS
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: string
format: date-time
'400':
$ref: '#/components/responses/ValidationError'
'429':
$ref: '#/components/responses/RateLimitExceeded'
operationId: postV1BasisMultiYear
x-operation-id-source: derived
components:
responses:
ValidationError:
description: Validation failed
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ErrorEnvelope'
- type: object
properties:
details:
type: array
items:
$ref: '#/components/schemas/ValidationIssue'
RateLimitExceeded:
description: Rate limit exceeded for this key/IP
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Success:
description: Successful computation
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessEnvelope'
headers:
X-Request-ID:
schema:
type: string
X-Engine-Version:
schema:
type: string
X-Cache:
schema:
type: string
enum:
- HIT
- MISS
- BYPASS
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: string
format: date-time
schemas:
SuccessEnvelope:
type: object
required:
- success
- data
- citations
- computation_id
- engine_version
- timestamp
- attribution
properties:
success:
type: boolean
enum:
- true
data:
type: object
description: Endpoint-specific result
citations:
type: array
items:
type: string
description: IRC sections and IRS publications used in the computation
computation_id:
type: string
description: Unique per-call ID for audit trail
engine_version:
type: string
timestamp:
type: string
format: date-time
attribution:
$ref: '#/components/schemas/Attribution'
BasisMultiYearInput:
type: object
required:
- ticker
- units
- purchasePrice
- k1Years
properties:
ticker:
$ref: '#/components/schemas/Ticker'
units:
type: number
purchasePrice:
type: number
purchaseYear:
type: integer
default: 2015
taxBracket:
type: number
default: 0.32
k1Years:
type: array
minItems: 1
maxItems: 50
items:
allOf:
- $ref: '#/components/schemas/K1BoxData'
- type: object
required:
- year
properties:
year:
type: integer
minimum: 1900
maximum: 2100
ValidationIssue:
type: object
required:
- field
- issue
properties:
field:
type: string
issue:
type: string
received:
description: Value received that failed validation
BasisComputeInput:
type: object
required:
- ticker
- units
- priorBasis
- k1Data
properties:
ticker:
$ref: '#/components/schemas/Ticker'
units:
type: number
priorBasis:
type: number
minimum: 0
k1Data:
$ref: '#/components/schemas/K1BoxData'
taxBracket:
type: number
default: 0.32
ErrorEnvelope:
type: object
required:
- success
- error
properties:
success:
type: boolean
enum:
- false
error:
type: string
details:
description: Optional error-specific details
documentation:
type: string
format: uri
supported_tickers:
type: array
items:
type: string
limit:
type: integer
remaining:
type: integer
resetAt:
type: string
format: date-time
upgrade:
type: string
format: uri
Ticker:
type: string
enum:
- EPD
- ET
- MPLX
- WES
- PAA
- NRP
- USAC
- SUN
description: Supported MLP ticker symbol
Attribution:
type: object
required:
- source
- methodology
- url
properties:
source:
type: string
methodology:
type: string
url:
type: string
format: uri
K1BoxData:
type: object
required:
- box1
- box19a
properties:
box1:
type: number
description: Ordinary business income (loss)
box2:
type: number
description: Net rental income
box4a:
type: number
description: Guaranteed payments
box5:
type: number
description: Interest income
box6a:
type: number
description: Ordinary dividends
box11:
type: number
description: §179 / other deductions
box13w:
type: number
description: §199A QBI amount
box19a:
type: number
description: Cash distributions
box19b:
type: number
description: Property distributions
liabilityIncrease:
type: number
description: §752(a) increase
liabilityDecrease:
type: number
description: §752(b) decrease
BasisMultiYearData:
type: object
description: Data of /v1/basis/multi-year (fields named in OBS-158; other fields as returned).
properties:
marketValueLessBasis:
type: number
description: A market-value proxy less the current adjusted basis, floored at $0. Not a tax.
stepUpValueIfDeathToday:
type: number
deprecated: true
x-sunset: '2027-01-31'
description: 'Deprecated: the same value as marketValueLessBasis, under an earlier name; it will be removed on 2027-01-31. It is not an amount eliminated or saved at death. It is not a §1014 basis figure.'
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key as Bearer token. Unauthenticated requests permitted at lower rate limit (10/day per IP).
x-engine-version: 0.1.2