Premium PyPI Packages Momentum
1 creditGET /api/premium/packages/pypi/momentumAdds a momentum layer over the free /api/packages/pypi/ai-trending. For each curated AI/ML package: momentum_ratio (last_week vs weekly avg over last_month), velocity_ratio (today annualized vs last_week pace), direction classification (accelerating/steady/decelerating/insufficient_data), notable-movers extraction, by-category counts.
When to use this endpoint
For agents tracking which AI/ML libraries are gaining or losing developer mindshare. Useful for "which package should we adopt" research and competitive package-trend monitoring.
Example response
{ "ok": true, "as_of": "2026-05-09", "movers": [{ "package": "anthropic", "momentum_ratio": 1.34, "direction": "accelerating" }], "by_category": { "frameworks": 12, "agents": 8 }, "billing": { "credits_charged": 1, "credits_remaining": 49 } }Code samples
Python SDK
tf._get("/premium/packages/pypi/momentum")TypeScript SDK
await fetch("https://tensorfeed.ai/api/premium/packages/pypi/momentum", { headers: { Authorization: "Bearer tf_live_..." } });FAQ
Why PyPI only?
npm momentum is deferred until snapshot history accumulates (npm downloads endpoint only returns last_week per call). PyPI has a richer historical surface via pypistats.org.