Getting Started

Sign up for free to get your API key, then start making requests:

curl -H "Authorization: Bearer ckb_YOUR_KEY" \
  "https://codekb.hrmszero.freemyip.com/api/v2/context?libraryId=/pallets/quart&query=websocket&type=json"

No key yet? Create a free account to get 500 requests/month.

Get Context

GET /api/v2/context

ParameterRequiredDescription
libraryIdYesLibrary ID (e.g., /pallets/quart)
queryYesWhat you're looking for
typeNojson (default) or txt
limitNoMax results (default: 10)
curl "https://codekb.hrmszero.freemyip.com/api/v2/context?libraryId=/sqlalchemy/sqlalchemy&query=session%20execute&type=json"
{
  "codeSnippets": [
    {
      "codeTitle": "Session.Session.execute",
      "codeLanguage": "python",
      "codeTokens": 286,
      "codeList": [{ "language": "python", "code": "..." }]
    }
  ]
}

Usage Stats

GET /api/v2/usage — Requires API key

curl -H "Authorization: Bearer ckb_YOUR_KEY" \
  "https://codekb.hrmszero.freemyip.com/api/v2/usage"
{
  "key_id": "07f1bf40162e45c6",
  "email": "user@example.com",
  "plan": "pro",
  "monthly_requests": 42,
  "monthly_limit": 10000,
  "rate_per_min": 120
}

Plans

GET /api/v2/plans — No auth required

PlanPriceMonthly LimitPer Minute
Free$050030
Pro$510,000120
Business$25100,000600

Error Handling

CodeMeaning
200Success
400Bad Request — missing required parameter
401Unauthorized — API key required
404Not Found — library doesn't exist
429Rate limit exceeded — check Retry-After header
500Internal error
{ "error": "rate_limit_exceeded", "message": "Rate limit exceeded..." }