Exécute une recherche filtrée sur les vidéos YouTube indexées et renvoie les résultats avec leur créateur et leurs compteurs d'engagement, de façon paginée. Les recherches consomment plus de quota qu'une consultation unitaire.
/api/v1/search/youtube/videoConsommation de quota: Chaque requête réussie vers ce point de terminaison déduit 100 unités de quota de votre forfait.
Famille de chemins multiplateforme
/api/v1/search/{platform}/videoPlateformes disponibles
Paramètres de requête
Paramètres obligatoires
Ce point de terminaison n'a aucun paramètre obligatoire.
Paramètres optionnels
| Nom | Emplacement | Type | Description |
|---|---|---|---|
page | body | integer | page number example: 0 |
page_size | body | integer | page size example: 0 |
query | body | object | Search term example: string |
categorys | body | object | Category |
locations | body | object | Country |
follower_count_min | body | object | Minimum follower count example: 0 |
follower_count_max | body | object | Maximum follower count example: 0 |
create_at_start | body | object | Publish time from example: string |
create_at_end | body | object | Publish time to example: string |
avg_engagement_rate_min | body | object | Minimum average engagement rate example: 0 |
avg_engagement_rate_max | body | object | Maximum average engagement rate example: 0 |
avg_comment_count_min | body | object | Minimum average comments example: 0 |
avg_comment_count_max | body | object | Maximum average comments example: 0 |
avg_like_count_min | body | object | Minimum average likes example: 0 |
avg_like_count_max | body | object | Maximum average likes example: 0 |
avg_play_count_min | body | object | Minimum average plays example: 0 |
avg_play_count_max | body | object | Maximum average plays example: 0 |
gender | body | object | Gender (0 = unknown, 1 = male, 2 = female) example: 0 |
recent_month_publish_count_min | body | object | Minimum posts in the last month example: 0 |
recent_month_publish_count_max | body | object | Maximum posts in the last month example: 0 |
video_type | body | object | Video type (1 = video, 2 = short) example: 0 |
Champs de réponse
| Nom | Type | Description |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.items | array<object> | Items |
data.total | integer | Total |
data.page | integer | Page |
data.page_size | integer | Page Size |
data.total_pages | integer | Total Pages |
Tester
Corps JSON
Exemple cURL
curl -X POST "https://openapi.scdata.cc/api/v1/search/youtube/video" \-H "Authorization: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"page":0,"page_size":0,"query":"string","categorys":[0],"locations":["string"],"follower_count_min":0,"follower_count_max":0,"create_at_start":"string","create_at_end":"string","avg_engagement_rate_min":0,"avg_engagement_rate_max":0,"avg_comment_count_min":0,"avg_comment_count_max":0,"avg_like_count_min":0,"avg_like_count_max":0,"avg_play_count_min":0,"avg_play_count_max":0,"gender":0,"recent_month_publish_count_min":0,"recent_month_publish_count_max":0,"video_type":0}'
Exemple de réponse (200 application/json)
{"success": true,"code": 200,"message": "Request successful","data": {"items": [{"video_id": "string","title": "string","description": "string","cover_url": "string","create_at": "2019-08-24T14:15:22.123Z","duration": "string","video_url": "string","channel_title": "string","channel_id": "string","channel_avatar": "string","channel_follower_count": 0,"video_type": "string","category_id": 0,"like_count": 0,"comment_count": 0,"play_count": 0,"engagement_rate": "string","channel": {"channel_id": "string","title": "string","avatar": "string","country": "string","gender": "string","follower_count": 0,"avg_engagement_rate": "string","avg_play_count": "string","video_count": 0,"evaluation_min": "string","evaluation_max": "string"}}],"total": 0,"page": 0,"page_size": 0,"total_pages": 0}}
Cas d'usage
- Recherche thématique — Découvrez les contenus existants autour d'un mot-clé produit et leur performance.
- Découverte de créateurs via le contenu — Identifiez des créateurs par les vidéos qu'ils publient plutôt que par la description de leur profil.