Skip to main content

yieldterminal

Python client for the YieldTerminal Pro Earnings Data API.

The API returns quarterly revenue, net income and diluted EPS read from each company's own results filing (Form 8-K Item 2.02, or Form 6-K for a foreign filer), with a link to that filing on SEC.gov on every figure. A figure is published only when the release's financial table agrees with a second source; otherwise it is withheld, and a withheld figure is left out of the response, never sent as zero. There are no analyst estimates, no forecasts, and no language model in the numbers.

Standard library only. Python 3.8 or later. Educational data, not investment advice.

Quick start, no key

import yieldterminal
co = yieldterminal.sample("NVDA")  # live sample: NVDA, WMT, TJX, HD or TGT
latest = co["results"][0]
print(co["company"], latest["filed"], latest.get("revenue_text") or "withheld")
print(latest["source_url"])  # the filing on SEC.gov

yieldterminal.sample(endpoint="results") returns the first three results of the latest filing day, and yieldterminal.status() returns how fresh the data is. Neither needs a key or counts against one.

Install

pip install yieldterminal
pip install "yieldterminal[pandas]"   # adds the DataFrame helpers

With a key

Get a free key at https://yieldterminalpro.com/developers, then pass it or set it in the environment:

export YIELDTERMINAL_API_KEY=ytp_...
from yieldterminal import Client

client = Client()                      # or Client(api_key="ytp_...")

day = client.results("2026-11-25")     # every published result filed that day
for r in day["results"]:
    print(r["ticker"], r.get("revenue_text") or "withheld", r["source_url"])

aapl = client.company("AAPL")          # releases + up to 20 quarters of history as first reported
print(aapl["latest_filed"], aapl["quarterly_history"][-1])

print(client.last_rate_limit)          # RateLimit(limit=100, remaining=98)

The key is sent in the x-api-key header. The client never puts it in the address.

Methods

Method Endpoint Notes
sample(ticker="NVDA", endpoint=None) data-sample No key. Company sample for NVDA, WMT, TJX, HD, TGT; or endpoint="results" / "outlook"
status() data-status No key. Latest filing day and last update time
results(date=None) results Every published result filed that day; default the latest filing day
company(ticker) company Results releases plus up to 20 quarters of history as first reported
outlook(date=None, ticker=None) outlook Outlook changes, each next to the same figure in the previous release
levels(ticker=None, date=None) levels Dated chart levels and tracked outcomes
capex(ticker=None) capex The AI spenders capex board
scorecard(season=None) scorecard Reported figure vs the company's own outlook, e.g. "2026-fall"
holders_13f(ticker) 13f Tracked managers' latest 13F share counts vs the quarter before
capital(ticker=None, tickers=None, since=None, after=None) capital Buybacks, dividends, dilution per quarter
risk(ticker=None, tickers=None, since=None, after=None) risk 10-K risk-factor headings added, removed, reworded
events(ticker=None, tickers=None, date=None, start=None, end=None, item=None) events 8-K Items 5.02, 2.03, 2.04; start/end map to from/to
updates(since), iter_updates(since) updates Pro plan. Results published, corrected or withdrawn since a UTC time
archive(after=None), iter_archive(after=None) archive Pro plan. Every published result, 1,000 per call

Each method returns the decoded JSON as a dict. The full field list is in the OpenAPI 3.1 spec and the plain-text reference.

Reading figures

  • Use .get(): a withheld figure's *_value is absent and its *_text is null.
  • *_matches_10q is True when the company's later Form 10-Q carries the same figure. False means not checked yet or no 10-Q exists (a fiscal fourth quarter is in the 10-K), never that the 10-Q disagrees: a figure the 10-Q contradicts is withheld.
  • In company(), results holds the figures read from each results release and quarterly_history holds the company's XBRL figures from its 10-Q and 10-K filings as first reported. They are separate readings and are never merged. In the history, d: 1 marks a fourth quarter derived as the full year less the first three quarters, and r holds a later restated value.

Errors

Every error is a subclass of yieldterminal.YieldTerminalError, with .status, .code (the API's machine-readable code, when it sends one) and .body.

Status Exception Typical cause
none MissingAPIKeyError No key passed and YIELDTERMINAL_API_KEY not set (raised before any request)
400 BadRequestError Malformed date, ticker, season, or a sample ticker outside the five
401 AuthenticationError Missing, malformed, unknown or replaced key
402 PaymentRequiredError Paid subscription not active
403 PermissionDeniedError The plan does not cover the request (free_date, free_season, free_ticker, Pro-only endpoint)
404 NotFoundError No company page, no row, season not found
429 RateLimitError Daily limit used up; resets at 00:00 UTC
5xx ServerError Server error
none ConnectionFailedError No HTTP response (network, TLS, timeout)
from yieldterminal import Client, PermissionDeniedError

try:
    Client().capital("ORCL")
except PermissionDeniedError as e:
    print(e.code, e)   # free_ticker: a free key covers the sandbox tickers for this endpoint

pandas

from yieldterminal import Client
from yieldterminal.frames import results_frame, history_frame

client = Client()
df = results_frame(client.results("2026-11-25"))     # withheld figures are NaN
hist = history_frame(client.company("MSFT"))         # value, unit, derived, restated per figure

Plans

As listed on https://yieldterminalpro.com/developers on 2026-11-27:

  • Free key: 100 calls a day, personal non-commercial use with attribution. Results and outlook rows filed in the last 30 days, with full history for AAPL, MSFT, NVDA, AMZN, GOOG, META, TSLA, JPM, WMT and KO; the company endpoint with no date limit; the full capex board; the latest scorecard season.
  • Developer: US$29 a month (or US$290 a year), 1,000 calls a day, personal and internal use.
  • Pro: US$99 a month (or US$990 a year), 20,000 calls a day, the updates and archive endpoints, and commercial display inside your own product with attribution.

Reselling the data, passing the raw dataset on, or training a model on it is not included in any plan. Write to yieldterminalpro@gmail.com about a separate licence.

Other ways in

Licence

The client code is MIT licensed (see LICENSE). The data the API returns is covered by the plan terms above, not by the MIT licence. Attribute the data to YieldTerminal Pro (yieldterminalpro.com) when you show it.

Questions or a figure you think is wrong: yieldterminalpro@gmail.com

Metadata

Release files for yieldterminal 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yieldterminal 0.1.0
File Size Uploaded Provenance Actions
yieldterminal-0.1.0.tar.gz 17.9 kB With provenance Details for yieldterminal-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yieldterminal 0.1.0
File Interpreter ABI Platform Actions
yieldterminal-0.1.0-py3-none-any.whl Python 3 none any Details for yieldterminal-0.1.0-py3-none-any.whl

Total release size: 32.9 kB

Release files / yieldterminal-0.1.0.tar.gz

Download URL yieldterminal-0.1.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
05d745fa3adb69d726e8f7969bb79bc3914b8946c3a57911f2f6d3663d978a21
BLAKE2b-256 checksum
How to use checksums
6d312c31ef69cb53dd5d1ce326970cd7368e2a27e6e4ba7e1bb0453380fb725c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / yieldterminal-0.1.0-py3-none-any.whl

Download URL yieldterminal-0.1.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceab6195110d938ea3f4d45012f3aaaea0a9edae2b860ca406c2e78f3e8f8786
BLAKE2b-256 checksum
How to use checksums
c49d32eebd6366451b965d3351bdf35b4d08e5a4fbf516881d154f7043e2608a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for yieldterminal 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yieldterminal-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page