API

Method #1 - Button/Iframe API


Set the "src" attribute of an HTML iframe to:

https://prosongs.net/@api/button/{format}/{YouTube-Video-ID}

...where {format} is one of the following:

  • "mp3" : for MP3 results
  • "videos" : for Video w/Audio results
  • "mergedstreams" : for Merged Video + Audio results
  • "videostreams" : for Video-Only results
  • "audiostreams" : for Audio-Only results

...and {YouTube-Video-ID} is any valid YouTube video ID.

The resulting iframe code and corresponding output should look like one of the following, e.g.:

<iframe class="button-api-frame" src="https://prosongs.net/@api/button/mp3/CevxZvSJLk8" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({checkOrigin: false}, '.button-api-frame');</script>

...generates this:

<iframe class="button-api-frame" src="https://prosongs.net/@api/button/videos/CevxZvSJLk8" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({checkOrigin: false}, '.button-api-frame');</script>

...generates this:

<iframe class="button-api-frame" src="https://prosongs.net/@api/button/mergedstreams/CevxZvSJLk8" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({checkOrigin: false}, '.button-api-frame');</script>

...generates this:

<iframe class="button-api-frame" src="https://prosongs.net/@api/button/videostreams/CevxZvSJLk8" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({checkOrigin: false}, '.button-api-frame');</script>

...generates this:

<iframe class="button-api-frame" src="https://prosongs.net/@api/button/audiostreams/CevxZvSJLk8" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

<!-- Optional script that automatically makes iframe content responsive. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.14/iframeResizer.min.js"></script>
<script>iFrameResize({checkOrigin: false}, '.button-api-frame');</script>

...generates this:


Method #2 - JSON "Search" REST API


Send an HTTP request to:

https://prosongs.net/@api/search/YouTube/{YouTube-Search-Term}

...where {YouTube-Search-Term} is any valid YouTube search term.

The API request and corresponding JSON response should look like one of the following, e.g.:

GET https://prosongs.net/@api/search/YouTube/Katy+Perry+Roar HTTP/1.1

...generates this:

{
	"items": [
		{
			"id": "CevxZvSJLk8",
			"title": "Katy Perry - Roar (Official)",
			"thumbDefault": "https://i.ytimg.com/vi/CevxZvSJLk8/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLDY5ZX7PoN7KNzXXEdQ_Yvch8qqQQ",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "6 years ago",
			"duration": "4:30",
			"viewCount": "3068657449"
		},
		{
			"id": "UW5SMrURVbM",
			"title": "Roar - Katy Perry (Lyrics) ??",
			"thumbDefault": "https://i.ytimg.com/vi/UW5SMrURVbM/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBFmmujndykkc75SeCIl05VPHaglw",
			"channelTitle": "DopeLyrics",
			"channelId": "UCvR2R7j218tzejtTsb_X6Rw",
			"publishedAt": "1 year ago",
			"duration": "3:51",
			"viewCount": "14073787"
		},
		{
			"id": "FqkfBzRb43o",
			"title": "Katy Perry - Roar : Part 2 (Official Cover by 10 year-old Mariangeli from HitStreak)",
			"thumbDefault": "https://i.ytimg.com/vi/FqkfBzRb43o/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBnXgcoefqzxawvmhB-QbCvMUBENg",
			"channelTitle": "ShowMobile",
			"channelId": "UCYBFx-THKRWqAxq66qZk_ww",
			"publishedAt": "6 years ago",
			"duration": "3:47",
			"viewCount": "307490768"
		},
		{
			"id": "Rh47oTsRf-w",
			"title": "Katy Perry - Roar (From “The Prismatic World Tour Live”)",
			"thumbDefault": "https://i.ytimg.com/vi/Rh47oTsRf-w/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLAsKxSyujUT_ZCQqsAdpVQAGnxP3Q",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "4 years ago",
			"duration": "4:33",
			"viewCount": "21381621"
		},
		{
			"id": "KRlhDkwJkHU",
			"title": "Katy Perry - Roar (OFFICIAL 1 Hour)",
			"thumbDefault": "https://i.ytimg.com/vi/KRlhDkwJkHU/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCOvC3IMGpgbitf9nn58BxMFpqJnw",
			"channelTitle": "SONGS 1 HOUR",
			"channelId": "UCEo7MW5ArVEzQCQRpTuNGDg",
			"publishedAt": "4 years ago",
			"duration": "1:01:11",
			"viewCount": "27253"
		},
		{
			"id": "empcJOD-bA0",
			"title": "Roar by Katy Perry Lyrics",
			"thumbDefault": "https://i.ytimg.com/vi/empcJOD-bA0/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBcizW9oc4KLGEo5o3Z2kOmKbKOkQ",
			"channelTitle": "mulero ibrahim",
			"channelId": "UCEl6sNUx9xHQ8zyypGJnlWQ",
			"publishedAt": "4 years ago",
			"duration": "3:45",
			"viewCount": "423025"
		},
		{
			"id": "K-w2sYAqMKw",
			"title": "Katy Perry - Roar (One Love Manchester)",
			"thumbDefault": "https://i.ytimg.com/vi/K-w2sYAqMKw/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLDjF35LoaRotGJ8WvhB4Nc9oZPvqQ",
			"channelTitle": "BBC Music",
			"channelId": "UCZtDUmC3W7j25XHZWFT_XgQ",
			"publishedAt": "2 years ago",
			"duration": "3:50",
			"viewCount": "12996443"
		},
		{
			"id": "sLZvdAdlQq4",
			"title": "Play Doh ROAR - Katy Perry Barbie Doll Inspired Costume",
			"thumbDefault": "https://i.ytimg.com/vi/sLZvdAdlQq4/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLA-i8iXAj-galqb2-0P1w82JdDXcQ",
			"channelTitle": "Fondanista",
			"channelId": "UCVNrpO7KiVMdwOdFZwLkWRA",
			"publishedAt": "4 years ago",
			"duration": "2:58",
			"viewCount": "14677198"
		},
		{
			"id": "0KSOMA3QBU0",
			"title": "Katy Perry - Dark Horse (Official) ft. Juicy J",
			"thumbDefault": "https://i.ytimg.com/vi/0KSOMA3QBU0/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLDa1ue7JhfY14YUSCsVhgf7o2kWyw",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "6 years ago",
			"duration": "3:45",
			"viewCount": "2773465353"
		},
		{
			"id": "Z0Q8j3HJagE",
			"title": "Katy Perry - Making of the \"Roar\" Music Video",
			"thumbDefault": "https://i.ytimg.com/vi/Z0Q8j3HJagE/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLAj6fVgZFc8eblIa5hC6CwvxasbNQ",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "6 years ago",
			"duration": "22:31",
			"viewCount": "20739183"
		},
		{
			"id": "EyLCXC3rV2M",
			"title": "**LYRICS** Katy Perry - Roar",
			"thumbDefault": "https://i.ytimg.com/vi/EyLCXC3rV2M/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBGnc2_UQBdmVbEvfzHuZf6GVldlQ",
			"channelTitle": "ilpescepalla",
			"channelId": "UCTnd7uvo-uWwlB9qvh0aucA",
			"publishedAt": "6 years ago",
			"duration": "4:04",
			"viewCount": "2940062"
		},
		{
			"id": "pQQ24JwtRUI",
			"title": "Olivia Sings Roar | The Voice Kids Australia 2014",
			"thumbDefault": "https://i.ytimg.com/vi/pQQ24JwtRUI/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCKE6eUp7Iye7_Wx8_0YOOPwpWamw",
			"channelTitle": "The Voice Kids Australia",
			"channelId": "UCUDR5r3ow3goI1iZgGlnoyw",
			"publishedAt": "5 years ago",
			"duration": "4:28",
			"viewCount": "95223791"
		},
		{
			"id": "aqhCJW890So",
			"title": "Mariangeli from HitStreak - ROAR : Part 1",
			"thumbDefault": "https://i.ytimg.com/vi/aqhCJW890So/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCj4EwhFnnFVcjJtF_3hUBYQ83WZw",
			"channelTitle": "ShowMobile",
			"channelId": "UCYBFx-THKRWqAxq66qZk_ww",
			"publishedAt": "6 years ago",
			"duration": "0:33",
			"viewCount": "32701801"
		},
		{
			"id": "KlyXNRrsk4A",
			"title": "Katy Perry - Last Friday Night (T.G.I.F.)",
			"thumbDefault": "https://i.ytimg.com/vi/KlyXNRrsk4A/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLAR2QvImCYQhf_dP5WFJiWVKU00fw",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "8 years ago",
			"duration": "8:11",
			"viewCount": "1239885938"
		},
		{
			"id": "UUT2GTujJI0",
			"title": "Katy Perry - Roar Lyrics",
			"thumbDefault": "https://i.ytimg.com/vi/UUT2GTujJI0/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLDUKvQC8DQIg7dD39mEjDetWdHMsA",
			"channelTitle": "K- Hype",
			"channelId": "UCcoS9-5e2PPrO5gIqC9Fy4Q",
			"publishedAt": "6 years ago",
			"duration": "3:45",
			"viewCount": "90138"
		},
		{
			"id": "QGJuMBdaqIw",
			"title": "Katy Perry - Firework (Official)",
			"thumbDefault": "https://i.ytimg.com/vi/QGJuMBdaqIw/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCVFJ6nMr1OyDp5P9wNafG76miRoA",
			"channelTitle": "Katy Perry",
			"channelId": "UCYvmuw-JtVrTZQ-7Y4kd63Q",
			"publishedAt": "9 years ago",
			"duration": "3:54",
			"viewCount": "1233775759"
		},
		{
			"id": "ZKmuyy6xEBU",
			"title": "Katy Perry - Firework, Roar & Never Really Over LIVE - SHEIN Together",
			"thumbDefault": "https://i.ytimg.com/vi/ZKmuyy6xEBU/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLAqsqPbUkw6GHnIB_my6JIuS9ondA",
			"channelTitle": "KPEZ",
			"channelId": "UCv1DBOB5sc6vrjYEkwNsHcw",
			"publishedAt": "1 day ago",
			"duration": "11:52",
			"viewCount": "2688"
		},
		{
			"id": "qvBzVWdwZFg",
			"title": "Katy Perry - Roar (Live @ BBC Radio 1's Big Weekend)",
			"thumbDefault": "https://i.ytimg.com/vi/qvBzVWdwZFg/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLDujpTCwyTAWK3t-MozoxcjvBhtjw",
			"channelTitle": "HeyHey Hey",
			"channelId": "UCMYxD0p4_-GxQ1qYYDsK-FQ",
			"publishedAt": "3 years ago",
			"duration": "4:38",
			"viewCount": "98831"
		},
		{
			"id": "Sl8Wl4EFBGQ",
			"title": "KATY PERRY WITH ZERO BUDGET! (Roar PARODY)",
			"thumbDefault": "https://i.ytimg.com/vi/Sl8Wl4EFBGQ/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCybyCTPmI82feN8Rzcmu_0ERrVpA",
			"channelTitle": "LankyBox",
			"channelId": "UCSf0s2ogUVYpJPuzW1zpAOg",
			"publishedAt": "6 months ago",
			"duration": "1:24",
			"viewCount": "2759481"
		}
	]
}