{"_id":"@bargo-ai/congress","name":"@bargo-ai/congress","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bargo-ai/congress","version":"0.1.0","description":"Official JavaScript and TypeScript client for the Bargo Congress Trades API: https://www.bargo.ai/free-apis/congress","type":"module","main":"./index.js","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"test":"node --test test/*.test.mjs","pack:check":"npm pack --dry-run"},"sideEffects":false,"engines":{"node":">=18"},"keywords":["bargo","congress","stocks","trades","stock-act","api"],"homepage":"https://www.bargo.ai/free-apis/congress","repository":{"type":"git","url":"git+https://github.com/bargo-ai/bargo-free-api-packages.git","directory":"packages/npm"},"license":"MIT","gitHead":"8bb1e9fdc3967244d08432b68a7b18d4e45bbf20","_id":"@bargo-ai/congress@0.1.0","bugs":{"url":"https://github.com/bargo-ai/bargo-free-api-packages/issues"},"_nodeVersion":"22.16.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-nkpGJhcnEPUxqwY14qq5OQdEjs/i2qN4nY4aHn4RwQXmEOkBjp2009waWipFvhzLtXP3e/0aqOZ9gynm9rGZ5g==","shasum":"2ad1847c145d88f7903ef6eed5fa6c10ba6c4d4c","tarball":"https://registry.npmjs.org/@bargo-ai/congress/-/congress-0.1.0.tgz","fileCount":5,"unpackedSize":9652,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICY6z/z2u6n4jNEmexZ+ZY5tkYjZNPFWieiIyI9naPK0AiABQv2hrGT0a6r1WMGLe8aFG8wbJ34/GjQaPli6dI9HeQ=="}]},"_npmUser":{"name":"bargo","email":"support@bargo.ai"},"directories":{},"maintainers":[{"name":"bargo","email":"support@bargo.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/congress_0.1.0_1785390784112_0.6826625967975242"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-30T05:53:03.957Z","0.1.0":"2026-07-30T05:53:04.264Z","modified":"2026-07-30T05:53:04.575Z"},"maintainers":[{"name":"bargo","email":"support@bargo.ai"}],"description":"Official JavaScript and TypeScript client for the Bargo Congress Trades API: https://www.bargo.ai/free-apis/congress","homepage":"https://www.bargo.ai/free-apis/congress","keywords":["bargo","congress","stocks","trades","stock-act","api"],"repository":{"type":"git","url":"git+https://github.com/bargo-ai/bargo-free-api-packages.git","directory":"packages/npm"},"bugs":{"url":"https://github.com/bargo-ai/bargo-free-api-packages/issues"},"license":"MIT","readme":"# @bargo-ai/congress\n\nOfficial JavaScript client for the Bargo Congress Trades API.\n\nAPI docs: https://www.bargo.ai/free-apis/congress\n\n## Install\n\n```bash\nnpm install @bargo-ai/congress\n```\n\n## Usage\n\n```js\nimport { BargoCongressClient } from \"@bargo-ai/congress\";\n\nconst client = new BargoCongressClient({\n  apiKey: process.env.BARGO_API_KEY, // optional\n});\n\nconst nvda = await client.tickerTrades(\"NVDA\", { limit: 2 });\nconsole.log(nvda.trades);\n```\n\nKeyless usage also works:\n\n```js\nimport { createClient } from \"@bargo-ai/congress\";\n\nconst client = createClient();\nconst stats = await client.stats();\nconsole.log(stats);\n```\n\n## Methods\n\n- `client.health()`\n- `client.stats()`\n- `client.members({ limit })`\n- `client.member(slug, { limit })`\n- `client.trades({ ticker, member, chamber, type, from, to, limit, page })`\n- `client.tickerTrades(ticker, { from, to, limit, page })`\n\nAliases are also available: `getTrades`, `getTickerTrades`, `getMembers`, `getMember`, `getStats`, and `getHealth`.\n\n## Limits\n\n- Keyless: 30 requests/day and 100 rows/day per IP\n- Free API key: 100 requests/day and 1,000 rows/day\n- Page size: up to 100 rows keyless, up to 250 rows with a key\n\nQuotas are reported per response in the `X-RateLimit-*` headers. Treat those as\nauthoritative.\n\n## Attribution\n\nIf you display Bargo Congress API data publicly, include visible attribution linking to Bargo.\n\n","readmeFilename":"README.md","_rev":"1-1eb7d8d5857b944a4a41d21cb89dbc54"}