Skip to main content

invinite-data-api

Typed Python client for the Invinite Data API /v1 at api.data.invinite.com — companies, standardized and as-reported financials, metrics, SEC filings and documents, 13F holdings, insider trades, IPOs, earnings events and transcripts, guidance, investor documents and news. It is generated from the API's own OpenAPI document, so its request and response models match the reference.

The client is built on urllib3 + pydantic, needs Python 3.9+, and imports as invinite_data_api.

Install

pip install invinite-data-api

Authentication

Create a Configuration with your invd_ Data API key (or an Invinite Data OAuth access token) as the access token. The client sends it as an Authorization: Bearer <token> header on every request.

import os
import invinite_data_api

config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])

Quickstart

import os
import invinite_data_api
from invinite_data_api import CompaniesApi

config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])

with invinite_data_api.ApiClient(config) as client:
    api = CompaniesApi(client)
    page = api.list_companies(q="NVDA", limit=5)
    for company in page.data:
        print(company.ticker, company.name, company.cik)
    nvidia = api.get_company(company="NVDA")

Every API class is named after a docs group (CompaniesApi, FinancialsApi, FilingsApi, EventsApi, …) and every method after the operation's verb-first operationId in snake_case (list_filings, get_company). Arguments keep the wire's snake_case names; a range filter's dot becomes _ (filed_at_gte for filed_at.gte) and a Python keyword gets a var_ prefix. The company is always a filter: company takes a ticker or a CIK, or a comma list of up to 50. Date parameters take a datetime.date.

Lists, cursors and the pager

Every list answers ONE envelope: data, has_more, next_cursor, meta. Pass next_cursor back as cursor with the SAME filters (changed filters answer 400 cursor_mismatch) until has_more is false — or let the pager do it:

from invinite_data_api import FilingsApi
from invinite_data_api.pagination import iterate_items, iterate_pages

with invinite_data_api.ApiClient(config) as client:
    api = FilingsApi(client)
    for filing in iterate_items(api.list_filings, company="AAPL", form="10-K", limit=100):
        print(filing.accession, filing.form, filing.filed_at)
    for page in iterate_pages(api.list_filings, company="AAPL", max_pages=3):
        print(len(page.data), page.meta.coverage.state if page.meta.coverage else None)

Each page is one billed call. meta.coverage.state is pending / partial / complete: a scope the store is still filling answers 200 with data: [] and pending, never an error.

Reading credits

Each call reports what it cost in the X-Credits-Charged and X-Credits-Remaining response headers. Every method has a …_with_http_info twin that returns the headers beside the parsed value. response.headers is a plain dict keyed as the server sent the names, so look them up case-insensitively:

response = api.list_filings_with_http_info(company="AAPL")
headers = {name.lower(): value for name, value in response.headers.items()}
print(headers["x-credits-charged"])
print(headers["x-credits-remaining"])
page = response.data

Error handling

On a non-2xx response the client raises ApiException (with per-status subclasses). The body is an RFC 9457 application/problem+json document with a stable code (not_covered, invalid_parameter, cursor_mismatch, rate_limited, …), a detail (what happened), a remedy (what to do next, one sentence) and a request_id. as_api_error turns the exception into an InviniteApiError (an ApiException) with status, code, detail, remedy, param, errors, request_id, docs_url, retry_after_ms (the Retry-After header of a 429 / 503) and the parsed problem; it returns None for anything that is not a problem answer.

from invinite_data_api.exceptions import ApiException
from invinite_data_api.errors import as_api_error

try:
    api.list_filings(company="AAPL", limit=500)
except ApiException as exc:
    problem = as_api_error(exc)
    if problem is None:
        raise
    print(problem.detail)  # limit: must be <= 200.
    print(problem.remedy)  # Pass a limit of at most 200, or walk the pages with next_cursor.

Upgrading from 4.x

5.0.0 calls the same contract at its final paths: the API designed as v2 moved from /v2/... to /v1/... on 2026-11-11, when the old v1 API was deleted (/v2/* answers 404 since). Classes, methods, models, the list envelope, problem codes and parameters are unchanged; only the request paths changed, so upgrading is a version bump. 4.x clients stop working because their /v2 paths are gone.

Upgrading from 3.x

4.0.0 (and 5.0.0) are generated from the redesigned contract only; the 3.x classes are gone (the 3.x routes were deleted on 2026-11-11). Lists use the cursor envelope above instead of offset / next_url, errors are problem documents instead of {"error", "message"}, and booleans are real booleans.

3.x 4.0.0 / 5.0.0
CompanyApi CompaniesApi (list_companies, get_company, filers, people)
Standardized…Api, AsReported…Api (24 classes) FinancialsApi (6 operations: basis × plain / detailed / presentation, statement filter)
FinancialMetricsApi, SegmentedFinancialsApi MetricsApi
SECApi, InstitutionalOwnershipApi FilingsApi, DocumentsApi, HoldingsApi
InsiderTradesApi, IPOsApi, NewsApi same class names, /v1 operations
EarningsCallsApi EventsApi, TranscriptsApi, CallAnalyticsApi, GuidanceApi, InvestorDocumentsApi, WebhooksApi
MarketApi, MetadataApi ReferenceApi, CatalogApi
AccountApi AccountApi (get_me, get_my_usage)
HealthApi, StatusApi not in 4.0.0 / 5.0.0 (plain GET /health, /status)

Not in this client

  • The realtime stream at /v1/stream (WebSocket) — realtime docs.
  • Webhook signature verification — webhook docs. Managing webhook subscriptions IS in the client (WebhooksApi).

Regeneration

This client is a generated artifact; if a type looks wrong, the fix belongs in the API's contract, and regenerating re-derives every model. Releases are published on data-sdk-v* tags.

License

MIT

Metadata

Release files for invinite-data-api 5.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 invinite-data-api 5.1.0
File Size Uploaded Provenance Actions
invinite_data_api-5.1.0.tar.gz 318.2 kB Without provenance Details for invinite_data_api-5.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for invinite-data-api 5.1.0
File Interpreter ABI Platform Actions
invinite_data_api-5.1.0-py3-none-any.whl Python 3 none any Details for invinite_data_api-5.1.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / invinite_data_api-5.1.0.tar.gz

Download URL invinite_data_api-5.1.0.tar.gz
Size 318.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e461764b9efe3c7aa1dfe99a17e235a80f53ee17b795fd9488e680d26946483f
BLAKE2b-256 checksum
How to use checksums
9120f8d298b010918a1988ce3cafcd22670fe1f95aa93e6108fd9629cbeaa11e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / invinite_data_api-5.1.0-py3-none-any.whl

Download URL invinite_data_api-5.1.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3f744c90372646b9a211a7f5849f4e51ebbcf8a91a975f7828c378eaff50e54d
BLAKE2b-256 checksum
How to use checksums
d773cb7c20f4967bc655f870721a7396812b1a10c0a46545b03e3f1cb6d5b1fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for invinite-data-api 5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

5.1.0 This release

2 release files No 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