mirror of
https://github.com/Decicus/DecAPI-Docs.git
synced 2024-11-22 21:02:30 +01:00
Merge pull request #35 from Decicus/at/youtube-videoid-cache
This commit is contained in:
commit
7a1814d377
@ -34,3 +34,4 @@ endpoints:
|
|||||||
notes:
|
notes:
|
||||||
- 'Searches the YouTube API with the specified string and returns the first result it can find (if any).'
|
- '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.'
|
- '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.'
|
||||||
|
@ -83,6 +83,24 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user