<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>https://wiki.sponsor.ajay.app/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Grub</id>
	<title>SponsorBlock - User contributions [en-ca]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sponsor.ajay.app/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Grub"/>
	<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/w/Special:Contributions/Grub"/>
	<updated>2026-04-26T23:47:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sponsor.ajay.app/index.php?title=API_Docs&amp;diff=3154</id>
		<title>API Docs</title>
		<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/index.php?title=API_Docs&amp;diff=3154"/>
		<updated>2023-06-16T02:17:58Z</updated>

		<summary type="html">&lt;p&gt;Grub: Bad apostrophe.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Formatting Notes:&lt;br /&gt;
&lt;br /&gt;
userID instead of user ID&lt;br /&gt;
leave a space after the start of the comment, &lt;br /&gt;
public userID &amp;amp; local userID --&amp;gt;&lt;br /&gt;
If you end up using the API, I&#039;d love to know about how you&#039;re using it. Tell me about it by making a GitHub issue or emailing me :)&lt;br /&gt;
&lt;br /&gt;
The API and database follow [https://github.com/ajayyy/SponsorBlock/wiki/Database-and-API-License this license] unless you have explicit permission. [https://gist.github.com/ajayyy/4b27dfc66e33941a45aeaadccb51de71 Attribution Template]&lt;br /&gt;
&lt;br /&gt;
Public API available at https://sponsor.ajay.app. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;sub&amp;gt;While this is a free unlimited use API, please don&#039;t abuse it. I have limited resources.&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Database download: https://sponsor.ajay.app/database&lt;br /&gt;
&lt;br /&gt;
If you are looking for DeArrow API Docs, see [[API Docs/DeArrow|its page]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Libraries&#039;&#039;&#039;: [https://www.npmjs.com/package/sponsorblock-api Node.js], [https://github.com/wasi-master/sponsorblock.py Python], [https://crates.io/crates/sponsor-block Rust], [https://github.com/porjo/sponsorblockgo Go]&lt;br /&gt;
-----Online Database Explorer (By Lartza): https://sb.ltn.fi/&lt;br /&gt;
&lt;br /&gt;
Database Mirror (30 min update time, provided by Lartza): https://sb.ltn.fi/database/&lt;br /&gt;
&lt;br /&gt;
Database Mirror (10 min update time, provided by blab): https://mirror.sb.mchang.xyz/&lt;br /&gt;
&lt;br /&gt;
Database Mirror (2 hr update time, provided by mini_bomba): https://sb.minibomba.pro/mirror/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sub&amp;gt;[https://sponsor.ajay.app/database Database Dump] | [https://github.com/ajayyy/SponsorBlock/wiki/Webhooks Webhook Docs] | [https://github.com/mchangrh/sb-openapi OpenAPI Docs]&amp;lt;/sub&amp;gt; &lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/skipSegments&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get segments for a video.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  &lt;br /&gt;
  category: string, // Optional, defaults to &amp;quot;sponsor&amp;quot;, can be repeated for multiple categories. [1]&lt;br /&gt;
  // OR&lt;br /&gt;
  categories: string[], // Optional [1]&lt;br /&gt;
&lt;br /&gt;
  requiredSegment: string, // Segment UUID to require to be retrieved, even if they don&#039;t meet the minimum vote threshold. Can be repeated for multiple segments.&lt;br /&gt;
  // OR&lt;br /&gt;
  requiredSegments: string[], // Optional, array of required segment UUIDs&lt;br /&gt;
&lt;br /&gt;
  actionType: string // Optional, default skip. Can be repeated for multiple types. [3]&lt;br /&gt;
  // OR  &lt;br /&gt;
  actionTypes: string[] // Optional, array of action types&lt;br /&gt;
&lt;br /&gt;
  service: string, // Optional, default is &#039;YouTube&#039; [2]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;See [[Types#Category|Types]] for full list of possible categories. To get multiple, create an array with the format &amp;lt;code&amp;gt;[&amp;quot;sponsor&amp;quot;, intro&amp;quot;]&amp;lt;/code&amp;gt;. &amp;lt;/ref&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot;&amp;gt;Service to get segments for. See [[Types#Service|Types]] for supported services&amp;lt;/ref&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot;&amp;gt;Action Types: See [[Types#Action Type|Types]] for possible values. Select multiple with the format &amp;lt;code&amp;gt;[&amp;quot;skip&amp;quot;,&amp;quot;mute]&amp;lt;/code&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object&lt;br /&gt;
   segment: float[], //[0, 15.23] start and end time in seconds&lt;br /&gt;
   UUID: string,&lt;br /&gt;
   category: string, // [1]&lt;br /&gt;
   videoDuration: float // Duration of video when submission occurred (to be used to determine when a submission is out of date). 0 when unknown. +- 1 second&lt;br /&gt;
   actionType: string, // [3]&lt;br /&gt;
   locked: int, // if submission is locked&lt;br /&gt;
   votes: int, // Votes on segment&lt;br /&gt;
   description: string, // title for chapters, empty string for other segments&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/skipSegments/:sha256HashPrefix&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get segments for a video with extra privacy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sha256HashPrefix&amp;lt;/code&amp;gt; is a hash of the YouTube &amp;lt;code&amp;gt;videoID&amp;lt;/code&amp;gt;. It should be the first 4 - 32 characters (4 is recommended). This provides extra privacy by potentially finding more than just the video you are looking for since the server will not know exactly what video you are looking for.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  prefix: string, // Can be used instead of path&lt;br /&gt;
&lt;br /&gt;
  category: string, // Optional, defaults to &amp;quot;sponsor&amp;quot;, can be repeated for multiple categories. [1]&lt;br /&gt;
  // OR&lt;br /&gt;
  categories: string[], // Optional, array of categories [1]&lt;br /&gt;
&lt;br /&gt;
  requiredSegment: string, // Segment UUID to require to be retrieved, even if they don&#039;t meet the minimum vote threshold. Can be repeated for multiple segments.&lt;br /&gt;
  // OR&lt;br /&gt;
  requiredSegments: string[], // Optional, array of required segment UUIDs&lt;br /&gt;
&lt;br /&gt;
  actionType: string // Optional, default skip. Can be repeated for multiple types. [3]&lt;br /&gt;
  // OR  &lt;br /&gt;
  actionTypes: string[] // Optional, array of action types [3]&lt;br /&gt;
&lt;br /&gt;
  service: string // Optional, default is &#039;YouTube&#039;. [2]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object&lt;br /&gt;
   videoID: string,&lt;br /&gt;
   segments: [{ // Array of this object&lt;br /&gt;
       segment: float[], // [0, 15.23] start and end time in seconds&lt;br /&gt;
       UUID: string,&lt;br /&gt;
       category: string, [1]&lt;br /&gt;
       actionType: string, // [1]&lt;br /&gt;
       locked: int, // if segment is locked&lt;br /&gt;
       votes: int, // votes on segment&lt;br /&gt;
       videoDuration: int, // Duration of video when submissions occurred&lt;br /&gt;
       description: string // title for chapters, empty string for other segments&lt;br /&gt;
   }]&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/skipSegments&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Create a segment on a video&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  startTime: float,&lt;br /&gt;
  endTime: float,&lt;br /&gt;
  category: string, // [1]&lt;br /&gt;
  userID: string, // This should be a randomly generated UUID stored locally (not the public one)&lt;br /&gt;
  userAgent: string, // &amp;quot;Name of Client/Version&amp;quot; or &amp;quot;[BOT] Name of Bot/Version&amp;quot; ex. &amp;quot;Chromium/1.0.0&amp;quot;&lt;br /&gt;
  service: string, // Optional, default is &#039;YouTube&#039;. [2]&lt;br /&gt;
  videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)&lt;br /&gt;
  actionType: string // Optional, default is &amp;quot;skip&amp;quot;. [3]&lt;br /&gt;
  description: string // Chapter title for chapters, must be an empty string or not present for other segment types&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;OR&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (JSON Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  userID: string, // This should be a randomly generated UUID stored locally (not the public one)&lt;br /&gt;
  userAgent: string, // &amp;quot;Name of Client/Version&amp;quot; or &amp;quot;[BOT] Name of Bot/Version&amp;quot; ex. &amp;quot;Chromium/1.0.0&amp;quot;&lt;br /&gt;
  service: string, // Optional, default is &#039;YouTube&#039;.[2]&lt;br /&gt;
  videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)&lt;br /&gt;
&lt;br /&gt;
  segments: [{ // Array of this object&lt;br /&gt;
     segment: float[], // [0, 15.23] start and end time in seconds&lt;br /&gt;
     category: string, // [1]&lt;br /&gt;
     actionType: string // Optional, defaults to &amp;quot;skip&amp;quot;. [3]&lt;br /&gt;
     description: string // Chapter title for chapters, must be an empty string or not present for other segment types&lt;br /&gt;
  }]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{ // array of this object&lt;br /&gt;
  UUID: string, // UUID of submitted segment&lt;br /&gt;
  category: string, // submitted category [1]&lt;br /&gt;
  segment: float[] // start and end time of submitted segment&lt;br /&gt;
}[]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Rejected by auto moderator (Reason will be sent in the response)&lt;br /&gt;
&lt;br /&gt;
429: Rate Limit (Too many for the same user or IP)&lt;br /&gt;
&lt;br /&gt;
409: Duplicate&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/voteOnSponsorTime&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Vote on a segment or vote to change the category of the segment.&lt;br /&gt;
&lt;br /&gt;
Creators of the segment and VIPs can remove the segment or change the category with only one vote.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;width:400px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-weight:bold;&amp;quot;&amp;gt;VIP voting notes&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
VIP upvotes will:&lt;br /&gt;
* lock the segment&lt;br /&gt;
* remove &amp;quot;hidden&amp;quot; property&lt;br /&gt;
* remove &amp;quot;shadowHidden&amp;quot; property&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input: Normal Vote&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  UUID: string, // UUID of the segment being voted on&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  type: int // 0 for downvote, 1 for upvote, 20 to undo vote&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;OR&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input: Category Vote&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  UUID: string, // UUID of the segment being voted on&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  category: string // Category to change this submission to [1]&lt;br /&gt;
} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Reason given in request (moderation)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/viewedVideoSponsorTime&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Add view to segment&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  UUID: string // UUID of segment viewed&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/userInfo&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get information about a user&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // local UserID&lt;br /&gt;
  // OR&lt;br /&gt;
  publicUserID: string // Public userID&lt;br /&gt;
&lt;br /&gt;
  values: string[] // Optional, Values to get from userInfo&lt;br /&gt;
    // default values are&lt;br /&gt;
    // [&amp;quot;userID&amp;quot;, &amp;quot;userName&amp;quot;, &amp;quot;minutesSaved&amp;quot;, &amp;quot;segmentCount&amp;quot;, &amp;quot;ignoredSegmentCount&amp;quot;,&lt;br /&gt;
    // &amp;quot;viewCount&amp;quot;, &amp;quot;ignoredViewCount&amp;quot;, &amp;quot;warnings&amp;quot;, &amp;quot;warningReason&amp;quot;, &amp;quot;reputation&amp;quot;,&lt;br /&gt;
    // &amp;quot;vip&amp;quot;, &amp;quot;lastSegmentID&amp;quot;]&lt;br /&gt;
  // OR&lt;br /&gt;
  value: string // Optional, Value to get from userInfo, can be repeated for multiple values&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Public userID&lt;br /&gt;
  userName: string, // Public userID if not set&lt;br /&gt;
  minutesSaved: float, // Minutes saved&lt;br /&gt;
  segmentCount: int, // Total number of segments excluding ignored/ hidden segments&lt;br /&gt;
  ignoredSegmentCount: int, // Total number of ignored/ hidden segments&lt;br /&gt;
  viewCount: int, // Total number of views excluding view on ignored/ hidden segments&lt;br /&gt;
  ignoredViewCount: int, // Total number of view on ignored/ hidden segments&lt;br /&gt;
  warnings: int, // Currently enabled warnings&lt;br /&gt;
  reputation: float, &lt;br /&gt;
  vip: int, // VIP status&lt;br /&gt;
  lastSegmentID: string, // UUID of last submitted segment&lt;br /&gt;
  permissions: { // Can the user submit segments of this category?&lt;br /&gt;
    category: boolean // [1]&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/userStats&amp;lt;/code&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Get stats for a user&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // local UserID&lt;br /&gt;
  // OR&lt;br /&gt;
  publicUserID: string // Public userID&lt;br /&gt;
&lt;br /&gt;
  fetchCategoryStats: boolean // default false, display category stats&lt;br /&gt;
  fetchActionTypeStats: boolean // default false, display type stats&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // hashed userID&lt;br /&gt;
  userName: string // userName&lt;br /&gt;
  overallStats: {&lt;br /&gt;
    minutesSaved: integer // same as userInfo&lt;br /&gt;
    segmentCount: integer // same as userInfo&lt;br /&gt;
  }&lt;br /&gt;
  // IF CHOSEN&lt;br /&gt;
  categoryCount: { // # of segments per category&lt;br /&gt;
    sponsor: integer&lt;br /&gt;
    intro: integer&lt;br /&gt;
    outro: integer&lt;br /&gt;
    interaction: integer&lt;br /&gt;
    selfpromo: integer&lt;br /&gt;
    music_offtopic: integer&lt;br /&gt;
    preview: integer&lt;br /&gt;
    poi_highlight: integer&lt;br /&gt;
    filler: integer,&lt;br /&gt;
    exclusive_access: integer,&lt;br /&gt;
    chapter: integer&lt;br /&gt;
  }&lt;br /&gt;
  // IF CHOSEN&lt;br /&gt;
  actionTypeCount: { // # of segments per type&lt;br /&gt;
    skip: integer,&lt;br /&gt;
    mute: integer,&lt;br /&gt;
    full: integer,&lt;br /&gt;
    poi: integer,&lt;br /&gt;
    chapter: integer&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getViewsForUser&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get the number of views a user has on all their segments&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // Local userID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  viewCount: int&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getSavedTimeForUser&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get the total time saved from all the user&#039;s segments&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // Local userID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  timeSaved: float // In minutes&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/setUsername&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Set a username for a userID&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters): Setting username for self&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  username: string, // Optional&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;OR&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters): Setting username as &#039;&#039;&#039;admin&#039;&#039;&#039;&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Public userID&lt;br /&gt;
  username: string, // Optional&lt;br /&gt;
  adminUserID: string // Admin&#039;s local userID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not an admin)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getUsername&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get current username&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string // Local userID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userName: string // Public userID if no username has been set&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/segmentInfo&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get information about segments&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  // Only the first 10 entries will be processed&lt;br /&gt;
  UUID: string, // Can be repeated for multiple segments&lt;br /&gt;
  // OR&lt;br /&gt;
  UUIDs: string[] // Looks like [&amp;quot;a...0&amp;quot;, &amp;quot;b...1&amp;quot;]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  startTime: float,&lt;br /&gt;
  endTime: float,&lt;br /&gt;
  votes: int,&lt;br /&gt;
  locked: int, // Status of lock - If upvoted by a VIP, the segment is locked&lt;br /&gt;
  UUID: string,&lt;br /&gt;
  userID: string, // PublicID of submitter&lt;br /&gt;
  timeSubmitted: int,&lt;br /&gt;
  views: int, // Number of reported views on the segment&lt;br /&gt;
  category: string, // [1]&lt;br /&gt;
  service: string, // [2]&lt;br /&gt;
  actionType: string, // [3]&lt;br /&gt;
  videoDuration: int,&lt;br /&gt;
  hidden: int, // If the segment has 2 downvotes or was downvoted by a VIP&lt;br /&gt;
  reputation: int, // Reputation of submitter at time of submission&lt;br /&gt;
  shadowHidden: int, // If the submitter is shadowbanned&lt;br /&gt;
  hashedVideoID: string, // sha256 hash of the videoID&lt;br /&gt;
  userAgent: string, // userAgent of the submitter,&lt;br /&gt;
  description: string // title for chapters, empty string for other segments&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/userID&amp;lt;/code&amp;gt;=====&lt;br /&gt;
List all users matching the username search&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  username: string, // search string for username&lt;br /&gt;
    // case sensitive&lt;br /&gt;
    // minimum for non-exact search is 3 characters, maximum is 64 characters&lt;br /&gt;
  exact: boolean // searches for exact username with no wildcard at end&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object - maximum 10 results&lt;br /&gt;
  userName: string,&lt;br /&gt;
  userID: string&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible) or exceed the character limits&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/lockCategories&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get locked categories for a video&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  actionTypes: string[] // [3]&lt;br /&gt;
    // default [skip, mute]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  categories: string[], // [1]&lt;br /&gt;
  reason: string, // Specified reason for the lock&lt;br /&gt;
    // Only the most recent reason will be returned&lt;br /&gt;
  actionTypes: string[] // [3]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/lockCategories/:sha256HashPrefix&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get locked categories for a video with extra privacy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sha256HashPrefix&amp;lt;/code&amp;gt; is a hash of the YouTube &amp;lt;code&amp;gt;videoID&amp;lt;/code&amp;gt;. It should be the first 4 - 32 characters (4 is recommended). This provides extra privacy by potentially finding more than just the video you are looking for. This makes the server not know exactly what video you are looking for.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  prefix: sha256HashPrefix // Optional if not sent through path&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object&lt;br /&gt;
   videoID: string,&lt;br /&gt;
   hash: string, // The full hash of the videoID&lt;br /&gt;
   categories&amp;quot;: string[], // [1]&lt;br /&gt;
   reason: string // Specified reason for the lock&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/lockReason&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get reason for lock(s)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string&lt;br /&gt;
  &lt;br /&gt;
  // Categories to get reasons for, defaults to all [1]&lt;br /&gt;
  category: string&lt;br /&gt;
  // OR&lt;br /&gt;
  categories: string[],&lt;br /&gt;
  actionTypes: string[] // [3]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
[{ // Array of this object&lt;br /&gt;
  category: string, // category [1]&lt;br /&gt;
  locked: integer, // status of lock&lt;br /&gt;
  reason: string, // reason for lock&lt;br /&gt;
  userID: string, // publicID of locking VIP&lt;br /&gt;
  userName: string // username of locking VIP&lt;br /&gt;
}]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/searchSegments&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get all segments of a video based on specified filters. Note: It is suggested that you don&#039;t use this for knowing which segments to skip on your client, as thresholds and values that determine which segments are the best change over time. Using [https://wiki.sponsor.ajay.app/index.php/API_Docs#GET_.2Fapi.2FskipSegments /api/skipSegments] ensures that you will always get the best segments.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters) &#039;&#039;&#039;OR&#039;&#039;&#039; (JSON Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  // See skipSegments&lt;br /&gt;
  videoID: string&lt;br /&gt;
&lt;br /&gt;
  category: string // [1]&lt;br /&gt;
  // OR&lt;br /&gt;
  categories: string[]&lt;br /&gt;
&lt;br /&gt;
  actionType: string // [3]&lt;br /&gt;
  // OR&lt;br /&gt;
  actionTypes: string[]&lt;br /&gt;
  &lt;br /&gt;
  service: string // [2]&lt;br /&gt;
  // End SkipSegments&lt;br /&gt;
&lt;br /&gt;
  page: int // Page to start from (default 0)&lt;br /&gt;
  &lt;br /&gt;
  // Vote/ view thresholds, inclusive, default includes all segments&lt;br /&gt;
  minVotes: int&lt;br /&gt;
  maxVotes: int&lt;br /&gt;
&lt;br /&gt;
  minViews: int&lt;br /&gt;
  maxViews: int&lt;br /&gt;
&lt;br /&gt;
  // Default true - if false, don&#039;t show segments that match type&lt;br /&gt;
  locked: boolean&lt;br /&gt;
  hidden: boolean&lt;br /&gt;
  ignored: boolean // hidden or below vote threshold&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:1&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  segmentCount: int, // Total number of segments matching query&lt;br /&gt;
  page: int, // Page number&lt;br /&gt;
  segments: [{ // Array of this object, max 10&lt;br /&gt;
    // see segmentInfo&lt;br /&gt;
    UUID: string,&lt;br /&gt;
    timeSubmitted: int,&lt;br /&gt;
    startTime: int,&lt;br /&gt;
    endTime: int,&lt;br /&gt;
    category: string, // [1]&lt;br /&gt;
    actionType: string, // [3]&lt;br /&gt;
    votes: int,&lt;br /&gt;
    views: int,&lt;br /&gt;
    locked: int,&lt;br /&gt;
    hidden: int,&lt;br /&gt;
    shadowHidden: int,&lt;br /&gt;
    userID: string, // UUID of submitter&lt;br /&gt;
    description: string // title for chapters, empty string for other segments&lt;br /&gt;
  }]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/status/:value&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get status of server&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input:&#039;&#039;&#039; (URL path)&lt;br /&gt;
&lt;br /&gt;
Can be any key value in response, requests without path will return all values.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  uptime: int, // Uptime of server in seconds&lt;br /&gt;
  commit: string, // Full SHA hash of latest git commit, development or test&lt;br /&gt;
  db: int, // Current database version&lt;br /&gt;
  startTime: int, // Unix time (miliseconds) that request was received&lt;br /&gt;
  processTime: int, // Delay between DB request made and response received (miliseconds)&lt;br /&gt;
  redisProcessTime: int, // Delay between redis request made and response received (miliseconds)&lt;br /&gt;
  loadavg: int[], // 5 and 15 minute loadavg&lt;br /&gt;
  statusRequests: int, // number of /status requests in the last minute&lt;br /&gt;
  hostname: string // hostname of current server&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
404: Not Found&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
===Stats Calls===&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getTopUsers&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get top submitters&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  sortType: int&lt;br /&gt;
    // 0 for by minutes saved&lt;br /&gt;
    // 1 for by view count&lt;br /&gt;
    // 2 for by total submissions&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userNames: string[],&lt;br /&gt;
  viewCounts: int[],&lt;br /&gt;
  totalSubmissions: int[],&lt;br /&gt;
  minutesSaved: float[]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getTopCategoryUsers&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get top submitters by category&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  sortType: int,&lt;br /&gt;
    // 0 for by minutes saved&lt;br /&gt;
    // 1 for by view count&lt;br /&gt;
    // 2 for by total submissions&lt;br /&gt;
  category: string // category to fetch stats for&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userNames: string[],&lt;br /&gt;
  viewCounts: int[],&lt;br /&gt;
  totalSubmissions: int[],&lt;br /&gt;
  minutesSaved: float[]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getTotalStats&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get total stats&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  countContributingUsers: boolean // Optional, default false&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userCount: int, // Only if countContributingUsers was true&lt;br /&gt;
  activeUsers: int, // Sum of public install stats from Chrome webstore and Firefox addons store&lt;br /&gt;
  apiUsers: int, // 48-hour active API users (https://github.com/ajayyy/PrivacyUserCount)&lt;br /&gt;
  viewCount: int,&lt;br /&gt;
  totalSubmissions: int,&lt;br /&gt;
  minutesSaved: float&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
None&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/getDaysSavedFormatted&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Get days saved by all skips&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  daysSaved: float (2 decimal places)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
None&lt;br /&gt;
-----&lt;br /&gt;
===VIP Calls===&lt;br /&gt;
These can only be called by the users added to the VIP table.&lt;br /&gt;
=====&#039;&#039;&#039;GET&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/isUserVIP&amp;lt;/code&amp;gt;=====&lt;br /&gt;
If the user is a VIP&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  hashedUserID: string, // Public userID&lt;br /&gt;
  vip: boolean&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/lockCategories&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Create a category lock on the video, disallowing further submissions for that category&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  categories: string[], // [1]&lt;br /&gt;
  actionTypes: string[], // [3]&lt;br /&gt;
  reason: string, // Reason for lock&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  submitted: string[], // categories [1]&lt;br /&gt;
  submittedValues: {&lt;br /&gt;
    actionType: string, // [3]&lt;br /&gt;
    category: string // [1]&lt;br /&gt;
  } // array of this object&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; &amp;lt;ref name=&amp;quot;:2&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
===== &#039;&#039;&#039;DELETE&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/lockCategories&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Delete existing category locks on that video&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  categories: string[] // [1]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  message: &amp;quot;Removed lock categories entries for video videoID&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/shadowBanUser&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Shadow banned submissions are hidden for everyone but the IP that originally submitted it. Shadow banning a user shadow bans all future submissions.&lt;br /&gt;
&lt;br /&gt;
User can be re-shadowbanned if segments were not previously hidden&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Public userID of the user you want to shadowBan&lt;br /&gt;
  adminUserID: string, // Local userID of VIP or Admin&lt;br /&gt;
  enabled: boolean, // Optional, default true, true to ban and false to unban&lt;br /&gt;
  unHideOldSubmissions: boolean, // Optional, depends on the enabled parameter, should all previous submissions be (un)hidden as well?&lt;br /&gt;
  categories: string // Optional, defaults to all categories, in the format &amp;quot;[&amp;quot;sponsor&amp;quot;, &amp;quot;selfpromo&amp;quot;]&amp;quot; etc...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
&lt;br /&gt;
409: Duplicate (User already shadowbanned &amp;amp; unHideOldSubmissions not changed)&lt;br /&gt;
-----&lt;br /&gt;
===== &#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/warnUser&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Temporary ban that shows a warning asking them to contact us.&lt;br /&gt;
&lt;br /&gt;
If a user is re-warned but there is still a non-expired warning, it is reenabled&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt; {&lt;br /&gt;
  issuerUserID: string, // Issuer userID (Local userID)&lt;br /&gt;
  userID: string, // Public userID you are warning&lt;br /&gt;
  reason: string, // Optional&lt;br /&gt;
  enabled: boolean // Optional, default true&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
&lt;br /&gt;
409: User already warned&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/clearCache&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Clear redis cache for video.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  videoID: string&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Cache cleared on video videoID (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/purgeAllSegments&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Hide all segments on a video without affecting submitters&#039; reputation&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  service: string // Service of video, defaults to YouTube&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP)&lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/segmentShift&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Shift all segments on a video&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  videoID: string,&lt;br /&gt;
  userID: string, // Local userID&lt;br /&gt;
  startTime: float,&lt;br /&gt;
  endTime: float&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP) &lt;br /&gt;
-----&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/addUserAsTempVIP&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Add temporary 24 Hour Channel VIP&lt;br /&gt;
&lt;br /&gt;
A user cannot be a VIP of multiple channels, the most recent channel will take precedence and override &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // User to grant temp VIP to&lt;br /&gt;
  adminUserID: string, // Local userID of existing VIP&lt;br /&gt;
  channelVideoID: string, // videoID of channel to grant VIP on&lt;br /&gt;
  enabled: string // default &amp;quot;true&amp;quot; Enable or disable VIP status&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Temp VIP added on channel channelName (status code 200)&lt;br /&gt;
  Temp VIP removed (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP) &lt;br /&gt;
&lt;br /&gt;
404: Not Found (No channel found for videoID) &lt;br /&gt;
&lt;br /&gt;
409: Duplicate (User is already a permanent VIP) &lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/feature&amp;lt;/code&amp;gt;=====&lt;br /&gt;
Add or remove user features&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (Request Body):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // User to add or remove features from&lt;br /&gt;
  adminUserID: string, // Local userID of existing VIP&lt;br /&gt;
  feature: int, // [4]&lt;br /&gt;
  enabled: boolean // default &amp;quot;true&amp;quot; Enable or disable feature&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References: &amp;lt;ref name=&amp;quot;:4&amp;quot;&amp;gt;See [[Types#User_Features|Types]] for a full list of possible user features.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible or the feature does not exist)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not a VIP) &lt;br /&gt;
-----&lt;br /&gt;
===Admin Calls===&lt;br /&gt;
These can only be called by the server administrator, set in the config.&lt;br /&gt;
=====&#039;&#039;&#039;POST&#039;&#039;&#039; &amp;lt;code&amp;gt;/api/addUserAsVIP&amp;lt;/code&amp;gt;=====&lt;br /&gt;
VIPs have extra privileges and their votes count more.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Input&#039;&#039;&#039; (URL Parameters):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  userID: string, // Public userID of the user you want to add to the VIP list&lt;br /&gt;
  adminUserID: string, // Admin&#039;s local userID&lt;br /&gt;
  enabled: boolean // Optional, to be able to add and remove users (default: false)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Response&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ts&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  Nothing (status code 200)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error codes&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
400: Bad Request (Your inputs are wrong/impossible)&lt;br /&gt;
&lt;br /&gt;
403: Unauthorized (You are not an admin)&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
===Legacy API===&lt;br /&gt;
https://github.com/ajayyy/SponsorBlock/wiki/Legacy-API&lt;br /&gt;
===Local userID vs Public userID===&lt;br /&gt;
The local userID should be a randomly generated and saved client side and must be 32 characters (or more). If it is not 32 characters or more, you will not be able to vote or submit. The public userID is what is used as an identifier in the database. This is the local userID with a SHA 256 hash 5000 times.&lt;br /&gt;
&lt;br /&gt;
=== References ===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
__INDEX__&lt;br /&gt;
__NEWSECTIONLINK__&lt;/div&gt;</summary>
		<author><name>Grub</name></author>
	</entry>
	<entry>
		<id>https://wiki.sponsor.ajay.app/index.php?title=Full_Video_Labels&amp;diff=839</id>
		<title>Full Video Labels</title>
		<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/index.php?title=Full_Video_Labels&amp;diff=839"/>
		<updated>2022-01-16T03:41:59Z</updated>

		<summary type="html">&lt;p&gt;Grub: seperated -&amp;gt; separated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;&#039;&#039;Full video labels should not be used on every video or channel which is sponsored.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The label should only be applied if the entire video is based around or features the product and removing mentions would remove the majority of the video.&lt;br /&gt;
&lt;br /&gt;
Even when a video is labelled as such, the parts that &#039;&#039;&#039;can be cleanly skipped&#039;&#039;&#039; should still be skipped but the disclosure should still be left intact.&lt;br /&gt;
&lt;br /&gt;
=== Sponsor ===&lt;br /&gt;
This label should only be used when the creator has been &#039;&#039;&#039;paid in money&#039;&#039;&#039; to advertise something shown in the video that cannot be completely removed by cuts.&lt;br /&gt;
&lt;br /&gt;
This should not be used when a creator is given a free product from a company&lt;br /&gt;
&lt;br /&gt;
=== Exclusive Access ===&lt;br /&gt;
This label should only be used when the creator showcases a product, service or location that they&#039;ve received free or subsidised access to in the video that cannot be completely removed by cuts.&lt;br /&gt;
&lt;br /&gt;
=== Unpaid/Self Promotion ===&lt;br /&gt;
This follows the same rules as [[Unpaid/Self Promotion]]&lt;br /&gt;
&lt;br /&gt;
This should not be used when a creator is given a free product from a company.&lt;br /&gt;
&lt;br /&gt;
https://blog.ajay.app/full-video-sponsorblock&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Description&lt;br /&gt;
!Video Link&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |Sponsor&lt;br /&gt;
|-&lt;br /&gt;
|Sponsored showcase&lt;br /&gt;
|[https://www.youtube.com/watch?v=R3iNAQqqnjE Never Do Tech Support For Your Family Again! - Acronis Friday Showcase]&lt;br /&gt;
|-&lt;br /&gt;
|Sponsored showcase&lt;br /&gt;
|[https://www.youtube.com/watch?v=wBfNE5fi5BE Sponsors Aren&#039;t SAFE! - NZXT Capsule Microphone]&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |Exclusive Access&lt;br /&gt;
|-&lt;br /&gt;
|Exclusive access to product under embargo&lt;br /&gt;
|[https://www.youtube.com/watch?v=V7DnNoAnbDc &amp;lt;nowiki&amp;gt;They FINALLY Made a PERFECT CAMERA [DJi RONIN 4D]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
|-&lt;br /&gt;
|Exclusive access to facility&lt;br /&gt;
|[https://www.youtube.com/watch?v=ssZ_8cqfBlE How many robots does it take to run a grocery store?]&lt;br /&gt;
|-&lt;br /&gt;
|Exclusive access to product under embargo&lt;br /&gt;
|[https://www.youtube.com/watch?v=UMBLCv54JPw Intel i5 12600K Review vs. AMD Ryzen - 10 Cores?!]&lt;br /&gt;
|-&lt;br /&gt;
|Early access to press copy&lt;br /&gt;
|[https://www.youtube.com/watch?v=SQ3Qvuw_fg4 The Far Cry 6 Story Was SHOCKINGLY Great!]&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; |Unpaid/Self Promotion&lt;br /&gt;
|-&lt;br /&gt;
|Entire video is selfpromo for merch &amp;amp; can&#039;t be separated&lt;br /&gt;
|[https://www.youtube.com/watch?v=YMJJZoiFeCY national berd day]&lt;br /&gt;
|-&lt;br /&gt;
|Entire video is trailer&lt;br /&gt;
|[https://www.youtube.com/watch?v=a1x2wn7vcho Achievement Hunter Wrestling | [https://www.youtube.com/watch?v=a1x2wn7vcho Achievement Hunter Wrestling | Official Trailer]&lt;br /&gt;
|-&lt;br /&gt;
|Entire video is for fundraiser &amp;amp; can&#039;t be separated&lt;br /&gt;
|[https://www.youtube.com/watch?v=HPJKxAhLw5I Planting 20,000,000 Trees, My Biggest Project Ever!]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Grub</name></author>
	</entry>
	<entry>
		<id>https://wiki.sponsor.ajay.app/index.php?title=Highlight&amp;diff=652</id>
		<title>Highlight</title>
		<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/index.php?title=Highlight&amp;diff=652"/>
		<updated>2021-11-07T04:28:25Z</updated>

		<summary type="html">&lt;p&gt;Grub: /* Specifics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
=== Description ===&lt;br /&gt;
This is for getting to the point or highlight of the video. &lt;br /&gt;
&lt;br /&gt;
=== Specifics ===&lt;br /&gt;
Highlights are not &amp;quot;chapters&amp;quot;, only one highlight is displayed per video. [https://github.com/ajayyy/SponsorBlock/issues/409 Chapters Proposal]&lt;br /&gt;
&lt;br /&gt;
Highlights will only jump to a point in the video, hence the start and end time is identical.&lt;br /&gt;
&lt;br /&gt;
Highlight doesn&#039;t label the content before it, it labels the content &#039;&#039;after&#039;&#039; it.&lt;br /&gt;
&lt;br /&gt;
==== Uses (In order of priority)[https://blog.ajay.app/highlight-sponsorblock] ====&lt;br /&gt;
&lt;br /&gt;
# Skipping to the point/most important part of the video&lt;br /&gt;
# Skipping to the part of the video referred to by the title&lt;br /&gt;
# Skipping to the part of the video referred to by the thumbnail&lt;br /&gt;
# Skipping to the part of the video referenced from a preview/teaser at the start of the video&lt;/div&gt;</summary>
		<author><name>Grub</name></author>
	</entry>
	<entry>
		<id>https://wiki.sponsor.ajay.app/index.php?title=Highlight&amp;diff=651</id>
		<title>Highlight</title>
		<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/index.php?title=Highlight&amp;diff=651"/>
		<updated>2021-11-07T04:22:14Z</updated>

		<summary type="html">&lt;p&gt;Grub: /* Had some good discussion in channel and clarification from Ajay https://discord.com/channels/603643120093233162/609441389423493128/906758072272302101 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
=== Description ===&lt;br /&gt;
This is for getting to the point or highlight of the video. &lt;br /&gt;
&lt;br /&gt;
=== Specifics ===&lt;br /&gt;
Highlights are not &amp;quot;chapters&amp;quot;, only one highlight is displayed per video. [https://github.com/ajayyy/SponsorBlock/issues/409 Chapters Proposal]&lt;br /&gt;
&lt;br /&gt;
Highlights will only jump to a point in the video, hence the start and end time is identical.&lt;br /&gt;
&lt;br /&gt;
Highlight doesn&#039;t label the content before it, it labels the content &#039;&#039;after&#039;&#039; it. If other segment types exist in what would be labelled Highlight, include them in the Highlight segment. Do not tag them separately.&lt;br /&gt;
&lt;br /&gt;
==== Uses (In order of priority)[https://blog.ajay.app/highlight-sponsorblock] ====&lt;br /&gt;
&lt;br /&gt;
# Skipping to the point/most important part of the video&lt;br /&gt;
# Skipping to the part of the video referred to by the title&lt;br /&gt;
# Skipping to the part of the video referred to by the thumbnail&lt;br /&gt;
# Skipping to the part of the video referenced from a preview/teaser at the start of the video&lt;/div&gt;</summary>
		<author><name>Grub</name></author>
	</entry>
	<entry>
		<id>https://wiki.sponsor.ajay.app/index.php?title=Unpaid/Self_Promotion&amp;diff=299</id>
		<title>Unpaid/Self Promotion</title>
		<link rel="alternate" type="text/html" href="https://wiki.sponsor.ajay.app/index.php?title=Unpaid/Self_Promotion&amp;diff=299"/>
		<updated>2021-09-02T23:53:17Z</updated>

		<summary type="html">&lt;p&gt;Grub: added giveaways&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Similar to &amp;quot;sponsor&amp;quot; except for unpaid or self promotion. This includes sections about merchandise, donations, giveaways, or information about who they collaborated with.&lt;/div&gt;</summary>
		<author><name>Grub</name></author>
	</entry>
</feed>