2025-08-24 10:26:02 +05:00
2025-08-23 23:49:15 +05:00
2025-08-23 23:49:42 +05:00
2025-08-23 21:14:56 +05:00
2025-08-23 23:49:07 +05:00
2025-03-26 13:19:45 +05:00
2025-08-23 23:49:51 +05:00
2025-08-23 23:49:21 +05:00

Crextractor

Utility for extracting credentials from the Crunchyroll Android app

Prerequisites

Installation

npm i crextractor

Usage

Fetching already extracted secrets

async function main() {
  const url = 'https://raw.githubusercontent.com/vitalygashkov/crextractor/refs/heads/main/credentials.tv.json';
  const data = await fetch(url).then((response) => response.json());

  // You can use the extracted secrets to obtain access tokens for Crunchyroll APIs
  const response = await fetch('https://beta-api.crunchyroll.com/auth/v1/token', {
    headers: {
      Authorization: data.authorization,
      'User-Agent': 'Crunchyroll/ANDROIDTV/3.42.1_22267 (Android 16; en-US; sdk_gphone64_x86_64)',
      // ...
    },
    method: 'POST',
    body: JSON.stringify({
      // ...
    }),
  });
}

Library

import { extract } from 'crextractor';

const { id, secret, encoded, authorization } = await extract();

// Do something with the extracted secrets

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%