{"openapi":"3.1.0","info":{"title":"YouTube API","version":"2026-11-26","description":"YouTube data as JSON: search videos, shorts, channels and playlists, video details and comments, channel profiles and uploads, playlist contents, and search suggestions.\n\nEvery request needs an API key in the `Authorization: Bearer <key>` header. Create one at https://maviapi.com/dashboard/keys. A successful request uses one credit, unless its operation says more (`x-credits`). That price covers 200 rows (or the operation's `x-credits-rows`); a request that returns more pays it again for each further page of that many rows. The `x-maviapi-credits` response header says what a request cost. A query param an operation does not take is ignored and named in the `x-maviapi-unknown-params` response header; send the `x-maviapi-strict: 1` request header to have such a request refused with a free `400 unknown_param` instead.\n\nEndpoint reference with live examples: https://maviapi.com/apis/youtube","termsOfService":"https://maviapi.com/terms"},"externalDocs":{"description":"API page","url":"https://maviapi.com/apis/youtube"},"servers":[{"url":"https://api.maviapi.com/v1/sites/youtube"}],"security":[{"maviapiKey":[]}],"paths":{"/channel":{"get":{"operationId":"channel","summary":"Channel","description":"Profile of a YouTube channel: id, title, handle, description, subscriber/video/view counts, join date, country, external links, avatar, banner and keywords.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"channel","in":"query","required":false,"description":"channel id (UC...), @handle, or channel URL","schema":{"type":"string","default":"@mkbhd"},"example":"@mkbhd"},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel_id":{"type":["string","null"],"example":"UCBJycsmduvYEL83R_U4JriQ"},"url":{"type":["string","null"],"example":"https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ"},"title":{"type":["string","null"],"example":"Marques Brownlee"},"handle":{"type":["string","null"],"example":"@mkbhd"},"description":{"type":["string","null"],"example":"MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n\nbusiness@MKBHD.com\n\nNYC"},"subscribers_text":{"type":["string","null"],"example":"21.4M subscribers"},"subscribers":{"type":["integer","null"],"example":21400000},"video_count":{"type":["integer","null"],"example":1867},"view_count":{"type":["integer","null"],"example":5907552880},"joined":{"type":["string","null"],"example":"Mar 21, 2008"},"country":{"type":["string","null"],"example":"United States"},"links":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":["string","null"],"example":"Twitter"},"url":{"type":["string","null"],"example":"twitter.com/MKBHD"}}}},"keywords":{"type":["string","null"],"example":"MKBHD MarquesBrownlee Marques Brownlee"},"is_family_safe":{"type":["boolean","null"],"example":true},"avatar":{"type":["string","null"],"example":"https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s900-c-k-c0x00ffffff-no-rj"},"banner":{"type":["string","null"],"example":"https://yt3.googleusercontent.com/zi_48HwHU4s0Hnb6tZuvRzTfCPHrLEnrtIMDLzMauDEyDmURh9JZ4wrNd3lKr7m9uVnT4YjYKw=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj"},"rss_url":{"type":["string","null"],"example":"https://www.youtube.com/feeds/videos.xml?channel_id=UCBJycsmduvYEL83R_U4JriQ"},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/channel_videos":{"get":{"operationId":"channelVideos","summary":"Channel Videos","description":"One page (~30) of a channel's uploads: videos, shorts, live streams or playlists, each with id, url, title, views, published time, duration and thumbnail, plus `next_page_token`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"channel","in":"query","required":false,"description":"channel id (UC...), @handle, or channel URL","schema":{"type":"string","default":"@mkbhd"},"example":"@mkbhd"},{"name":"tab","in":"query","required":false,"description":"videos, shorts, live or playlists","schema":{"type":"string","default":"videos"},"example":"videos"},{"name":"sort","in":"query","required":false,"description":"latest, popular or oldest (videos, shorts and live tabs)","schema":{"type":"string","default":"latest"},"example":"latest"},{"name":"page_token","in":"query","required":false,"description":"`next_page_token` from a previous call (other parameters are then ignored)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"channel_id":{"type":["string","null"],"example":"UCBJycsmduvYEL83R_U4JriQ"},"channel_title":{"type":["string","null"],"example":"Marques Brownlee"},"tab":{"type":["string","null"],"example":"videos"},"sort":{"type":["string","null"],"example":"latest"},"items":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["string","null"],"example":"video"},"video_id":{"type":["string","null"],"example":"KTDJiVpSDTI"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=KTDJiVpSDTI"},"title":{"type":["string","null"],"example":"Can You Trust MKBHD?"},"channel_name":{"type":["string","null"],"example":"Marques Brownlee"},"channel_id":{"type":["string","null"],"example":"UCBJycsmduvYEL83R_U4JriQ"},"published":{"type":["string","null"],"example":"2 days ago"},"views_text":{"type":["string","null"],"example":"3.3M views"},"views":{"type":["integer","null"],"example":3300000},"duration":{"type":["string","null"],"example":"14:19"},"duration_seconds":{"type":["integer","null"],"example":859},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi/KTDJiVpSDTI/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLBVNbjlhZFhOCPQLXOtegSO1Nh2yQ"}}}},"next_page_token":{"type":["string","null"],"example":"4qmFsgK5CxIYVUNCSnljc21kdXZZRUw4M1JfVTRKcmlRGpwLOGdhc0NCcXBDSHFtQ0RxakNBb2tObUkwT1RBeVpHVXRNREF3TUMweU56UTJMVGhpT1RjdE9EZ3paREkwWmpZME9XUTRFdmdIUVdOV09GWmtWbWhmWVRsbVVFcHZlbVV6TmpZd2NXSkVXa2h6T1RkbllUQXdYM2hqU1haNFQyRnVTMWxmWWpkSVQwTlpkMDF1ZFVWNWEwbDFTVlZxYlhWdk9GUnJka3BhTW1jemVHcFRTbUZ0ZGtaS05HVXRjMFJsYWxKZlRFMWtZVTFIZUhKTmNYcHBjbkl0Wm01UVdsSjZTMmN3ZW5wNFJHOXdiUzFuWldaSFMxRldlVjlmVm5Ob2QyeE1jbFZ6YWtwc2NreG1NbTlGYTNoUlUwRnRRMmh1Y1hSMFJGZEVRa3d0WjFoMWRHcDFPV3Q0TlVkaVdWWTVhSEppVWxKa05FUXlWMjVtTldzd1JYSkJSbnB4T0RoSGVYVnFXVGd4WldSSFVHRjZSM0JGVHpSUFZIbzRRVzVYZW10ME1FNWFTRko0VVdwVlYxWmtORUpVYURGc2JtUXpSemh6UkZsbFNqTXROSE5HZEZwVlgzVjVaV2RLUVhremJUY3hkVFZFTFRGVE4xcFVRV0Y1YW1aU1RFZEdUV1ZRUTJKNVJVOVBiRE41UWpsNGVWcHNRakIwYjFnMGNYUlhlUzB5UWs1WFNYUkRhbFZHZUZwTlJrRndXblpVVDFoUFpsUkNhVGxoWlhWMlJUaFFZa2RHUmt4NGRtNDVXRlZFYVhSc09HeENURlpGYTFneE0yUm5UMTl4WDFKR1gyNVRiblJOWDBVM2R6SlpRekJaY0RsbGRVMDRPRkp0VWt4VGVFMXBTM0poVFU5R1pGZFVObU42V0ZOUVYyUlVSVzR5VFdveVIxQm9aMkZpYUdSeVVVbHZjbmd4VUhWcGNtRTJSMGRXZUdGSVNEZEVaakY0Vm05RUxYaHJjMVpFWjBVMFprRm5Na3BLVFRKTFprdzBZVTVUWlVKRFZqTndORzFRVkZKbWVIWTNWbTVEWTFKM1MxSnZWV3d3YlVscmJXOTZWMjkxYjA5aVEzbEtjMkZOVUhCU2VIbG1TRVUxUTFCRFNuTkhVVVpWYkhCdFdraDFabU0xVkhkTFRqRjBRakZUTUV4b1NWRlZURm94YVdwMFUzRjFXa1YwZW5BNFprRmFaazlxUlY5cFlYaGlYM0ZsTURCQ2VYbHBSVXB6VDFGSllrbHBWbmg0WVhWeVpsRm1lSEZNYzNKdFozWk5aRWRzZUZSMFUyMUlaMnhFTnpsdFZFWlJRbGcyY25SVlpVMUNlSEpwWWtKRVNIZHhaRVl0TlRkRk5VOTFjVjk1WVhZMU1qWXdjMWxhV2poc1ozZEtiVTVLT1VGMmJ6ZE9SVnBSUldwMWEwTm1WR2RNTlMxRllXaEpPRFJyVEhKaWVXaFRjbEZIZFhGUlRYbHBkMVJrZFVwSmVYTjVVRUphTTJGYWNqRkRiRkJCYlRKbk5HRTBkbGx4UjFCTVVqSjZSVWh5UldwT1dXbHhWM0I2WVdWcVJUVmhTVGxYTkhwa2JuTXlhek42YkVSU1FuRm1jbnBQUkUxdldtRnVSVzAzUVZSbVVtRXlPVEZIYzBWeVZWaEpTVTVxZWxaUWRqQlZNblJQZDFGQmMxTk5UVTVZY21WeFIwZElWR3h1TFRFemFYQkViekJzUzNOWVozZEhkbmxmV0VoUFZXSjBOa2RyTnkxb2JtcEllVWQxWlU4d1VXTnBOQzB3ZHpObGNrTnBOVGhCVURkaFVqa3hNbTlyY3kxV2R5MUJjVXRoYUhwb1JXUm1RMlJKYWpnMmEyMUhWVTlGUkZFM2RuRnBSVTlqWTFKRFdteHJjR1pzWTNBelNuaExVbGdZQkElM0QlM0Q%3D"},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/comments":{"get":{"operationId":"comments","summary":"Comments","description":"One page (~20) of comments on a video, each with comment id, text, author (name, channel id, verified/creator flags), published time, like count, reply count, and a `replies_token` that, passed back as `page_token`, lists that comment's replies. Also returns the total comment count (first page) and `next_page_token`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"video_id","in":"query","required":false,"description":"11-character video id or video URL","schema":{"type":"string","default":"dQw4w9WgXcQ"},"example":"dQw4w9WgXcQ"},{"name":"sort","in":"query","required":false,"description":"top or newest","schema":{"type":"string","default":"top"},"example":"top"},{"name":"page_token","in":"query","required":false,"description":"`next_page_token` or a comment's `replies_token` from a previous call (video_id/sort then ignored)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"video_id":{"type":["string","null"],"example":"dQw4w9WgXcQ"},"total_comments":{"type":["integer","null"],"example":2462497},"comments":{"type":["array","null"],"items":{"type":"object","properties":{"comment_id":{"type":["string","null"],"example":"UgwPwTibxdgqCHZxktd4AaABAg"},"text":{"type":["string","null"],"example":"My algebra teacher said that this was a link to the test answers"},"published":{"type":["string","null"],"example":"7 years ago"},"is_reply":{"type":["boolean","null"],"example":false},"author_name":{"type":["string","null"],"example":"@bdr8823"},"author_channel_id":{"type":["string","null"],"example":"UCdi6tGxvFvTRGe-7dAn7m7w"},"author_avatar":{"type":["string","null"],"example":"https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj"},"author_is_verified":{"type":["boolean","null"],"example":false},"author_is_creator":{"type":["boolean","null"],"example":false},"likes_text":{"type":["string","null"],"example":"72K"},"likes":{"type":["integer","null"],"example":72000},"replies":{"type":["integer","null"],"example":701},"replies_token":{"type":["string","null"],"example":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D"}}}},"next_page_token":{"type":["string","null"],"example":"Eg0SC2RRdzR3OVdnWGNRGAYy_gIK1AJnZXRfcmFua2VkX3N0cmVhbXMtLUNxWUJDSUFFRlJlMzBUZ2Ftd0VLbGdFSTJGOFFnQVFZQnlLTEFmc2otRzRRMWhYX2FNUzdBaHRxeHZsY0NfckRYRENXaG5idnlvc1FqYWQ1UHVUMUxOa3VmNUxCdWs3clJHR0pELWNvLXJPMjFVZVZFWWhGVzhMUnd2RnBFbXBrZ1lWQU94bFJack1jcFR2REtraHhEaXJBc0RvRVJNeVlGYW1NSmt0UUlWMXdMRzgyU0hrN3hjamMxZ0owUGtmWFNKcG82TEpYZjRzZW5fejctY0lJcVM3UjhraWNEd2NRRkJJRkNMc2dHQUFTQlFqQUlCZ0FFZ1VJaVNBWUFCSUZDSWdnR0FBU0JRaW9JQmdBRWdVSWhpQVlBQklIQ0lRZ0VBOFlBUklGQ0ljZ0dBQVNCd2lGSUJBRkdBRlFBRmdCIhEiC2RRdzR3OVdnWGNRMAB4ASgUQhBjb21tZW50cy1zZWN0aW9u"},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/playlist":{"get":{"operationId":"playlist","summary":"Playlist","description":"A playlist's details (title, description, owner channel, video count, total views) and one page (up to ~100) of its videos in order, each with id, url, title, channel, views, published time, duration and thumbnail, plus `next_page_token`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"playlist_id","in":"query","required":false,"description":"playlist id (PL..., UU..., OLAK...) or a playlist URL","schema":{"type":"string","default":"PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"},"example":"PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"},{"name":"page_token","in":"query","required":false,"description":"`next_page_token` from a previous call to get the next page of videos (playlist_id then ignored)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"playlist_id":{"type":["string","null"],"example":"PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"},"url":{"type":["string","null"],"example":"https://www.youtube.com/playlist?list=PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"},"title":{"type":["string","null"],"example":"Retro Tech"},"description":{"type":["string","null"],"example":"In Retro Tech, Marques Brownlee uncovers the origin and nostalgia of iconic tech.."},"channel_name":{"type":["string","null"],"example":"Marques Brownlee"},"channel_id":{"type":["string","null"],"example":"UCBJycsmduvYEL83R_U4JriQ"},"video_count":{"type":["integer","null"],"example":6},"views":{"type":["integer","null"],"example":1129278},"thumbnail":{"type":["string","null"],"example":"https://i9.ytimg.com/s_p/PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA/landscape_maxresdefault.jpg?sqp=CPiM_tcGir7X7AMICI_G--4FEAE=&rs=AOn4CLAQ7Xw4TlToBUq4pW1M7IbHoWVMEw&v=1574888207&days_since_epoch=20776"},"videos":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["string","null"],"example":"video"},"video_id":{"type":["string","null"],"example":"kMtN9KJHn5Y"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=kMtN9KJHn5Y"},"title":{"type":["string","null"],"example":"RETRO TECH: CAMCORDER"},"channel_name":{"type":["string","null"],"example":"Marques Brownlee"},"channel_id":{"type":["string","null"],"example":"UCBJycsmduvYEL83R_U4JriQ"},"published":{"type":["string","null"],"example":"6 years ago"},"views_text":{"type":["string","null"],"example":"9.3M views"},"views":{"type":["integer","null"],"example":9300000},"duration":{"type":["string","null"],"example":"22:55"},"duration_seconds":{"type":["integer","null"],"example":1375},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi/kMtN9KJHn5Y/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAgVlRoHppgWo5CdYsH2JFKebs27Q"}}}},"next_page_token":{"type":["string","null"],"example":"4qmFsgJbEiRWTFBMQnNQODlDUHJNZU1WMW9QNDJabjJEcldwbkZvU2F1ZkEaDGtnRURDTGNMNEFzQpoCJFZMUExCc1A4OUNQck1lTVYxb1A0MlpuMkRyV3BuRm9TYXVmQQ%3D%3D"},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/search":{"get":{"operationId":"search","summary":"Search","description":"Search YouTube and return one page (~20) of results: videos, shorts, channels and playlists, each with its id, url, title, channel, view count, publish time, duration and thumbnail where applicable, plus `next_page_token` for the following page and `estimated_results`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"query","in":"query","required":false,"description":"search text","schema":{"type":"string","default":"python tutorial"},"example":"python tutorial"},{"name":"type","in":"query","required":false,"description":"all, video, short, channel, playlist or movie","schema":{"type":"string","default":"all"},"example":"all"},{"name":"sort","in":"query","required":false,"description":"relevance or popularity","schema":{"type":"string","default":"relevance"},"example":"relevance"},{"name":"upload_date","in":"query","required":false,"description":"any, today, week, month or year","schema":{"type":"string","default":"any"},"example":"any"},{"name":"duration","in":"query","required":false,"description":"any, short (under 3 min), medium (3-20 min) or long (over 20 min)","schema":{"type":"string","default":"any"},"example":"any"},{"name":"page_token","in":"query","required":false,"description":"`next_page_token` from a previous call to get the next page (other parameters are then ignored)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":["string","null"],"example":"python tutorial"},"estimated_results":{"type":["integer","null"],"example":10051029},"results":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["string","null"],"example":"video"},"video_id":{"type":["string","null"],"example":"ix9cRaBkVe0"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=ix9cRaBkVe0"},"title":{"type":["string","null"],"example":"Python Full Course for free 🐍"},"channel_name":{"type":["string","null"],"example":"Bro Code"},"channel_id":{"type":["string","null"],"example":"UC4SVo0Ue36XCfOyb5Lh1viQ"},"channel_handle":{"type":["string","null"],"example":"@BroCodez"},"published":{"type":["string","null"],"example":"2 years ago"},"duration":{"type":["string","null"],"example":"12:00:00"},"duration_seconds":{"type":["integer","null"],"example":43200},"views_text":{"type":["string","null"],"example":"13,587,986 views"},"views":{"type":["integer","null"],"example":13587986},"is_live":{"type":["boolean","null"],"example":false},"description_snippet":{"type":["string","null"],"example":"python #tutorial #beginners Python tutorial for beginners' full course 2024 *Learn Python in 1 HOUR* ..."},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi/ix9cRaBkVe0/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDsLPZCX5PFS2a-Wng9IwGAduPqOQ"}}}},"next_page_token":{"type":["string","null"],"example":"Es4FEg9weXRob24gdHV0b3JpYWwaugVTQlNDQVF0cGVEbGpVbUZDYTFabE1JSUJDMHMxUzFaRlZUTmhZV1ZSZ2dFTGEzRjBSRFZrY0c0NVF6aUNBU0pRVEhONVpXOWllbGQ0YkRkd2IwdzVTbFJXZVc1a1MyVTJNbWxsYjA0dFRWb3pnZ0VMWmxkcWMyUm9Vak42TTJPQ0FTSlFUSE41Wlc5aWVsZDRiRGR2YlVSdlJWbHljbVl6YjFoMldIaGhOazFRWjJWcmdnRUxYM1ZSY2tvd1ZHdGFiR09DQVF0NlJrRTBjR04wVWxJeFo0SUJJbEJNTFc5emFVVTRNRlJsVkhReVpEbGlabFo1VkdsWVNrRXRWVlJJYmpaWGQxV0NBUXR5Wm5OalZsTXdkblJpZDRJQklsQk1XbEJhY1RCeVgxSmFUMDlyVlZGaVlYUTRUSGxSYVdrek5tTktaakpUVjFTQ0FTSlFURmRMYW1oS2RIRldRV0p1Y1VKNFkyUnFWa2RuVkROMVZsSXhNR0o2VkVWQ2dnRWlVRXhVYWxKMlJHOTZjbVJzZUdvMWQyZElOSEZyZG5kVFQyUklURTlEZURFd1pvSUJJbEJNTFc5emFVVTRNRlJsVkhOcmNtRndUbUo2V0doM2IwWlZhVXhEYWtkbldUZUNBU0pRVEhVd1YxODViRWxKT1dGbmQyZ3hXR3BTZERJME1uaEpjRWhvVUZReWJHeG5nZ0VpVUV4SGFuQnNUa1ZSTVdsME9DMHdRMjF2YkdwVE5YbGxWaTFIYkV0VFZVVjBNSUlCQzIwMk55MWlUM0JQYjFCVmdnRUxVbTlmVFZOalZFUm1WVFNDQVF0ME9IQlFaRXRaY0c5M1NZSUJJbEJNVG1OblgwWldPVzQzY1ZwSFprWnNNa0ZPU1Y5NlNWTjZUbkF5TlRkTWQyNnlBUVlLQkFnVUVBSSUzRBiB4OgYIgtzZWFyY2gtZmVlZA%3D%3D"},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/search_suggestions":{"get":{"operationId":"searchSuggestions","summary":"Search Suggestions","description":"YouTube search autocomplete suggestions for a partial query, as a list of strings (up to ~10).\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"query","in":"query","required":false,"description":"partial search text","schema":{"type":"string","default":"python"},"example":"python"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":["string","null"],"example":"python"},"suggestions":{"type":["array","null"],"items":{"type":"string","example":"python"}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/search_v2":{"get":{"operationId":"searchV2","summary":"Search V2","description":"Search YouTube and return one page of results (videos, shorts, channels, playlists) in YouTube's own ranking, like /search, with cleaner fields: every video and short row carries `published_at` (ISO 8601 upload date-time with its UTC offset), `duration_seconds` (integer, the real video length; null for a live stream) and `views` (exact integer). Also returns `next_page_token` and `estimated_results`. Invalid parameter values answer 400 naming the parameter.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"query","in":"query","required":false,"description":"search text","schema":{"type":"string","default":"python tutorial"},"example":"python tutorial"},{"name":"type","in":"query","required":false,"description":"all, video (regular videos only: no shorts, channels or playlists), short, channel, playlist or movie","schema":{"enum":["all","video","short","channel","playlist","movie"],"type":"string","default":"all"},"example":"all"},{"name":"sort","in":"query","required":false,"description":"relevance or popularity","schema":{"enum":["relevance","popularity"],"type":"string","default":"relevance"},"example":"relevance"},{"name":"upload_date","in":"query","required":false,"description":"any, today, week, month or year","schema":{"enum":["any","today","week","month","year"],"type":"string","default":"any"},"example":"any"},{"name":"duration","in":"query","required":false,"description":"any, short (under 4 min), medium (4-20 min) or long (over 20 min), YouTube's own length buckets","schema":{"enum":["any","short","medium","long"],"type":"string","default":"any"},"example":"any"},{"name":"min_duration","in":"query","required":false,"description":"keep only videos/shorts at least this many seconds long (drops channels, playlists and live streams)","schema":{"type":"integer"}},{"name":"max_duration","in":"query","required":false,"description":"keep only videos/shorts at most this many seconds long (drops channels, playlists and live streams)","schema":{"type":"integer"}},{"name":"lang","in":"query","required":false,"description":"ISO 639-1 language code (e.g. en, de, ja); results in that language are ranked first","schema":{"type":"string","default":"en"},"example":"en"},{"name":"region","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code (e.g. US, DE, JP) the search is run for","schema":{"type":"string","default":"US"},"example":"US"},{"name":"page_token","in":"query","required":false,"description":"`next_page_token` from a previous call; it carries that call's filters, so other parameters are ignored","schema":{"type":"string"}},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":["string","null"],"example":"python tutorial"},"estimated_results":{"type":["integer","null"],"example":9903244},"results":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["string","null"],"example":"video"},"video_id":{"type":["string","null"],"example":"ix9cRaBkVe0"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=ix9cRaBkVe0"},"title":{"type":["string","null"],"example":"Python Full Course for free 🐍"},"channel_name":{"type":["string","null"],"example":"Bro Code"},"channel_id":{"type":["string","null"],"example":"UC4SVo0Ue36XCfOyb5Lh1viQ"},"channel_handle":{"type":["string","null"],"example":"@BroCodez"},"published":{"type":["string","null"],"example":"2 years ago"},"published_at":{"type":["string","null"],"example":"2024-08-20T06:00:54-07:00"},"duration":{"type":["string","null"],"example":"12:00:00"},"duration_seconds":{"type":["integer","null"],"example":43200},"views_text":{"type":["string","null"],"example":"13,708,537 views"},"views":{"type":["integer","null"],"example":13708537},"is_live":{"type":["boolean","null"],"example":false},"description_snippet":{"type":["string","null"],"example":"python #tutorial #beginners Python tutorial for beginners' full course 2024 *Learn Python in 1 HOUR* ..."},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi/ix9cRaBkVe0/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDsLPZCX5PFS2a-Wng9IwGAduPqOQ"}}}},"next_page_token":{"type":["string","null"],"example":"eyJjIjoiRXZJRUVnOXdlWFJvYjI0Z2RIVjBiM0pwWVd3YTNnUlRRbE5EUVZGMGNHVkViR3BWYlVaRFlURmFiRTFKU1VKRE1uUjRaRVZSTVZwSVFuVlBWVTAwWjJkRlRGZ3pWbEpqYTI5M1ZrZDBZV0pIVDBOQlUwcFJWRWhPTlZwWE9XbGxiR1EwWWtSa2QySXdkelZUYkZKWFpWYzFhMU15VlRKTmJXeHNZakEwZEZSV2IzcG5aMFZwVlVWNGVtVlhWblpaYm5CWVpVZDNNMkl5TVVWaU1GWmFZMjVLYlUweU9WbGtiR2cwV1ZSYVRsVkhaR3hoTkVsQ1F6TktiV015VGxkVmVrSXlaRWRLTTJkblJXbFZSWGQwWWpOT2NGSlVaM2RXUjFaVlpFUkthMDlYU20xV2JteFZZVlpvUzFGVE1WWldSV2gxVG14a00xWlpTVUpETTFFMFkwWkNhMU14YkhkaU0yUktaMmRGVEdJeFZrdGlNbmhUVGxkS1dVNXRaVU5CVVhSdFZqSndlbHBIYUZOTk0yOTZXVFJKUWtsc1FrMVhiRUpoWTFSQ2VWZ3hTbUZVTURseVZsWkdhVmxZVVRSVVNHeFNZVmRyZWs1dFRrdGFha3BVVmpGVFEwRlJkRXhPVlhSWFVsWlZlbGxYUm14VldVbENRM3BPYm1OSGJGTldlVEZxWlVjeGNtZG5SV2xWUlhoVllXeEtNbEpIT1RaamJWSnpaVWR2TVdReVpFbE9TRVp5Wkc1a1ZGUXlVa2xVUlRsRVpVUkZkMXB2U1VKSmJFSk5WakIwY1dGRmNEQmpWbHBDV1cwMWVGRnVhR3BhUjNCWFVqSmtWVTB6VmxkVmFrVjNXVzV3VlZKVlMwTkJVWE14VWxjMWQxUnJhM2xoVlU1aFVWbEpRa2xzUWsxa1ZFSllXSHBzYzFOVmF6VlpWMlF6WVVSR1dXRnNTakJOYWxGNVpVVnNkMU5IYUZGV1JFcHpZa2RsUTBGUmRFdGpla0V4VVdwb1lVMVhiREpTV1VsQ1EzcGFTR1JZYkU1WGFURnFWVE53Um1kblJVeFZiVGxtVkZaT2FsWkZVbTFXVkZONVFWRlpTMEpCWjFaRlFVa2xNMFFZZ2VEb0dDSUxjMlZoY21Ob0xXWmxaV1ElM0QiLCJmIjpbImFsbCIsbnVsbCxudWxsLCJlbiIsIlVTIl19"},"pagination":{"type":["object","null"],"properties":{"count":{"type":["integer","null"],"example":22},"has_more":{"type":["boolean","null"],"example":true},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/transcript":{"get":{"operationId":"transcript","summary":"Transcript","description":"The transcript (captions) of a video in one language, as `rows` of `start` and `duration` (seconds) and `text`, plus every caption language the video has (`languages`, each with code, name and whether it is auto-generated). Human-made captions are preferred over auto-generated ones in the same language. A video without captions returns empty `languages` and `rows`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"video_id","in":"query","required":false,"description":"11-character video id, or any youtube.com / youtu.be video URL","schema":{"type":"string","default":"dQw4w9WgXcQ"},"example":"dQw4w9WgXcQ"},{"name":"lang","in":"query","required":false,"description":"caption language code such as en, de or pt-BR (a bare code like pt also matches pt-BR); one of the video's `languages`. Omit for the video's own default caption language.","schema":{"type":"string"}},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"video_id":{"type":["string","null"],"example":"dQw4w9WgXcQ"},"title":{"type":["string","null"],"example":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"},"language":{"type":["string","null"],"example":"en"},"language_name":{"type":["string","null"],"example":"English"},"is_auto_generated":{"type":["boolean","null"],"example":false},"languages":{"type":["array","null"],"items":{"type":"object","properties":{"code":{"type":["string","null"],"example":"en"},"name":{"type":["string","null"],"example":"English"},"is_auto_generated":{"type":["boolean","null"],"example":false}}}},"rows":{"type":["array","null"],"items":{"type":"object","properties":{"start":{"type":["number","null"],"example":1.36},"duration":{"type":["number","null"],"example":1.68},"text":{"type":["string","null"],"example":"[♪♪♪]"}}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/transcripts":{"get":{"operationId":"transcripts","summary":"Transcripts","description":"Transcripts of up to 20 videos in one call, in the order given. Each row in `videos` has `id`, `title`, `language` (caption language code used), `language_name`, `is_auto_generated`, `segments` (each `start` and `duration` in seconds, and `text`) and `chapters` from the video description (each `start` in seconds and `title`; empty when the description lists none). A video without captions, or that cannot be fetched, gives a row with `id` and `error` (`code`, `message`) instead of failing the call; `code` is `invalid_id`, `unavailable`, `no_transcript` or `fetch_failed`.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"ids","in":"query","required":false,"description":"comma-separated video ids or video URLs, at most 20 (duplicates are dropped)","schema":{"type":"string","default":"dQw4w9WgXcQ,jNQXAC9IVRw"},"example":"dQw4w9WgXcQ,jNQXAC9IVRw"},{"name":"lang","in":"query","required":false,"description":"comma-separated caption language codes in order of preference, such as `de,en` (a bare code like pt also matches pt-BR); when none of them exists the video's original caption language is used. Empty for always the original.","schema":{"type":"string","default":"en"},"example":"en"},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":["integer","null"],"example":2},"videos":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["string","null"],"example":"dQw4w9WgXcQ"},"title":{"type":["string","null"],"example":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"},"language":{"type":["string","null"],"example":"en"},"language_name":{"type":["string","null"],"example":"English"},"is_auto_generated":{"type":["boolean","null"],"example":false},"segments":{"type":["array","null"],"items":{"type":"object","properties":{"start":{"type":["number","null"],"example":1.36},"duration":{"type":["number","null"],"example":1.68},"text":{"type":["string","null"],"example":"[♪♪♪]"}}}},"chapters":{"type":["array","null"],"items":{}}}}},"pagination":{"type":["object","null"],"properties":{"count":{"type":["integer","null"],"example":2},"has_more":{"type":["boolean","null"],"example":false},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/video":{"get":{"operationId":"video","summary":"Video","description":"Full details of one video: title, description, channel (id, name, handle, subscribers), publish date, duration, view/like/comment counts, category, keywords, live/short flags, thumbnail and related videos.\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"video_id","in":"query","required":false,"description":"11-character video id, or any youtube.com / youtu.be video URL","schema":{"type":"string","default":"dQw4w9WgXcQ"},"example":"dQw4w9WgXcQ"},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"video_id":{"type":["string","null"],"example":"dQw4w9WgXcQ"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"title":{"type":["string","null"],"example":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"},"description":{"type":["string","null"],"example":"The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100.  It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”.  The album was itself a UK number one and would go on to sell over 15 million copies worldwide.\n\nThe legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2.  The video passed the 1bn YouTube views milestone on 28 July 2021.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo"},"channel_id":{"type":["string","null"],"example":"UCuAXFkgsw1L7xaCfnd5JJOw"},"channel_name":{"type":["string","null"],"example":"Rick Astley"},"channel_handle":{"type":["string","null"],"example":"@RickAstleyYT"},"channel_subscribers_text":{"type":["string","null"],"example":"4.56M subscribers"},"channel_subscribers":{"type":["integer","null"],"example":4560000},"published":{"type":["string","null"],"example":"2009-10-24T23:57:33-07:00"},"upload_date":{"type":["string","null"],"example":"2009-10-24T23:57:33-07:00"},"duration_seconds":{"type":["integer","null"],"example":213},"views":{"type":["integer","null"],"example":1838926498},"likes":{"type":["integer","null"],"example":19512260},"comments":{"type":["integer","null"],"example":2400000},"category":{"type":["string","null"],"example":"Music"},"keywords":{"type":["array","null"],"items":{"type":"string","example":"rick astley"}},"is_live_content":{"type":["boolean","null"],"example":false},"is_live_now":{"type":["boolean","null"],"example":false},"is_short":{"type":["boolean","null"],"example":false},"is_family_safe":{"type":["boolean","null"],"example":true},"is_unlisted":{"type":["boolean","null"],"example":false},"available_countries_count":{"type":["integer","null"],"example":249},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp"},"related":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":["string","null"],"example":"video"},"video_id":{"type":["string","null"],"example":"_k73o4jJmMs"},"url":{"type":["string","null"],"example":"https://www.youtube.com/watch?v=_k73o4jJmMs"},"title":{"type":["string","null"],"example":"13 year old me and Rick Astley "},"channel_name":{"type":["string","null"],"example":"Rickastleyismysuperman "},"channel_id":{"type":["string","null"],"example":"UCrN6r-U65V68lxK0tuKHdZA"},"published":{"type":["string","null"],"example":"1mo ago"},"views_text":{"type":["string","null"],"example":"160"},"views":{"type":["integer","null"],"example":160},"duration":{"type":["string","null"],"example":"0:54"},"duration_seconds":{"type":["integer","null"],"example":54},"thumbnail":{"type":["string","null"],"example":"https://i.ytimg.com/vi/_k73o4jJmMs/hqdefault.jpg?sqp=-oaymwFBCNACELwBSFryq4qpAzMIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB8AEB-AG-B4AC0AWKAgwIABABGCMgXyhyMA8=&rs=AOn4CLD6jsXdtxHEK1RXKMKbgnFRFakvYQ"}}}},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}}},"components":{"securitySchemes":{"maviapiKey":{"type":"http","scheme":"bearer","description":"Your maviapi API key, sent as `Authorization: Bearer <key>`. Create one at https://maviapi.com/dashboard/keys."}},"parameters":{"Fields":{"name":"fields","in":"query","required":false,"description":"Row fields to keep in a list answer, comma separated (at most 50). A dot reaches into an object, or into each object of an array (venue.city). A name no row has is a 400 that lists the fields a row has.","schema":{"type":"string"}},"Cursor":{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page, sent with the same other params: the next page of the same stored copy of the list, so a walk never skips or repeats a row when the cache refreshes or the site reorders. A cursor for other params is 400 invalid_cursor; a copy that is gone is 410 cursor_expired (start again without cursor).","schema":{"type":"string"}},"MaxAge":{"name":"max_age","in":"query","required":false,"description":"Serve a stored answer only when it was read at most this many seconds ago (0 to 86400); older, the site is read again. 0 is refresh=true. Any other value is 400 invalid_max_age.","schema":{"type":"integer","minimum":0,"maximum":86400}}},"schemas":{"Error":{"type":"object","required":["error","message","retryable"],"properties":{"error":{"type":"string","description":"Machine-readable code, e.g. `rate_limited`."},"message":{"type":"string","description":"What went wrong, in a sentence."},"retryable":{"type":"boolean","description":"Whether the same request may succeed later without any change. When true, wait the seconds in `Retry-After` (if sent) first."}}},"FetchedAt":{"type":["string","null"],"format":"date-time","description":"When this data was read from the site (ISO 8601, UTC). Also in the x-maviapi-fetched-at header.","example":"2026-11-25T09:30:00.000Z"},"Age":{"type":["integer","null"],"description":"Seconds since fetched_at: 0 for a fresh read, more for a stored answer. Also in the Age header.","example":0},"NextCursor":{"type":["string","null"],"description":"Send as `cursor`, with the same other params, for the next page of the same copy of the list; null on the last page."}},"responses":{"BadRequest":{"description":"A parameter is missing or cannot be used (`bad_request`), or, with the `x-maviapi-strict: 1` request header, a query param the operation does not take was sent (`unknown_param`, with the names in `params`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"bad_request","message":"Missing required query parameter: q","retryable":false}}}},"Unauthorized":{"description":"No API key was sent, or the key is invalid or revoked (`missing_api_key`, `invalid_api_key`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"missing_api_key","message":"Provide an API key via the Authorization: Bearer <key> header.","retryable":false}}}},"CreditLimitReached":{"description":"The plan's credits for this period are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"credit_limit_reached","message":"You've used all 1,000 credits in your Free plan for this period. Upgrade your plan for a higher allotment.","retryable":false}}}},"AccountSuspended":{"description":"The account that owns the key is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"account_banned","message":"Your account is suspended.","retryable":false}}}},"RateLimited":{"description":"Too many requests for this key (`rate_limited`), or too many at once for its plan (`concurrency_limited`). Wait the number of seconds in `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limited","message":"Rate limit exceeded for this API key (600 requests a minute).","retryable":true}}}},"UpstreamFailed":{"description":"The source site could not be read this time. Retrying later usually works.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"scrape_failed","message":"The upstream source could not be fetched","retryable":true}}}},"CursorExpired":{"description":"The stored copy of the list this cursor walks is gone. Start the list again without cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"cursor_expired","message":"The copy of the list this cursor walks is gone. Start the list again without cursor.","retryable":false}}}}}}}