Difference between revisions of "Plays.tv"

From Archiveteam
Jump to: navigation, search
(Bucket stats)
(Video comments endpoint)
(6 intermediate revisions by 2 users not shown)
Line 15: Line 15:
  
 
== URLs ==
 
== URLs ==
* Video watch page: <nowiki>https://plays.tv/video/<VIDEO ID></nowiki>
+
* Video watch page: <code><nowiki>https://plays.tv/video/$VIDEO_WEB_ID</nowiki></code>
* Thumbnail: <nowiki>https://d0playscdntv-a.akamaihd.net/media/<VIDEO ID>/transcoded/<RESOLUTION>.jpg</nowiki>
+
* Thumbnail: <code><nowiki>https://d[01]playscdntv-a.akamaihd.net/media/$VIDEO_BUCKET_ID/transcoded/$RESOLUTION.jpg</nowiki></code>
* Video: <nowiki>https://d0playscdntv-a.akamaihd.net/media/<VIDEO ID>/transcoded/<RESOLUTION>.mp4</nowiki>
+
* Video: <code><nowiki>https://d[01]playscdntv-a.akamaihd.net/media/$VIDEO_BUCKET_ID/transcoded/$RESOLUTION.mp4</nowiki></code>
  
Two video ID schemes are in use. Older uploads use a YouTube-like ID of <code>[0-9a-zA-Z_-]{11}</code>, newer ones are <code>[0-9a-f]{8}[0-9a-z]{10}[0-9a-f]{6}</code>. The web page appears to always use the new format, so there must be some correspondence between these.
+
Video IDs on the watch page URLs are <code>[0-9a-f]{18}</code>. In the bucket, two video ID schemes are in use: older uploads use a YouTube-like ID of <code>[0-9a-zA-Z_-]{11}</code>, newer ones are <code>[0-9a-f]{8}[0-9a-z]{10}[0-9a-f]{6}</code>. For the latter, the web page ID of a video starts with the same eight characters as the bucket ID, but the rest differs.
  
Known values for <nowiki><RESOLUTION></nowiki> include: 144, 360, 480, 720, and 1080, with some resources only supporting lower resolutions.
+
Known values for <code>$RESOLUTION</code> include: 144, 360, 480, 720, and 1080, with some resources only supporting lower resolutions.
  
 
The site uses two Akamai CDN domains, d0playscdntv-a.akamaihd.net and d1playscdntv-a.akamaihd.net, and both are proxies to the raptr-replay S3 bucket. That bucket contains about 422 million objects totalling 1085 TiB based on a scan from 2019-11-22 to 25.
 
The site uses two Akamai CDN domains, d0playscdntv-a.akamaihd.net and d1playscdntv-a.akamaihd.net, and both are proxies to the raptr-replay S3 bucket. That bucket contains about 422 million objects totalling 1085 TiB based on a scan from 2019-11-22 to 25.
 +
 +
== Internal API ==
 +
* User feed: <code><nowiki>https://plays.tv/playsapi/feedsys/v1/userfeed/$USERNAME_OR_USERID/uploaded?limit=[10]&filter=[video|image]</nowiki></code> (parameters are optional, limit defaults to 10 (the desktop app sets it to 24 and the iOS mobile app sets it to 10), filter defaults to a blank string (none)) This endpoint contains metadata (including a download URL) for each video. Also has <code><nowiki>/playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/published?limit=12</nowiki></code>, <code><nowiki>/playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/uploaded?limit=12&displayType=unlisted</nowiki></code> (requires authentication for data), <code><nowiki>/playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/featured?limit=12</nowiki></code>, <code><nowiki>/playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/counts</nowiki></code>, <code><nowiki>/playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/published?limit=12&lastId=XXXXXXXX0000000000</nowiki></code> (video ID).
 +
* User profile: <code><nowiki>https://plays.tv/ws/orbital/profile/$USERID?_orbitalapp=1</nowiki></code> (the orbitalapp parameter doesn't seem to do anything). Requires the user id, and won't return anything for usernames. It also lists 12 of the user's videos (with urls to video thumbnails but not the video files themselves), and the usernames, profile images, and ids of followers, following, and friend suggestions.
 +
* The user id can be obtained by searching for "target_user_id" in the source code of their user page: <code></nowiki>https://plays.tv/u/$USERNAME</nowiki></code>
 +
* Video: <code><nowiki>https://plays.tv/playsapi/feedsys/v1/media/$VIDEO_WEB_ID</nowiki></code>. Also has /react, /unreact, /track, /repost, /unrepost, /unlist, /publish, /comments?page=[0]&limit=[99].
 +
* User: <code><nowiki>https://plays.tv/playsapi/usersys/v1/user/$USERNAME_OR_USERID</nowiki></code> Returns username, user id, profile picture.
 +
* Comment: <code><nowiki>https://plays.tv/ws/comment/create</nowiki></code>. Also /delete.
 +
* User timeline: <code><nowiki>https://plays.tv/playsapi/feedsys/v1/userfeed/$USERNAME_OR_USERID/timeline?limit=[12?]&filter=[(none)|friends]</nowiki></code> Requires authentication.
 +
* Notifications: <code><nowiki>https://plays.tv/ws/orbital/notifications/get</nowiki></code> Requires authentication.
 +
* Something related to streaming (maybe creating a stream?): http://stream.playsapi.tv/v1/stream?userId=$USERID&appVersion=3.0.0&augerVersion=$AUGERVERSION
  
 
== References ==
 
== References ==
 
<references/>
 
<references/>

Revision as of 19:13, 8 December 2019

Plays.tv
Plays.tv logo
Plays.tv is a platform for sharing video game recordings and screenshots.
Plays.tv is a platform for sharing video game recordings and screenshots.
URL https://plays.tv/
Project status Closing
Archiving status Upcoming...
Project source https://github.com/ArchiveTeam/playstv-grab
Project tracker
IRC channel #stops.tv (on hackint)
Project lead Unknown

Plays.tv is a platform for sharing video game recordings and screenshots. The website will be shutting down on December 15, 2019.[1].

URLs

  • Video watch page: https://plays.tv/video/$VIDEO_WEB_ID
  • Thumbnail: https://d[01]playscdntv-a.akamaihd.net/media/$VIDEO_BUCKET_ID/transcoded/$RESOLUTION.jpg
  • Video: https://d[01]playscdntv-a.akamaihd.net/media/$VIDEO_BUCKET_ID/transcoded/$RESOLUTION.mp4

Video IDs on the watch page URLs are [0-9a-f]{18}. In the bucket, two video ID schemes are in use: older uploads use a YouTube-like ID of [0-9a-zA-Z_-]{11}, newer ones are [0-9a-f]{8}[0-9a-z]{10}[0-9a-f]{6}. For the latter, the web page ID of a video starts with the same eight characters as the bucket ID, but the rest differs.

Known values for $RESOLUTION include: 144, 360, 480, 720, and 1080, with some resources only supporting lower resolutions.

The site uses two Akamai CDN domains, d0playscdntv-a.akamaihd.net and d1playscdntv-a.akamaihd.net, and both are proxies to the raptr-replay S3 bucket. That bucket contains about 422 million objects totalling 1085 TiB based on a scan from 2019-11-22 to 25.

Internal API

  • User feed: https://plays.tv/playsapi/feedsys/v1/userfeed/$USERNAME_OR_USERID/uploaded?limit=[10]&filter=[video|image] (parameters are optional, limit defaults to 10 (the desktop app sets it to 24 and the iOS mobile app sets it to 10), filter defaults to a blank string (none)) This endpoint contains metadata (including a download URL) for each video. Also has /playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/published?limit=12, /playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/uploaded?limit=12&displayType=unlisted (requires authentication for data), /playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/featured?limit=12, /playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/counts, /playsapi/feedsys/v1/userfeed/USERNAME_OR_USERID/published?limit=12&lastId=XXXXXXXX0000000000 (video ID).
  • User profile: https://plays.tv/ws/orbital/profile/$USERID?_orbitalapp=1 (the orbitalapp parameter doesn't seem to do anything). Requires the user id, and won't return anything for usernames. It also lists 12 of the user's videos (with urls to video thumbnails but not the video files themselves), and the usernames, profile images, and ids of followers, following, and friend suggestions.
  • The user id can be obtained by searching for "target_user_id" in the source code of their user page: </nowiki>https://plays.tv/u/$USERNAME</nowiki>
  • Video: https://plays.tv/playsapi/feedsys/v1/media/$VIDEO_WEB_ID. Also has /react, /unreact, /track, /repost, /unrepost, /unlist, /publish, /comments?page=[0]&limit=[99].
  • User: https://plays.tv/playsapi/usersys/v1/user/$USERNAME_OR_USERID Returns username, user id, profile picture.
  • Comment: https://plays.tv/ws/comment/create. Also /delete.
  • User timeline: https://plays.tv/playsapi/feedsys/v1/userfeed/$USERNAME_OR_USERID/timeline?limit=[12?]&filter=[(none)|friends] Requires authentication.
  • Notifications: https://plays.tv/ws/orbital/notifications/get Requires authentication.
  • Something related to streaming (maybe creating a stream?): http://stream.playsapi.tv/v1/stream?userId=$USERID&appVersion=3.0.0&augerVersion=$AUGERVERSION

References