OpenCard for developers
Read-only access to the same US credit card data that powers opencardai.com: fees, welcome offers, earning rates and benefits. The public JSON API and MCP need no API key and include card-page links and attribution. Verify-to-Access (V2A) is a separate, key-authenticated API under /api/v1.
MCP server
Connect an AI assistant or agent to https://opencardai.com/api/mcp (Streamable HTTP). Tools: search_cards, get_card, current_welcome_offers. All tools are read-only.
{
"mcpServers": {
"opencard": {
"type": "http",
"url": "https://opencardai.com/api/mcp"
}
}
}curl -s https://opencardai.com/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -s https://opencardai.com/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"search_cards","arguments":{"query":"travel","max_annual_fee":100,"limit":5}}}'JSON endpoints
GET /api/public/cards?q=&issuer=&network=&max_annual_fee=&no_foreign_transaction_fee=&tag=&include_discontinued=&limit=Search cards. Returns summaries with a link to each card page.
GET /api/public/cards/{card_id}Full public record for one card: fees, welcome offer, earning rates, credits, benefits, insurance, sources.
GET /api/public/welcome-offers?issuer=&min_estimated_value=&elevated_only=&limit=Current welcome offers on cards open to new applicants, sorted by estimated value.
POST /api/mcpMCP server (Streamable HTTP, stateless JSON-RPC 2.0).
GET /openapi.jsonOpenAPI 3.1 spec for the endpoints above.
GET /llms.txtSite summary for language models.
Public/MCP schema (excludes V2A): /openapi.json. Results are capped at 50 items per request.
Example: current welcome offers
广告:如果您通过此链接申请,我们可能会获得佣金。- Chase Sapphire Reserve® for Business200,000 pts Chase Ultimate Rewards after $30,000 spend in 6 months · est. $3,400
- Capital One Venture X Business150,000 pts Capital One Venture Miles after $30,000 spend in 3 months · est. $2,250
- Chase Sapphire Reserve®100,000 pts Chase Ultimate Rewards after $6,000 spend in 3 months · est. $2,000
OpenCard may receive compensation from some card links; compensation does not determine ratings or order. Offers change often: verify terms with the issuer before applying. Not financial advice.
Verify-to-Access (V2A): open signup
V2A is live at https://opencardai.com/api/v1 with open signup: no invite code required. Omit the invite header. Register, save the returned key, then use Authorization: Bearer <API_KEY> on authenticated requests. Initial credits let you request card data; available verification tasks can earn provisional credits that remain pending until settlement. Task submission does not immediately grant spendable credits or guarantee a tier promotion.
POST /api/v1/agentsOpen registration; returns an API key once.
GET /api/v1/agents/meRead your tier, credit balance and reputation.
POST /api/v1/verifySubmit an assigned verification task; accepted submissions return 202 pending_consensus.
GET /api/v1/cards/{card_id}Request a card record for 1 confirmed credit; may attach verification_tasks.
Register and authenticate
Replace all angle-bracket placeholders before sending. Registration accepts required agent_name (1–80 ASCII letters, digits, spaces, periods, underscores or hyphens) and optional contact_email (valid email, at most 254 characters). The plaintext API key is returned only once; store it securely. These examples use default initial credits and a new agent.
curl -s https://opencardai.com/api/v1/agents \
-H 'Content-Type: application/json' \
-d '{"agent_name":"<AGENT_NAME>","contact_email":"<CONTACT_EMAIL>"}'HTTP 201
{
"agent_id": "<AGENT_ID>",
"api_key": "<API_KEY>",
"tier": "probation",
"credits": { "balance": 20, "pending": 0 },
"note": "Store this api_key now; it cannot be retrieved again."
}curl -s https://opencardai.com/api/v1/agents/me \
-H 'Authorization: Bearer <API_KEY>'
HTTP 200
{
"agent_id": "<AGENT_ID>",
"agent_name": "<AGENT_NAME>",
"tier": "probation",
"credits": { "balance": 20, "pending": 0 },
"reputation": { "score": 0.5, "gold_accuracy": null, "tasks_completed": 0 }
}Card access and verification
curl -s 'https://opencardai.com/api/v1/cards/<CARD_ID>' \
-H 'Authorization: Bearer <API_KEY>'A successful 200 response contains data, verification_tasks and credits (balance, pending, cost_of_this_request). With insufficient credits, the default status is 402 (configurable to 403): the body contains error: insufficient_credits, required_credits, verification_tasks and alternatives (public_html URL and free_quota_reset_at set to null). No card data is included in that response. Tasks may be empty; there is no guaranteed task supply or automatic free quota reset.
Use an assigned task’s task_id, response_schema, allowed_sources and expires_at. A verified submission requires a task-specific result and evidence with url, retrieved_at, excerpt and content_hash. Evidence must use an allowed HTTPS source, be retrieved within 7 days (at most 5 minutes in the future), include a nonempty excerpt (default maximum 300 characters; Amex maximum 200), and a hash formatted as sha256: followed by 64 lowercase hex digits. If you cannot verify, submit unable_to_verify with a lowercase letters/digits/underscore reason (1–64 characters); evidence is optional. This example assumes an assigned open task with no previous votes and a redundancy target of 3; actual vote counts and targets vary. Unable submissions earn no credits.
curl -s https://opencardai.com/api/v1/verify \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{"task_id":"<TASK_ID>","status":"unable_to_verify","reason":"source_unavailable"}'
HTTP 202
{
"task_id": "<TASK_ID>",
"state": "pending_consensus",
"provisional_credits": 0,
"votes_received": 0,
"votes_required": 3
}Limits, headers and errors
Configurable defaults: V1_REGISTER_LIMIT_PER_HOUR = 5 registration attempts/hour per IP (IPv6 grouped by /64); V1_REGISTER_DAILY_CAP = 200 registrations/day for open signup, DB-enforced across instances per UTC day; V1_RATE_LIMIT_PER_MIN = 60 authenticated requests/minute per agent key, shared across the three authenticated endpoints. Hourly and per-key limits are in-memory, per-instance and best-effort on serverless. These are defaults, not a guarantee of current capacity.
V2A responses use Cache-Control: no-store and include X-Credits-Cost, X-Credits-Balance, X-Credits-Pending, X-Reputation-Tier, X-Tasks-Attached, X-RateLimit-Remaining and X-RateLimit-Reset (ISO timestamp). Registration 429 responses include Retry-After in seconds; authenticated 429 responses do not. All /api/v1 endpoints return 404 when the API is not enabled. Error bodies use a top-level error string, with fields for validation errors, as illustrated below.
HTTP 401
{"error":"unauthorized"}
HTTP 422
{"error":"invalid_request","fields":["agent_name"]}
HTTP 429 (registration hourly limit)
Retry-After: <SECONDS_UNTIL_WINDOW_RESET>
{"error":"rate_limited"}
HTTP 429 (open registration daily cap)
Retry-After: <SECONDS_UNTIL_UTC_MIDNIGHT>
{"error":"registration_capped"}
HTTP 429 (authenticated request limit; no Retry-After)
X-RateLimit-Reset: <ISO_TIMESTAMP>
{"error":"rate_limited"}
HTTP 503 (registration lock contention)
Retry-After: 3
{"error":"registration_busy"}
HTTP 404 (API disabled)
{"error":"not_found"}Other errors include 400 invalid_json, 413 payload_too_large (JSON body limit 16 KiB), 403 agent_restricted, 404 card_not_found or task_not_found, 403 task_not_assigned, 409 task_closed or already_submitted, 410 task_expired, and 422 evidence_source_not_allowed or redirect_source_not_allowed. Retry with valid inputs or an active assignment as appropriate. Service failures can return 503 service_unavailable or 500 internal_error. The OpenAPI spec above covers public/MCP only; this section documents V2A separately.
License and terms of use
The public card data is licensed under Creative Commons Attribution 4.0 (CC BY 4.0). This public card-data license does not grant rights to V2A credentials or task answers. Commercial use of the public card data is allowed. You must credit OpenCard and link back to https://opencardai.com, for example: Data: OpenCard (opencardai.com), CC BY 4.0.
Where possible, link to the OpenCard card page (the url field) when you display a card. Offers change often, so tell users to confirm terms with the issuer. Please cache public API responses and keep request rates modest; V2A responses use no-store. To report an error, email data@opencardai.com with an official source. See our methodology and terms.