Social Media
YouTube Shorts
Search YouTube Shorts by keyword — video id, title, thumbnail, view count, publish time, and author — with cursor pagination, as JSON.
POST/api/v1/youtube/shorts
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsearchstringrequiredSearch query (sent as search).
Example: lofi study
sort_byenum<string>Sort order: relevance, date, view_count, rating.
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.youtube.shorts("lofi study")
print(results)Response
"next_cursor": "EpMDEgtsb2ZpIGhpcCBob3AaggNDQVI2QUhvTA",
"has_more": true
},
"response_time": 1523,
"credits_used": 2,
"credits_remaining": 4755
}