Skip to main content

strata-jp

Zero-dependency Python SDK (Python >= 3.9, PEP 561 typed) for STRATA (https://strata.andque.com) and BODY (https://body.andque.com).

Built exclusively on the Python standard library (urllib.request) with an explicit User-Agent: strata-jp-python-sdk/1.0.0 header on every request so Cloudflare Browser Integrity Check never blocks headless agents, notebooks, Lambda functions, or CI pipelines.

Coverage

  • STRATA (StrataClient -> https://strata.andque.com)
    • Corporate & Financial KYB: Japan 13-digit Corporate Number JCN (5.7M entities, Mod-9 verified), NTA Qualified Invoice (T+13 digits), virtual-office density, GLEIF LEI, OFAC sanctions, FSA EDINET securities filings & Going Concern flags, Zengin Cutoff bank/biller direct-debit schedules, unified ministerial supplier qualifications (Grades A/B/C/D).
    • Regulatory, Industrial & Geospatial: MLIT Keishin (303k contractor financials & P/X1/X2/Y/Z/W scores), METI CSCL chemical substances, MHLW Standards (food additives, cosmetics, JP18, JSQI 2021, quasi-drugs, elderly care & CFA childcare JCNs), CAA FFC/FOSHU & OEM Plant Codes, IAB ads.txt JCN / sellers.json corporate publisher map (802 domains), ISA Specified Skilled Worker Registered Support Orgs (10,124 JCNs), JPO Patents & Trademarks, MLIT Reinfolib real estate transactions, Ekispert rail transit isochrones, e-Stat macro series, KAKENHI academic grants, NIED J-SHIS seismic hazards, district court foreclosures, CISA KEV advisories, ATS jobs, Google search trends, ANSR golf physics, and TCG collectibles pricing.
    • Protocols:
      • 1st-floor zero-auth $0.00 inventory probes (/gate/probe/{stream_id})
      • Zero-auth NLWeb /ask (JSON + Server-Sent Events ask_stream)
      • MCP Streamable HTTP JSON-RPC (list_mcp_tools, call_mcp_tool across 18 canonical tools)
      • 2nd-floor full records via X-MCP-API-Key (api_key=...) or HTTP 402 x402 (query_x402 + x402_signer callback)
  • BODY (BodyClient -> https://body.andque.com)
    • 100% free, zero-auth read-only clinical & regulatory X-Ray across NIH DSLD 214,780 US dietary supplement labels, CAA FFC/FOSHU & OEM Plant Codes, Japanese OTC active-ingredient generic equivalents, PubMed evidence tiers, and FDA/MHLW safety alerts.

Installation

pip install strata-jp

Or with uv:

uv add strata-jp

Quick Start

1. Zero-Auth Japan Corporate Number (JCN) Probe & NLWeb /ask

from strata_jp import StrataClient

strata = StrataClient()

# $0.00 zero-auth 1st-floor probe (JIS X 0401 prefCode + JIS X 0402 Mod-11 cityCode + TAPP seal)
probe = strata.probe_corporate_registry("6010001269339")
print(probe["recordExists"], probe["prefCode"], probe["cityCode"], probe["sealStatus"])

# Natural-language / JCN catalog & live sample resolution
answer = strata.ask("6010001269339 invoice status and corporate profile")
print(answer["resolution"]["extractedJcn"])

# Server-Sent Events (SSE) streaming
for frame in strata.ask_stream("EDINET going concern amendments"):
    print(frame["event"], frame["data"])

2. MCP JSON-RPC Discovery & Paid 2nd-Floor Queries

from strata_jp import StrataClient

# Zero-auth MCP tool discovery (18 canonical tools)
strata = StrataClient()
tools = strata.list_mcp_tools()
print([t["name"] for t in tools])

# Paid 2nd-floor query with an MCP API Key
authed = StrataClient(api_key="YOUR_MCP_API_KEY")
filings = authed.query_securities_filings(edinet_code="E02144", limit=5)
print(filings["returnedCount"], filings["items"])

3. BODY Supplement & OTC X-Ray (100% Free, Zero Auth)

from strata_jp import BodyClient

body = BodyClient()

# Search NIH DSLD 214,780 US supplement labels
labels = body.search_dsld_supplements("Magnesium Glycinate", limit=3)
print(labels)

# Trace CAA FFC/FOSHU & OEM Plant Codes in Japan
oem = body.trace_caa_supplement_oem_plant("AFC")
print(oem)

Metadata

Release files for strata-jp 1.0.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 strata-jp 1.0.0
File Size Uploaded Provenance Actions
strata_jp-1.0.0.tar.gz 19.2 kB Without provenance Details for strata_jp-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for strata-jp 1.0.0
File Interpreter ABI Platform Actions
strata_jp-1.0.0-py3-none-any.whl Python 3 none any Details for strata_jp-1.0.0-py3-none-any.whl

Total release size: 39.0 kB

Release files / strata_jp-1.0.0.tar.gz

Download URL strata_jp-1.0.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
93e56086e542f0e071edaee997e914c03ac49a70a49936882620b3c97bb40898
BLAKE2b-256 checksum
How to use checksums
62d8456ead7332750e5d1efa974897f5ca9bc4d548520d5f78288af43838cbd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / strata_jp-1.0.0-py3-none-any.whl

Download URL strata_jp-1.0.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5037f46d703fee3ea49b0f75e340541d72ff75e74d658158fde8b93633fc80cb
BLAKE2b-256 checksum
How to use checksums
0c066b5f99083e25b02e2cc3d974e4d1470958570138fa0e7d72fbec628ccece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for strata-jp 1.0.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

1.0.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