Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TeamNewPipe/NewPipeExtractor/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheNewPipe class is the main entry point for the NewPipe Extractor library. It provides static methods to initialize the library, access streaming services, and configure localization settings.
This class manages:
- Initialization with a Downloader instance
- Access to all supported streaming services
- Localization and content country preferences
- Service lookup by ID, name, or URL
Initialization
init()
Initialize NewPipe with a downloader instance.The downloader implementation to use for HTTP requests
init() with Localization
Initialize NewPipe with a downloader and localization.The downloader implementation to use for HTTP requests
The preferred localization for content
init() with Localization and ContentCountry
Initialize NewPipe with full configuration.The downloader implementation to use for HTTP requests
The preferred localization for content
The preferred content country
Service Access
getServices()
Get all supported streaming services.A list of all available streaming services
getService() by ID
Get a specific streaming service by its ID.The unique identifier of the service
The streaming service with the specified ID
If no service exists with the given ID
getService() by Name
Get a specific streaming service by its name.The name of the service (e.g., “YouTube”, “SoundCloud”)
The streaming service with the specified name
If no service exists with the given name
getServiceByUrl()
Determine which service can handle a given URL.The URL to check
The streaming service that can handle the URL
If no service can handle the URL
Downloader Management
getDownloader()
Get the currently configured downloader instance.The active downloader instance
Localization Configuration
setupLocalization()
Configure localization preferences.The preferred localization
setupLocalization() with ContentCountry
Configure localization and content country preferences.The preferred localization
The preferred content country (nullable)
getPreferredLocalization()
Get the current preferred localization.The current preferred localization, or DEFAULT if not set
setPreferredLocalization()
Set the preferred localization.The new preferred localization
getPreferredContentCountry()
Get the current preferred content country.The current preferred content country, or DEFAULT if not set
setPreferredContentCountry()
Set the preferred content country.The new preferred content country