UNPKG

ytmusic_api_unofficial

Version:

A simple API to get music from YouTube Music

73 lines 2.25 kB
export declare const AvailableQuality: string[]; export declare const AvailableFormat: string[]; export declare const UN_TYPES: string[]; export declare const all_TYPES: string[]; export declare const TYPE_SEARCH_CODE: { song: string; video: string; album: string; }; export declare const options: { country: string; fetch: boolean; }; declare const _default: { apiUrl: string; header: { 'Content-Type': string; 'User-Agent': string; cookie: string; Referer: string; Origin: string; 'Accept-Language': string; 'Accept-Encoding': string; Accept: string; Connection: string; 'X-Goog-Visitor-Id': string; 'X-Goog-AuthUser': string; 'X-Goog-PageId': string; 'X-Goog-Encode-Response-If-Executable': string; 'X-Goog-ME': string; "x-youtube-bootstrap-logged-in": boolean; "x-youtube-client-name": number; "x-youtube-client-version": string; "sec-ch-ua-full-version": string; }; body: { context: { client: { clientName: string; clientVersion: string; originalUrl: string; hl: string; gl: string; }; user: { lockedSafetyMode: boolean; }; }; }; }; export default _default; export declare const shortFollowerFormat: { K: number; M: number; B: number; }; export declare function transformFollowerNumber(number: number, format?: string): number; export declare const countries: string[]; export declare const countriesCodes: string[]; export declare type AvailableTypes = typeof all_TYPES[number]; export declare type AvailableQuality = typeof AvailableQuality[number]; export declare type AvailableFormat = typeof AvailableFormat[number]; export declare type AvailableCountries = typeof countries[number]; export declare type AvailableCountriesCodes = typeof countriesCodes[number]; export declare type optionsType = { country: AvailableCountriesCodes; fetch: boolean; }; export declare type followerFormat = { followers: number; followersText: string; }; //# sourceMappingURL=default.d.ts.map