Context7-compatible REST API. No SDK required — just HTTP.
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 /api/v2/libs/search
| Parameter | Required | Description |
|---|---|---|
libraryName | Yes | Library name (e.g., "quart", "sqlalchemy") |
query | Yes | What you're looking for (used for relevance) |
curl "https://codekb.hrmszero.freemyip.com/api/v2/libs/search?libraryName=quart&query=websocket"
{
"results": [
{
"id": "/pallets/quart",
"title": "quart",
"totalSnippets": 450,
"version": "0.21.0"
}
]
}
GET /api/v2/context
| Parameter | Required | Description |
|---|---|---|
libraryId | Yes | Library ID (e.g., /pallets/quart) |
query | Yes | What you're looking for |
type | No | json (default) or txt |
limit | No | Max 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": "..." }]
}
]
}
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
}
GET /api/v2/plans — No auth required
| Plan | Price | Monthly Limit | Per Minute |
|---|---|---|---|
| Free | $0 | 500 | 30 |
| Pro | $5 | 10,000 | 120 |
| Business | $25 | 100,000 | 600 |
| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request — missing required parameter |
| 401 | Unauthorized — API key required |
| 404 | Not Found — library doesn't exist |
| 429 | Rate limit exceeded — check Retry-After header |
| 500 | Internal error |
{ "error": "rate_limit_exceeded", "message": "Rate limit exceeded..." }