Real-time U.S. congressional stock trade disclosures from Senate EFD and House Clerk
Full LLM thinking from the 4-phase benchmark pipeline.
{
"service_type": "rest_api",
"base_url": "https://congressinvests.com",
"auth_method": "api_key_header",
"auth_config": {
"header": "X-Api-Key",
"prefix": null
},
"endpoints": [
{
"path": "/status",
"method": "GET",
"purpose": "Liveness check plus cache status and data freshness metadata",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/health",
"method": "GET",
"purpose": "Liveness check plus cache status and data freshness metadata",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/trades/recent",
"method": "GET",
"purpose": "The most recently filed trades across all tickers, sorted by filing date descending",
"params": {
"chamber": {
"type": "string",
"required": false
},
"limit": {
"type": "integer",
"required": false
},
"offset": {
"type": "integer",
"required": false
},
"days": {
"type": "integer",
"required": false
},
"x-api-key": {
"type": "string",
"required": false
}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/stories",
"method": "GET",
"purpose": "AI-generated one-sentence summaries of notable trade disclosures ($50k+ range floor); browsers get HTML feed page, pass ?format=json to force JSON",
"params": {
"ticker": {
"type": "string",
"required": false
},
"limit": {
"type": "integer",
"required": false
},
"offset": {
"type": "integer",
"required": false
},
"format": {
"type": "string",
"required": false
},
"x-api-key": {
"type": "string",
"required": false
}
},
"response_format": "json",
"is_primary": true
}
],
"pricing_model": {
"type": "tiered",
"details": {
"free": "100 req / day per IP, no auth required",
"pro": "50,000 req / day with X-Api-Key"
},
"free_tier": {
"requests": 100,
"period": "day"
},
"paid_tiers": [
{
"name": "Pro",
"requests": 50000,
"period": "day"
}
]
},
"rate_limits": {
"rpm": null,
"tpm": null,
"daily": null,
"concurrent": null
},
"capabilities": [
"congressional stock trade disclosures",
"senate and house trade data",
"real-time refresh every 6 hours",
"filter by chamber",
"filter by ticker",
"AI-generated trade summaries",
"data freshness metadata"
],
"agent_readiness": {
"supports_x402": false,
"supports_streaming": false,
"has_sandbox": false,
"sdks": [
"python",
"javascript"
],
"agent_auth_methods": [
"public",
"api_key"
]
}
}```json
{
"tests": [
{
"name": "status_liveness",
"endpoint": "/status",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON with status='ok' and data freshness metadata fields",
"metrics": ["latency", "status_code"],
"validation": {"field": "status", "type": "string", "equals": "ok"}
},
{
"name": "health_liveness",
"endpoint": "/health",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON with status='ok', ready flag and data freshness fields",
"metrics": ["latency", "status_code"],
"validation": {"field": "status", "type": "string", "equals": "ok"}
},
{
"name": "recent_trades_default",
"endpoint": "/trades/recent",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns recently filed trades sorted by filing date descending",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "trades", "type": "array", "min_length": 1}
},
{
"name": "recent_trades_filtered",
"endpoint": "/trades/recent",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns Senate trades within last 30 days, limited to 10",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "trades", "type": "array"}
},
{
"name": "recent_trades_bad_limit",
"endpoint": "/trades/recent?limit=99999",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 422,
"intent": "validation",
"expected_behavior": "Rejects limit exceeding max 500 with structured ValidationError detail",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "array", "min_length": 1}
},
{
"name": "trades_by_ticker",
"endpoint": "/trades/NVDA?format=json",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns all NVDA trades sorted by filing date descending",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "trades", "type": "array"}
},
{
"name": "trades_all_global",
"endpoint": "/trades?format=json&limit=50",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns global feed of cached trades sorted by transaction date descending",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "trades", "type": "array"}
},
{
"name": "stories_json",
"endpoint": "/stories?format=json&limit=10",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns AI-generated one-sentence trade summaries as JSON",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "stories", "type": "array"}
},
{
"name": "cache_status",
"endpoint": "/cache/status",
"method": "GET",
"headers": {"Accept": "application/json"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns cache readiness, age, and ticker counts per chamber",
"metrics": ["latency", "status_code"],
"validation": {"type": "object"}
},
{
"name": "top_stocks_json",
"endpoint": "/top-stocks?format=json&days=90",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns most bought/sold stocks ranked by member count over 90 days",
"metrics": ["latency", "accuracy", "status_code"]
},
{
"name": "pro_usage_endpoint",
"endpoint": "/admin/usage?days=7&format=json",
"method": "GET",
"headers": {"Accept": "application/json", "X-Api-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns traffic summary with per-day counts, top paths, and status-code spread for authenticated10/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| status_liveness | GET /status | 200 | 206ms |
| health_liveness | GET /health | 200 | 96ms |
| recent_trades_default | GET /trades/recent | 200 | 100ms |
| recent_trades_filtered | GET /trades/recent | 200 | 112ms |
| recent_trades_bad_limit | GET /trades/recent?limit=99999 | 200 | 108ms |
| trades_by_ticker | GET /trades/NVDA?format=json | 200 | 70ms |
| trades_all_global | GET /trades?format=json&limit=50 | 200 | 128ms |
| stories_json | GET /stories?format=json&limit=10 | 200 | 80ms |
| cache_status | GET /cache/status | 200 | 63ms |
| top_stocks_json | GET /top-stocks?format=json&days=90 | 200 | 102ms |
{"model": "deepseek", "data": {"overall": 72, "dimensions": {"token_efficiency": 8.0, "first_try_success": 7.0, "response_parseability": 9.5, "error_clarity": 6.0, "doc_quality": 5.0, "auth_simplicity": 10.0, "latency": 10.0, "consistency": 7.0}, "pricing_normalized": {"cost_per_1k_requests": null, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 100, "estimated_monthly_cost_light": null, "estimated_monthly_cost_heavy": null}, "issues": [{"severity": "high", "detail": "limit=99999 was silently clamped to 50 rather than rejected with 4xx. Silent clamping makes agent behavior unpredictable \u2014 agent can't tell its param was ignored.", "endpoint": "/trades/recent"}, {"severity": "medium", "detail": "limit parameter appears to be ignored/clamped inconsistently: /trades?limit=50 returned limit=200, and /stories?limit=10 returned limit=25. Returned limit does not echo the requested value, breaking pagination logic.", "endpoint": "/stories, /trades"}, {"severity": "medium", "detail": "Documented /status and /health return identical payloads; /cache/status is undocumented but returns same data \u2014 API surface is inconsistent with docs.", "endpoint": "/status, /health, /cache/status"}, {"severity": "medium", "detail": "/stories defaults to HTML for browsers and requires ?format=json \u2014 agents must discover this via docs. content negotiation is inconsistent across endpoints (e.g. /trades also needs ?format=json).", "endpoint": "/stories"}, {"severity": "low", "detail": "Undocumented /admin/usage, /top-stocks, /trades/{ticker}, /trades endpoints appear in tests but are not in the provided spec.", "endpoint": "/admin/usage, /top-stocks, /trades/{ticker}"}], "recommendations": ["Return 4xx with structured error for out-of-range limit/offset instead of silently clamping.", "Echo back the actual applied limit/offset in responses, and honor requested limit up to a documented max.", "Default to JSON content-type for all endpoints; require an explicit Accept header or query param only for HTML, not the reverse.", "Publish a complete OpenAPI spec covering /trades, /trades/{ticker}, /top-stocks, /admin/usage, /stories, /cache/status.", "Document max limits for limit/offset and include example error response shapes.", "Standardize error response envelope across all endpoints (currently dicts with 'detail' wrapping 'error')."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/congressinvests">
<img src="https://prowl.world/badge/congressinvests.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard