DEVELOPERS

Developer API

A stable-contract JSON API for CreditsPlan's manually verified AI Coding plan prices, quotas and price history. Same data source as the site, with an official source link and a last-verified date on every record.

Endpoints

GET /api/v1/plans.json
All verified plans: prices (monthly / quarterly / yearly / first-month), currency, quotas, benefits, refund policy, purchase status, official source and verified date. Bilingual (English + Chinese) fields included.
GET /api/v1/price-history.json
Per-plan monthly price history (date + price points), suited for price-trend charts and change monitoring.
GET /api/v1/meta.json
Dataset metadata: schema version, generation time and record counts.

Authentication & usage

All endpoints require an X-API-Key request header; missing or invalid keys get 401.

curl -H "X-API-Key: cpk_your_key" \
  https://www.creditsplan.com/api/v1/plans.json
  • Responses are UTF-8 JSON with top-level schema_version and generated_at.
  • Contract promise: v1 fields are additive only — never renamed or removed; breaking changes ship as a new v2.
  • Rate limit: 5 requests/second per key; responses cached for 5 minutes. Data refreshes with each site release (typically every business day).

Field reference (plans.json highlights)

plan_id
— stable plan identifier (brand slug + plan slug), unchanged across releases.
monthly_price / quarterly_price / yearly_price
— list prices per billing cycle in monthly_currency; null means not publicly disclosed.
included_calls / token_limit / credits_limit
— quota descriptions recorded verbatim from official pages, never inferred.
last_verified_at / data_status / source_url
— latest manual verification date, verification status and the official source page.