How Credits Work
ScriptBase uses a credit-based system where each API operation costs a certain number of credits. Your subscription plan determines your monthly credit quota.Credit Costs
Different operations consume different amounts of credits:| Operation | Endpoint | Credits | Example |
|---|---|---|---|
| Video Metadata | GET /api/v1/videos/:id | 1 | Get video title, views, etc. |
| Video + Transcript | GET /api/v1/videos/:id?includeTranscript=true | 2 | Video metadata with transcript |
| Transcript Only | GET /api/v1/transcripts/:videoId | 2 | Get video transcript |
| Transcript Translation | GET /api/v1/transcripts/:videoId/translate | 2 | Translate transcript |
| Channel Info | GET /api/v1/channels/:id | 1 | Get channel metadata |
| Playlist Info | GET /api/v1/playlists/:id | 1 | Get playlist metadata |
| Search Videos | GET /api/v1/search | 5 | Search YouTube |
| Scrape URL | GET /api/v1/scrape | 5 | Convert webpage to markdown |
| Website Crawl | POST /api/v1/scrape/crawl | 10 + 5/page | Crawl entire website |
| Account Info | GET /api/v1/account | 0 | Free - check your account |
| Job Status | GET /api/v1/jobs/:jobId | 0 | Free - poll job status |
Batch operations (like
POST /api/v1/transcripts/batch) cost credits per item processed. For example, fetching transcripts for 10 videos costs 20 credits (2 credits × 10 videos).Subscription Tiers
Each tier provides a monthly credit quota:| Tier | Monthly Credits | Rate Limit | Price |
|---|---|---|---|
| FREE | 200 | 10/min | Free |
| PRO | 10,000 | Unlimited | $19/mo |
What You Can Do With Credits
FREE (200 credits/month):- 200 video metadata requests
- 100 transcript requests
- 40 scraping requests
- 50 video + transcript combos
- 10,000 video metadata requests
- 5,000 transcript requests
- 2,000 scraping requests
- Mix and match as needed
- Auto-recharge available ($5/1,000 credits)
Tracking Your Usage
Check Credits in Response
Every API response includes credit information in themeta object:
Check Via Response Headers
Response headers also show credit usage:View in Dashboard
Check your usage at any time:Quota Reset
Quotas reset on the first day of each month at midnight UTC.Reset Date
Your next quota reset: Check
/api/v1/account for exact dateAuto-Recharge
Never run out of credits mid-month with auto-recharge.How It Works
- When you hit your quota limit, auto-recharge automatically adds credits
- You’re charged based on your plan’s overage rate
- You receive an email notification
- Your requests continue without interruption
Enable Auto-Recharge
Go to Dashboard
Auto-Recharge Response Header
When auto-recharge triggers, you’ll see this header:Quota Exceeded
If you exceed your quota without auto-recharge enabled, you’ll receive: HTTP Status:429 Too Many Requests
What to Do
Wait for Reset
Wait for Reset
Quotas reset on the 1st of each month. Your next reset date is in the error response.
Enable Auto-Recharge
Enable Auto-Recharge
Automatically add credits when you hit the limit to avoid interruptions.
Upgrade Your Plan
Upgrade Your Plan
Move to a higher tier for more monthly credits and higher rate limits.
Optimize Usage
Optimize Usage
- Use batch endpoints to reduce overhead
- Cache responses when possible
- Request only the fields you need
Optimizing Credit Usage
Use Batch Endpoints
Instead of making 100 individual requests (100 credits overhead):Request Only What You Need
Don’t include transcripts unless necessary:Cache Responses
Cache video metadata and transcripts that don’t change:Need More Credits?
Need more than 10,000 credits per month? Upgrade to Pro and enable auto-recharge:- Automatic purchase of 1,000 credits for $5 when you run out
- Never worry about running out of credits
- Only pay for what you use
- Cancel anytime