/YouTubeInfo

Primary LanguageJavaMIT LicenseMIT

Android Youtube Info

AndroidManifest

 <uses-permission android:name="android.permission.INTERNET"/>

Download

Build Gradle

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
dependencies {
	implementation 'com.github.uguraltinsoy:YouTubeInfo:0.1.0'
}

or Maven:

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>
<dependency>
	<groupId>com.github.uguraltinsoy</groupId>
	<artifactId>YouTubeInfo</artifactId>
	<version>0.1.0</version>
</dependency>

Usage

All Data

String[] all = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAll();
String title = all[0];
String authorName = all[1];
String authorUrl = all[2];
String type = all[3];
String thumbnail = all[4];

Get Title

String title = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getTitle();

Get Author Name

String authorName = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAuthorName();

Get Author Url

String authorUrl = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAuthorUrl();

Get Type

String type = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getType();

Get Thumbnail Url

String thumbnail = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getThumbnail();

Developer By

Uğur Altınsoy

Donate

BTC  : 1N7V3wX4xvGfwgBP1zQrcMSxohKKfiDxyH
ETH  : 0x0df6da87e219fb4854e933f1071ad91d17afa517
XRP  : rEb8TK3gBgk5auZkwc6sHnwrGVJH8DuaLh
DOGE : DKKmSHAa8GhAE5HNjmCXzkXPKTjpybY3mq
DENT : 0x0df6da87e219fb4854e933f1071ad91d17afa517

Social

Twitter Instagram Linkedin Google Play