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

plans.json and price-history.json require an X-API-Key request header; missing or invalid keys get 401. meta.json is a public metadata endpoint and does not require a key.

curl -H "X-API-Key: cpk_your_key" \
  https://www.creditsplan.com/api/v1/plans.json

curl https://www.creditsplan.com/api/v1/meta.json   # public, no key needed
  • 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.
pricing_scope / pricing_type
— pricing scope (individual / team / enterprise / custom); pricing model, such as subscription, per_seat, usage_based, custom or free.
price_source
— price source: official / estimated.
included_calls / token_limit / credits_limit
— quota descriptions recorded verbatim from official pages, never inferred.
last_verified_at / source_url
— latest manual verification date and the official source page.