1
0
mirror of https://github.com/Decicus/DecAPI-Docs.git synced 2024-11-22 08:52:31 +01:00

[YouTube] Document caching on videoid

This commit is contained in:
Alex Thomassen 2022-10-11 19:24:26 +02:00
parent 3dd4b628e7
commit 05c25b8b96
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
2 changed files with 19 additions and 0 deletions

View File

@ -34,3 +34,4 @@ endpoints:
notes:
- 'Searches the YouTube API with the specified string and returns the first result it can find (if any).'
- 'If the search string is a valid video ID, it will just return the video ID.'
- 'Searches are cached for up to 3 hours, to avoid repeated YouTube API requests. This only applies to exact & case insensitive matches on search queries.'

View File

@ -83,6 +83,24 @@
</tr>
</tbody>
</table>
<h3><i class="fab fa-youtube"></i> YouTube</h3>
<table class="table table-bordered">
<thead>
<th><i class="fas fa-link fa-fw fa-1x"></i> API Endpoint</th>
<th><i class="fas fa-clock fa-fw fa-1x"></i> Cache length</th>
<th><i class="fas fa-sticky-note fa-fw fa-1x"></i> Description</th>
</thead>
<tbody>
<tr>
<td><code>videoid</code></td>
<td>3 hours (10800 seconds)</td>
<td>
Searches are cached for up to 3 hours. Only affects exact searches (case insensitive, e.g. <code>Never Gonna Give You Up</code> = <code>never gonna give you up</code>).
</td>
</tr>
</tbody>
</table>
</div>
</template>