2025-09-01 12:34:13 +05:00
2025-09-01 12:34:13 +05:00
2025-08-24 10:26:02 +05:00
2025-08-26 19:10:31 +05:00
2025-08-23 23:49:42 +05:00
2025-08-26 12:22:10 +05:00
2025-03-26 13:19:45 +05:00
2025-08-26 12:22:37 +05:00
2025-08-26 12:22:37 +05:00
2025-08-26 12:22:32 +05:00

Crextractor

Utility for extracting credentials from the Crunchyroll Android app (both TV and mobile versions).

The credentials are automatically updated once a week (if there are any changes).

Prerequisites

Usage

Library

npm i crextractor

Fetch ready credentials from this GitHub repository

import { pull } from 'crextractor';

async function main() {
  const credentials = await pull('tv');

  // You can use the extracted credentials to obtain access tokens for Crunchyroll APIs
  const response = await fetch('https://beta-api.crunchyroll.com/auth/v1/token', {
    headers: {
      Authorization: credentials.authorization, // Ready HTTP header in the format `Basic <encoded>`, can be used to access some Crunchyroll APIs
      'User-Agent': 'Crunchyroll/ANDROIDTV/3.42.1_22267 (Android 16; en-US; sdk_gphone64_x86_64)',
      // ...
    },
    method: 'POST',
    body: JSON.stringify({
      // ...
    }),
  });
}

Extract credentials from the latest APK using jadx

import { extract } from 'crextractor';

async function main() {
  const { id, secret, encoded, authorization } = await extract();
  // id - Crunchyroll app ID
  // secret - Crunchyroll app secret
  // encoded - Base64 encoded `id:secret` string
  // authorization - ready HTTP header in the format `Basic <encoded>`, can be used to access some Crunchyroll APIs

  // Do something with the extracted credentials
}

Command-line interface

npx crextractor --target mobile --output ./credentials.mobile.json

Results will be printed to the console and saved to credentials.mobile.json file. By default, the target is TV, but you can change it with --target mobile option.

License

MIT

Languages
JavaScript 100%