Polaris SDKs
Official Python and TypeScript SDKs for The Polaris Report API.
SDKs
| Language | Package | Install |
|---|---|---|
| Python | polaris-news |
pip install polaris-news |
| TypeScript | polaris-news-api |
npm install polaris-news-api |
| Cursor | polaris-news |
Add to Cursor |
Quick Start
Authenticate via CLI
pip install polaris-news # or: npm install polaris-news-api
polaris login # opens GitHub โ API key saved to ~/.polaris/credentials
Python
from polaris_news import PolarisClient
client = PolarisClient() # auto-reads saved credentials
feed = client.feed(category="technology", limit=10)
for brief in feed.briefs:
print(brief.headline)
TypeScript
import { PolarisClient } from "polaris-news-api";
const client = new PolarisClient(); // auto-reads saved credentials
const feed = await client.feed({ category: "technology", limit: 10 });
feed.briefs.forEach((brief) => console.log(brief.headline));
API Key Resolution
Both SDKs resolve the API key in this order:
- Explicit parameter (
api_key=/apiKey:) POLARIS_API_KEYenvironment variable~/.polaris/credentialsfile (written bypolaris login)
Documentation
Full API documentation: https://thepolarisreport.com/docs
License
MIT