Unofficial Python wrapper for accessing IRS (Internal Revenue Service) public data and tax-related information programmatically. Provides convenience methods for retrieving tax forms, instructions, and other IRS public resources.
pip install requestsVerified import paths — ran on the pinned version, not inferred.
IRS public APIs are REST-only (no PyPI package). Endpoints vary by service. Always check Content-Type before calling .json() — some endpoints return HTML error pages on failure.
from irs_api import IRS
Implement retry logic and fallback handling in case upstream IRS data sources change.
Check the GitHub repository for any open issues or forks with more recent updates before relying on this in production.
Add delays between requests using time.sleep() and cache results locally to minimize repeated calls.
No resource links recorded.