Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

When I use /youtube/v3/videos to get fileDetails, it doesn't return fileName

$
0
0

When I tried to get the file name, he didn't return, but the documentation says so, and you can check out the code I attached, these are the results of my tests using Google API Explorer, and I'm hoping to get an answer

curl \'https://youtube.googleapis.com/youtube/v3/videos?part=fileDetails&id=vNC1WNSL9XE&key=[YOUR_API_KEY]' \  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \  --header 'Accept: application/json' \  --compressed Response:{"kind": "youtube#videoListResponse","etag": "aaxbFKP1TCIDrlDKNFJ7luuqtT8","items": [    {"kind": "youtube#video","etag": "v9FbMSHbI0Pdom1glHT8dTyaA2k","id": "vNC1WNSL9XE","fileDetails": {"fileType": "video","container": "mov","videoStreams": [          {"widthPixels": 1280,"heightPixels": 720,"frameRateFps": 30,"aspectRatio": 1.7777777777777777,"codec": "h264","bitrateBps": "5729890"          }        ],"audioStreams": [          {"channelCount": 2,"codec": "aac","bitrateBps": "240051"          }        ],"durationMs": "40200","bitrateBps": "5969941"      }    }  ],"pageInfo": {"totalResults": 1,"resultsPerPage": 1  }}

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>