Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

origifix-apis

Python client for the Origifix data APIs, published on RapidAPI.

pip install origifix-apis

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

CPSC Product Recall Lookup

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"])

GDACS Global Disaster Alerts

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")

Error handling

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)

More products

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.

License

MIT

About

Python client for the Origifix data APIs (CPSC recalls, GDACS disaster alerts) on RapidAPI. pip install origifix-apis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages