Python client for the Origifix data APIs, published on RapidAPI.
pip install origifix-apisYou need a RapidAPI key: subscribe to a product (free tier available) on its RapidAPI listing page, then copy your key from the "X-RapidAPI-Key" field on the Endpoints/test page.
from origifix import CPSCClient
client = CPSCClient(api_key="YOUR_RAPIDAPI_KEY")
result = client.get_recalls(recall_date_start="2026-01-01", limit=20)
print(result["count"], "recalls")
for r in result["recalls"]:
print(r["record_date"], r["product_description"])from origifix import GDACSClient
client = GDACSClient(api_key="YOUR_RAPIDAPI_KEY")
result = client.get_events(event_types="EQ", alert_level="Orange,Red")
print(result["count"], "active events")All network/HTTP errors raise origifix.OrigifixAPIError:
from origifix import CPSCClient, OrigifixAPIError
client = CPSCClient(api_key="YOUR_RAPIDAPI_KEY")
try:
client.get_recalls()
except OrigifixAPIError as e:
print("Request failed:", e, "status:", e.status_code)NASA FIRMS, SEC EDGAR, and OSHA clients are coming soon as they're published on RapidAPI. See api.origifix.com/docs for the full live API reference.
MIT