Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

origifix_apis-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

origifix_apis-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file origifix_apis-0.1.0.tar.gz.

File metadata

  • Download URL: origifix_apis-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for origifix_apis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2eb478ac845ba5786b7237e214773168ab6ae6657d8248a373556d3ef9ae849b
MD5 79da2c5c92ac5929663748d4c82ef913
BLAKE2b-256 e2ae174b47aac1345d5203834897ab7a44159a344d4f844756824bb093fc1b1c

See more details on using hashes here.

File details

Details for the file origifix_apis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: origifix_apis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for origifix_apis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4208f3aff8544b283b90deb1ed9512f98c23afc236f6d9faefc7947b49c209dd
MD5 12708264b5f84228f599788faaff5d40
BLAKE2b-256 d0236fa0e938424658b95428a45c8b35c0dc8cc033b88f109de170c3574f8e20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page