NJ Legislature API¶
Welcome to the NJ Legislature API documentation. This Python client library provides comprehensive access to the New Jersey Legislature's API endpoints.
Features¶
- 🚀 Complete API Coverage: Access all major endpoints of the NJ Legislature API
- 🔒 Type-Safe: Full Pydantic model validation and type hints throughout
- ⚡ Performance Optimized: Built-in rate limiting, caching, and connection pooling
- 🛠️ Developer Friendly: Intuitive API design with comprehensive documentation
- 📦 Minimal Dependencies: Built on modern Python standards (3.13+)
Quick Example¶
from njleg_api import APIClient
# Initialize the client
client = APIClient(api_key="your_api_key_here")
# Get bill information
bill_endpoint = client.get_bill_detail("S1234", session=2024)
bill_info = bill_endpoint.get_bill_description()
# Access legislator data
legislator_endpoint = client.get_legislator_data()
legislators = legislator_endpoint.get_all_legislators()
Navigation¶
- Installation Guide - Get started with installation
- Quick Start Guide - Learn the basics
- API Reference - Complete API documentation
- About - Project information
Requirements¶
- Python 3.13+
- Modern HTTP client (httpx)
- Pydantic for data validation