CribbleDocsAPI Reference
Developer Docsv1.0 · Live

Cribble API Reference

Build Filipino-first AI products with Cribble's REST API. Search, chat, education tools, and more — in Tagalog, Bisaya, Ilocano, and English.

REST APIJSONClaude Haiku 4.5Claude Sonnet 4.6Solana AuthAgent-ready

Who is the Cribble API for?

Cribble is the AI platform built for the Philippines. Our API gives individuals, businesses, and AI developers access to Filipino-first intelligence for their own products.

👤
Developers

Build personal projects, bots, and tools on the free tier. No credit card — just a Solana wallet.

🏢
Businesses

Add AI search, Q&A, and chat to your app. Customer support, knowledge bases, product discovery.

🤖
AI Agents

Build agents that search and reason in Filipino languages with structured JSON responses.

🎓
EdTech & Schools

Integrate CribEdu tutoring. Subject-aware, grade-aware, built for Filipino students.

Authentication

Cribble uses wallet-based identity. Connect at cribble.ph/login to get your API key, then pass it as a Bearer token in every request.

Authorization headerRequired on all requests
Authorization: Bearer YOUR_API_KEY
Base URL
https://cribble.ph/api
🔒Keep your API key secret. Never expose it in frontend code or version control. Use it only in server-side environments.

Plans & Access

Start free. Upgrade by holding $CRIB tokens — no subscriptions, no monthly billing.

Free
₱0 / forever
  • 100 requests / day
  • Standard model
  • 8k token context
  • Search, Ask, Chat
  • Filipino + English
Pro
Hold $CRIB tokens
  • Unlimited requests
  • Advanced model
  • 200k token context
  • All endpoints + CribEdu
  • Agent mode
Business
Custom
  • Dedicated rate limits
  • SLA & uptime guarantee
  • White-label options
  • Priority support

AI Ask

Single-turn question answering with Philippine context and citations. Ideal for FAQs and government information lookups.

POST/api/askSingle-turn AI Q&A
Body paramTypeDescription
qreqstringThe question to answer
modeloptstring"standard" (default) or "advanced" (Pro)
langoptstringPreferred response language
RequestcURL
curl -X POST "https://cribble.ph/api/ask" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"q":"Ano ang SSS contribution 2025?","model":"standard"}'
ResponseJSON
{
  "answer":  "Ang SSS contribution para sa 2025...",
  "sources": ["https://www.sss.gov.ph/"],
  "lang":    "tl"
}

Chat

Multi-turn conversational AI with Philippine context. Ideal for customer support bots and virtual assistants.

POST/api/chatMulti-turn conversation
Body paramTypeDescription
messagereqstringLatest user message
historyoptarrayPrevious messages: [{role, content}]
modeloptstring"standard" or "advanced"
systemExtraoptstringAdditional system instructions
RequestJavaScript
const res = await fetch("https://cribble.ph/api/chat", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_KEY"
  },
  body: JSON.stringify({
    message: "Paano mag-apply ng business permit?",
    history: [],
    model: "standard"
  })
});
const { reply } = await res.json();

CribEdu AI Tutor

Embed Filipino AI tutoring into your EdTech product. Grade-aware and subject-aware.

POST/api/edu/chatAI tutoring session · Pro only
Body paramTypeDescription
messagereqstringStudent question
subjectreqstringmath · science · filipino · history · english · ict · values
levelreqstringGrade 1–12 · College · Adult Learner
historyoptarrayPrevious conversation turns
🔒CribEdu API requires Pro access. Free users can use the web interface at cribble.ph/crib-edu.

Image Search

Search for images with Philippine-aware context and content filtering.

GET/api/search?t=imagesImage results
Response shapeJSON
{
  "images": [
    {
      "url":       "https://example.com/image.jpg",
      "thumbnail": "https://example.com/thumb.jpg",
      "title":     "Mayon Volcano Albay Philippines",
      "width": 1200, "height": 800
    }
  ]
}

Models

Cribble offers two model tiers optimized for Philippine context and multilingual use.

Standard
Fast and cost-efficient. Ideal for search Q&A, customer support, and everyday queries.
8k contextFast
Free tier
Advanced
Best reasoning. Ideal for complex tasks, CribEdu, startup tools, and agent workflows.
200k contextPro
Pro · hold $CRIB

Error Codes

400
Bad Request
Missing required field or invalid parameter.
401
Unauthorized
Invalid or missing API key.
403
Forbidden
Pro endpoint accessed on free plan.
429
Rate Limited
Daily request limit reached.
500
Server Error
Internal error. Retry with exponential backoff.
503
Unavailable
Temporary overload. Retry shortly.
Error shapeJSON
{ "error": "Rate limit exceeded", "code": 429 }

Rate Limits

PlanRequests/dayModelContext
Free100Standard8k tokens
Pro ($CRIB)UnlimitedStandard + Advanced200k tokens
BusinessCustomAll200k tokens
📊Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Building AI Agents

All Cribble responses are structured JSON. Build autonomous agents that search and reason in Filipino languages.

Agent examplePython
import requests

API_KEY = "YOUR_API_KEY"
BASE    = "https://cribble.ph/api"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

def search(q):
    return requests.get(f"{BASE}/search", params={"q": q}, headers=HEADERS).json()

def ask(question):
    return requests.post(f"{BASE}/ask",
      json={"q": question, "model": "advanced"},
      headers=HEADERS).json()["answer"]

# Search then reason
results = search("SSS contribution 2025 Philippines")
answer  = ask(f"Based on: {results['results'][0]['snippet']} "
              f"— Magkano ang monthly SSS contribution?")
print(answer)
Use systemExtra in /api/chat to give your agent a custom Filipino or English persona.

Get API Access

Connect your wallet to start building for free. Hold $CRIB to unlock the Advanced model, unlimited requests, and CribEdu.