How to get video list using powershell?

Brass Contributor


Greetings,

I'd like to get a list of videos uploaded to Microsoft Stream.

I referred to this document  . I'm testing it by copying and pasting it.

[string]$StreamPortal = "https://web.microsoftstream.com/?NoSignUpCheck=1" 
[string]$StreamPortalChannelRoot = "https://web.microsoftstream.com/channel/"
[string]$StreamAPIChannels100 = "https://aase-1.api.microsoftstream.com/api/channels?NoSignUpCheck=1&`$top=100&`$orderby=metrics%2Fvideos%20desc&`$expand=creator,group&api-version=1.3-private&`$skip="

 

 


Part of code, These don't seem to work.

The first line code URL works.

The code on the second row didn't work, so I changed it like this.

https://web.microsoftstream.com/channel/ -> https://web.microsoftstream.com/browse?view=channel

Is this right?

And I think the URL on the third line doesn't work.

$StreamAPIChannels100

- There is no value in this variable. There is also a Microsoft Stream channel.

 

Europe: https://euno-1.api.microsoftstream.com
Asia: https://aase-1.api.microsoftstream.com

 Neither seems to work.

 

There is not much information about this. I'd really appreciate your help.

Tell me if what I think is wrong. Thanks..

4 Replies

@BoHyun As I posted it here to your other post (https://techcommunity.microsoft.com/t5/microsoft-stream-forum/microsoft-stream-cors-error/m-p/167338...) - currently we do not have an official API for Microsoft Stream. I have managed to get the videos with a Power Automate Flow "Send HTTP request" which worked, but is more a hack than supported.

@Tomislav Karafilov 

 

Thank you for your answer. 

In my case, it would be a little difficult to use Power Automatic Flow.

I just need video list information, not data processing.

I also tried how to get by using microsoft audit logs.. But I failed.

Is there any other way but to wait for API?

Take a peek at this one https://bit.ly/PnPScriptSamplesMSStream,

It's wrapped up in a nice way, asking for creds and getting the tokens needed to export a csv with a report. Ill be adding more stuff soon