Skip to main content

Get Your API Key

1

Sign Up

Create an account at dashboard.scriptbase.app
2

Generate API Key

Navigate to the API Keys section in your dashboard and create a new API key.
3

Copy Your Key

Copy the API key - you’ll need it for all requests. It starts with sk_.
Keep your API key secure. Never commit it to version control or expose it in client-side code.

Make Your First Request

Let’s fetch metadata for a YouTube video. We’ll use the classic “Never Gonna Give You Up” as an example.
curl "https://api.scriptbase.app/api/v1/videos/dQw4w9WgXcQ" \
  -H "X-API-Key: sk_your_key_here"

Understanding the Response

You’ll receive a JSON response with the video metadata:
{
  "success": true,
  "data": {
    "id": "dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video)",
    "description": "The official video for "Never Gonna Give You Up"...",
    "duration": "PT3M33S",
    "channel": {
      "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
      "name": "Rick Astley"
    },
    "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
    "uploadDate": "2009-10-25T06:57:33Z",
    "viewCount": 1445075261,
    "likeCount": 15000000
  },
  "meta": {
    "creditsUsed": 1,
    "creditsRemaining": 999,
    "rateLimit": {
      "limit": 10,
      "remaining": 59,
      "resetAt": 1704326400
    }
  }
}
This request costs 1 credit. The meta object shows how many credits were used and how many you have remaining.

Get a Video Transcript

Now let’s fetch the transcript for the same video:
curl "https://api.scriptbase.app/api/v1/transcripts/dQw4w9WgXcQ?format=text" \
  -H "X-API-Key: sk_your_key_here"
Transcript requests cost 2 credits. You can choose from multiple formats: json, text, srt, or vtt.

What’s Next?