Getting started with Video Indexer REST API

Published 04-13-2021 04:12 PM 1,113 Views
Microsoft

Getting started with Video Indexer REST API

Itai Norman Program Manager, AEDPLS, Video Indexer.

 

ItaiNorman_3-1616320970596.png

Video Indexer is an Azure service, that enables you to easily extracts business insights from your media files by using around 30 AI models. Using this service, you can enrich your videos with meta-data, transcription, and translation to more the 50 different languages, search in videos for faces, people, topics, spoken words, and much more.

Video Indexer can be leveraged in three ways: via a REST API, via a full flagged portal experience, and via embeddable customizable widgets, that enable customers to leverage the portal experience in their own applications. In this blog we will focus on how to get to know and get started with the Video Indexer REST API easily, using our brand-new developer portal! Via this portal, you can explore and try out all different APIs, find code samples and easily navigate between all Video Indexer’s communities and documentation resources.

In this blog, I will walk you through few basic steps:

First thing first – get a Video Indexer account
Before starting to use Video Indexer’s REST API, you should have a Video Indexer account, you can start with a free trial account; Just sign-in with one of the following: AAD account, Personal Microsoft account, or a Google account and you are good to go!
Alternatively, you can get connected to your own Azure Subscription. If someone to their Video Indexer account, you could use that account as well.

ItaiNorman_4-1616320970598.png

 

 

 

Register to Video Indexer’s API

Now we are ready to start using the Video Indexer developer portal. You will be welcomed with the Video Indexer developer portal landing page, just press the ‘Sign-in’ button on the top-right corner of the ‘Get Started’ button, to authenticate. When the authentication process is finished you will be connected to the developer-portal as a signed-in user, and you will see the following tabs in your top-right menu: ‘Home’, ’APIs’, ’Developer Support’, ‘Profile’, ’Sign out’.

 

Getting familiar with the developer portal

Before moving to an example of using Video Indexer’s API, let’s briefly explore what’s available for you in the portal.

The first tab is the APIs tab. It has a list of all APIs calls in VI’s environment, by choosing an API call you will get a sample of how the request would look like, a documentation table, and an option to try the API call through the portal.

On the ‘try it’ blade you will be able to enter the relevant parameters and get a glance at what would the API call and response look like.

TryitBlog.png

 In the Home tab, you can find links to our documentation around main functionalities such as model customization and how to embed widgets. A three easy steps guide, on how to use Video Indexer’s API and a short code sample.

 


The Developer support page includes everything you need to learn about and get support for: GitHub repository, Stackoverflow page, ‘CodePen’ link with widgets code samples, and Video Indexer’s tech community relevant blog posts. Also available in the developer support, Video Indexer’s FAQ page, a ‘User Voice’, where you can suggest Video indexer capabilities and features that may be helpful for your business needs, and a general documentation link.

 

DevSupportBlog.PNG

 

 

 

Using the API

 

This is really what we are here for, right? So, let’s see how to start using the VI API…

Getting the account id and access token.

 

In this section, I’ll walk you through the basic flow that lets you get media insights from Video Indexer, with only three calls: Getting an ‘AccountId’ and ‘Access Token’, uploading a file and retrieving the insight JSON file, and I’ll use the developer portal to do so.

 

 

 

First, open the developer portal, under the ‘APIs’ tab go to the ‘Get Accounts Authorization'.

ItaiNorman_8-1616320970614.png

 

Enter the query parameters:

  • Location – ‘trial’ (or for non-trial account enter the region for your account)
  • Generate Access Token: true.

At the bottom of the ‘Try it’ blade hit ‘Send’.

 

ItaiNorman_9-1616320970616.png

 

You should receive a 200 ok response with the appropriate data.

ItaiNorman_10-1616320970621.png

 

 

 

 

Open a Notepad or similar app to keep the different values of the response, you will need it in a minute… form the response save the: ‘Id’ which is the ‘Account Id’, and the ‘Access Token’.

 

Upload video

ItaiNorman_11-1616320970622.png

 

 

Now we have everything we need to upload the first video. Go to ‘Upload video’
enter the query parameters:

  • Location: ‘trial’ (For non-trial account enter the region e.g. “eastus”).
  • AccountId: GUID you received it in your ‘Get Accounts Authorization’.
  • Name: give the video a name.
  • VideoUrl: The full path of the video you want to upload, note, that video Indexer support a wide range of video and audio file formats, but it has to be a URL for a file (and not a HTTP link for example)
  • Access Token: the ‘Access Token’ we got at the previous step.

, and hit ‘Send’.

Form the ‘upload video’ response fetch the ‘id’ – which is the Video Indexer id for the file you just uploaded. We will need it in the next step.

 

Getting Insights

Once the indexing completed (which might take a few minutes), we can use the third call, to see what Video Indexer was able to extract. Go to ‘Get Video Index’

 

ItaiNorman_12-1616320970623.png

 

 

enter the query parameters:

  • Location – ‘trial’ (For non-trial account enter the region e.g. “eastus”).
  • AccountId: GUID you received it in your ‘Get Accounts Authorization’.
  • VideoId: we received from the last API call.
  • Access Token: the ‘Access Token’ we got at the previous step.

, and hit ‘Send’.

And Walla… all the insights will be returned in a Json format file.

 

ItaiNorman_13-1616320970631.png

 

 

Congratulations! you just got your first set of insights in a readable JSON format.

So, what’s next?
Use these relevant articles to learn more on how to use Video Indexer:

Use these links to read more technical articles around Video Indexer:

 

 

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2225858%22%20slang%3D%22en-US%22%3EGetting%20started%20with%20Video%20Indexer%20REST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2225858%22%20slang%3D%22en-US%22%3E%3CH1%20id%3D%22toc-hId-1303113401%22%20id%3D%22toc-hId-1298621655%22%3EGetting%20started%20with%20Video%20Indexer%20REST%20API%3C%2FH1%3E%0A%3CP%3EItai%20Norman%20Program%20Manager%2C%20AEDPLS%2C%20Video%20Indexer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_3-1616320970596.png%22%20style%3D%22width%3A%20645px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265892i9E601A82E2BF8F7C%2Fimage-dimensions%2F645x282%3Fv%3Dv2%22%20width%3D%22645%22%20height%3D%22282%22%20role%3D%22button%22%20title%3D%22ItaiNorman_3-1616320970596.png%22%20alt%3D%22ItaiNorman_3-1616320970596.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EVideo%20Indexer%20is%20an%20Azure%20service%2C%20that%20enables%20you%20to%20easily%20extracts%20business%20insights%20from%20your%20media%20files%20by%20using%20around%2030%20AI%20models.%20Using%20this%20service%2C%20you%20can%20enrich%20your%20videos%20with%20meta-data%2C%20transcription%2C%20and%20translation%20to%20more%20the%2050%20different%20languages%2C%20search%20in%20videos%20for%20faces%2C%20people%2C%20topics%2C%20spoken%20words%2C%20and%20much%20more.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EVideo%20Indexer%20can%20be%20leveraged%20in%20three%20ways%3A%20via%20a%20REST%20API%2C%20via%20a%20full%20flagged%20portal%20experience%2C%20and%20via%20embeddable%20customizable%20widgets%2C%20that%20enable%20customers%20to%20leverage%20the%20portal%20experience%20in%20their%20own%20applications.%20In%20this%20blog%20we%20will%20focus%20on%20%3CSTRONG%3Ehow%20to%3C%2FSTRONG%3E%20%3CSTRONG%3Eget%20to%20know%20and%20get%20started%20with%20the%20Video%20Indexer%20REST%20API%20easily%2C%20using%20our%20brand-new%20developer%20portal!%3C%2FSTRONG%3E%20Via%20this%20portal%2C%20you%20can%20explore%20and%20try%20out%20all%20different%20APIs%2C%20find%20code%20samples%20and%20easily%20navigate%20between%20all%20Video%20Indexer%E2%80%99s%20communities%20and%20documentation%20resources.%3C%2FP%3E%0A%3CP%3EIn%20this%20blog%2C%20I%20will%20walk%20you%20through%20few%20basic%20steps%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosofteur-my.sharepoint.com%2Fpersonal%2Fitnorman_microsoft_com%2FDocuments%2FVideo%2520Indexer%2FAPIM%2520revamping%2FNew%2520Dev-portal%2520blog%2520post.docx%23_Register_to_Video%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERegister%20to%20Video%20Indexer%E2%80%99s%20API.%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosofteur-my.sharepoint.com%2Fpersonal%2Fitnorman_microsoft_com%2FDocuments%2FVideo%2520Indexer%2FAPIM%2520revamping%2FNew%2520Dev-portal%2520blog%2520post.docx%23_Main_portal_functionality%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGet%20familiar%20with%20the%20new%20developer%20portal.%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosofteur-my.sharepoint.com%2Fpersonal%2Fitnorman_microsoft_com%2FDocuments%2FVideo%2520Indexer%2FAPIM%2520revamping%2FNew%2520Dev-portal%2520blog%2520post.docx%23_Using_the_API%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EDetailed%20example%20of%20using%20the%20Video%20Indexer%20API%20to%20extract%20your%20insights%20in%20a%20readable%20JSON%20format%20file.%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EFirst%20thing%20first%20%E2%80%93%20get%20a%20Video%20Indexer%20account%3C%2FSPAN%3E%3CBR%20%2F%3EBefore%20starting%20to%20use%20Video%20Indexer%E2%80%99s%20REST%20API%2C%20you%20should%20have%20a%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FVIportal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EVideo%20Indexer%20account%3C%2FA%3E%2C%20you%20can%20start%20with%20a%20free%20trial%20account%3B%20Just%20sign-in%20with%20one%20of%20the%20following%3A%20AAD%20account%2C%20Personal%20Microsoft%20account%2C%20or%20a%20Google%20account%20and%20you%20are%20good%20to%20go!%3CBR%20%2F%3EAlternatively%2C%20you%20can%20get%20connected%20to%20your%20own%20Azure%20Subscription.%20If%20someone%20to%20their%20Video%20Indexer%20account%2C%20you%20could%20use%20that%20account%20as%20well.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_4-1616320970598.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265890i975C552CE6C22A99%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_4-1616320970598.png%22%20alt%3D%22ItaiNorman_4-1616320970598.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1993674875%22%20id%3D%22toc-hId-1989183129%22%3ERegister%20to%20Video%20Indexer%E2%80%99s%20API%3C%2FH2%3E%0A%3CP%3ENow%20we%20are%20ready%20to%20start%20using%20the%20Video%20Indexer%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvi-dev-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edeveloper%20portal%3C%2FA%3E.%20You%20will%20be%20welcomed%20with%20the%20Video%20Indexer%20developer%20portal%20landing%20page%2C%20just%20press%20the%20%E2%80%98Sign-in%E2%80%99%20button%20on%20the%20top-right%20corner%20of%20the%20%E2%80%98Get%20Started%E2%80%99%20button%2C%20to%20authenticate.%20When%20the%20authentication%20process%20is%20finished%20you%20will%20be%20connected%20to%20the%20developer-portal%20as%20a%20signed-in%20user%2C%20and%20you%20will%20see%20the%20following%20tabs%20in%20your%20top-right%20menu%3A%20%E2%80%98%3CEM%3EHome%E2%80%99%3C%2FEM%3E%2C%20%E2%80%99%3CEM%3EAPIs%E2%80%99%3C%2FEM%3E%2C%20%3CEM%3E%E2%80%99Developer%20Support%E2%80%99%3C%2FEM%3E%2C%20%E2%80%98%3CEM%3EProfile%E2%80%99%3C%2FEM%3E%2C%20%3CEM%3E%E2%80%99Sign%20out%E2%80%99%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-186220412%22%20id%3D%22toc-hId-181728666%22%3EGetting%20familiar%20with%20the%20developer%20portal%3C%2FH2%3E%0A%3CP%3EBefore%20moving%20to%20an%20example%20of%20using%20Video%20Indexer%E2%80%99s%20API%2C%20let%E2%80%99s%20briefly%20explore%20what%E2%80%99s%20available%20for%20you%20in%20the%20portal.%3C%2FP%3E%0A%3CP%3EThe%20first%20tab%20is%20the%20%3CEM%3EAPIs%20%3C%2FEM%3Etab.%20It%20has%20a%20list%20of%20all%20APIs%20calls%20in%20VI%E2%80%99s%20environment%2C%20by%20choosing%20an%20API%20call%20you%20will%20get%20a%20sample%20of%20how%20the%20request%20would%20look%20like%2C%20a%20documentation%20table%2C%20and%20an%20option%20to%20try%20the%20API%20call%20through%20the%20portal.%3C%2FP%3E%0A%3CP%3EOn%20the%20%E2%80%98try%20it%E2%80%99%20blade%20you%20will%20be%20able%20to%20enter%20the%20relevant%20parameters%20and%20get%20a%20glance%20at%20what%20would%20the%20API%20call%20and%20response%20look%20like.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22TryitBlog.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265935i8506142963DE5838%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22TryitBlog.png%22%20alt%3D%22TryitBlog.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EIn%20the%20%3C%2FSPAN%3E%3CEM%20style%3D%22font-family%3A%20inherit%3B%22%3EHome%20%3C%2FEM%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Etab%2C%20you%20can%20find%20links%20to%20our%20documentation%20around%20main%20functionalities%20such%20as%20model%20customization%20and%20how%20to%20embed%20widgets.%20A%20three%20easy%20steps%20guide%2C%20on%20how%20to%20use%20Video%20Indexer%E2%80%99s%20API%20and%20a%20short%20code%20sample.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3EThe%20%3CEM%3EDeveloper%20support%3C%2FEM%3E%20page%20includes%20everything%20you%20need%20to%20learn%20about%20and%20get%20support%20for%3A%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FGitHubVI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%20repository%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FStackoverflowVI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EStackoverflow%20page%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FCodepenVI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%E2%80%98CodePen%E2%80%99%20link%3C%2FA%3E%20with%20widgets%20code%20samples%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FTechCommunityVideo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EVideo%20Indexer%E2%80%99s%20tech%20community%3C%2FA%3E%20relevant%20blog%20posts.%20Also%20available%20in%20the%20developer%20support%2C%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDocsFAQVI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EVideo%20Indexer%E2%80%99s%20FAQ%20page%3C%2FA%3E%2C%20a%20%E2%80%98%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FUserVoiceVI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUser%20Voice%E2%80%99%3C%2FA%3E%2C%20where%20you%20can%20suggest%20Video%20indexer%20capabilities%20and%20features%20that%20may%20be%20helpful%20for%20your%20business%20needs%2C%20and%20a%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDocsGeneral%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Egeneral%20documentation%20link%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DevSupportBlog.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265936i13688BE9B3769FFF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DevSupportBlog.PNG%22%20alt%3D%22DevSupportBlog.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1621234051%22%20id%3D%22toc-hId--1625725797%22%3EUsing%20the%20API%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20really%20what%20we%20are%20here%20for%2C%20right%3F%20So%2C%20let%E2%80%99s%20see%20how%20to%20start%20using%20the%20VI%20API%E2%80%A6%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--930672577%22%20id%3D%22toc-hId--935164323%22%3EGetting%20the%20account%20id%20and%20access%20token.%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20section%2C%20I%E2%80%99ll%20walk%20you%20through%20the%20basic%20flow%20that%20lets%20you%20get%20media%20insights%20from%20Video%20Indexer%2C%20with%20only%20three%20calls%3A%20Getting%20an%20%E2%80%98AccountId%E2%80%99%20and%20%E2%80%98Access%20Token%E2%80%99%2C%20uploading%20a%20file%20and%20retrieving%20the%20insight%20JSON%20file%2C%20and%20I%E2%80%99ll%20use%20the%20developer%20portal%20to%20do%20so.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20open%20the%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvi-dev-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edeveloper%20portal%3C%2FA%3E%2C%20under%20the%20%E2%80%98%3CEM%3EAPIs%E2%80%99%3C%2FEM%3E%20tab%20go%20to%20the%20%E2%80%98Get%20Accounts%20Authorization'.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_8-1616320970614.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265893i894DBE06DB65AA90%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_8-1616320970614.png%22%20alt%3D%22ItaiNorman_8-1616320970614.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CU%3EEnter%20the%20query%20parameters%3A%3C%2FU%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELocation%20%E2%80%93%20%E2%80%98trial%E2%80%99%20(or%20for%20non-trial%20account%20enter%20the%20region%20for%20your%20account)%3C%2FLI%3E%0A%3CLI%3EGenerate%20Access%20Token%3A%20true.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EAt%20the%20bottom%20of%20the%20%E2%80%98Try%20it%E2%80%99%20blade%20hit%20%E2%80%98Send%E2%80%99.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_9-1616320970616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265897i614B45DD8185C883%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_9-1616320970616.png%22%20alt%3D%22ItaiNorman_9-1616320970616.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20should%20receive%20a%20200%20ok%20response%20with%20the%20appropriate%20data.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_10-1616320970621.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265898iC8B2686784100262%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_10-1616320970621.png%22%20alt%3D%22ItaiNorman_10-1616320970621.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOpen%20a%20Notepad%20or%20similar%20app%20to%20keep%20the%20different%20values%20of%20the%20response%2C%20you%20will%20need%20it%20in%20a%20minute%E2%80%A6%20form%20the%20response%20save%20the%3A%20%E2%80%98Id%E2%80%99%20which%20is%20the%20%E2%80%98Account%20Id%E2%80%99%2C%20and%20the%20%E2%80%98Access%20Token%E2%80%99.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1556840256%22%20id%3D%22toc-hId-1552348510%22%3EUpload%20video%3C%2FH3%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_11-1616320970622.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265896iE8647E607B8CDDF8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_11-1616320970622.png%22%20alt%3D%22ItaiNorman_11-1616320970622.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20we%20have%20everything%20we%20need%20to%20upload%20the%20first%20video.%20Go%20to%20%E2%80%98Upload%20video%E2%80%99%3CBR%20%2F%3E%3CU%3Eenter%20the%20query%20parameters%3A%3C%2FU%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELocation%3A%20%E2%80%98trial%E2%80%99%20(For%20non-trial%20account%20enter%20the%20region%20e.g.%20%E2%80%9Ceastus%E2%80%9D).%3C%2FLI%3E%0A%3CLI%3EAccountId%3A%20GUID%20you%20received%20it%20in%20your%20%E2%80%98Get%20Accounts%20Authorization%E2%80%99.%3C%2FLI%3E%0A%3CLI%3EName%3A%20give%20the%20video%20a%20name.%3C%2FLI%3E%0A%3CLI%3EVideoUrl%3A%20The%20full%20path%20of%20the%20video%20you%20want%20to%20upload%2C%20note%2C%20that%20video%20Indexer%20support%20a%20wide%20range%20of%20video%20and%20audio%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmedia-services%2Fvideo-indexer%2Fupload-index-videos%23supported-file-formats-for-video-indexer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efile%20formats%3C%2FA%3E%2C%20but%20it%20has%20to%20be%20a%20URL%20for%20a%20file%20(and%20not%20a%20HTTP%20link%20for%20example)%3C%2FLI%3E%0A%3CLI%3EAccess%20Token%3A%20the%20%E2%80%98Access%20Token%E2%80%99%20we%20got%20at%20the%20previous%20step.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%2C%20and%20hit%20%E2%80%98Send%E2%80%99.%3C%2FP%3E%0A%3CP%3EForm%20the%20%E2%80%98upload%20video%E2%80%99%20response%20fetch%20the%20%E2%80%98id%E2%80%99%20%E2%80%93%20which%20is%20the%20Video%20Indexer%20id%20for%20the%20file%20you%20just%20uploaded.%20We%20will%20need%20it%20in%20the%20next%20step.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--250614207%22%20id%3D%22toc-hId--255105953%22%3EGetting%20Insights%3C%2FH3%3E%0A%3CP%3EOnce%20the%20indexing%20completed%20(which%20might%20take%20a%20few%20minutes)%2C%20we%20can%20use%20the%20third%20call%2C%20to%20see%20what%20Video%20Indexer%20was%20able%20to%20extract.%20Go%20to%20%E2%80%98Get%20Video%20Index%E2%80%99%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_12-1616320970623.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265899i8AB10130245E868B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_12-1616320970623.png%22%20alt%3D%22ItaiNorman_12-1616320970623.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CU%3Eenter%20the%20query%20parameters%3A%3C%2FU%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELocation%20%E2%80%93%20%E2%80%98trial%E2%80%99%20(For%20non-trial%20account%20enter%20the%20region%20e.g.%20%E2%80%9Ceastus%E2%80%9D).%3C%2FLI%3E%0A%3CLI%3EAccountId%3A%20GUID%20you%20received%20it%20in%20your%20%E2%80%98Get%20Accounts%20Authorization%E2%80%99.%3C%2FLI%3E%0A%3CLI%3EVideoId%3A%20we%20received%20from%20the%20last%20API%20call.%3C%2FLI%3E%0A%3CLI%3EAccess%20Token%3A%20the%20%E2%80%98Access%20Token%E2%80%99%20we%20got%20at%20the%20previous%20step.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%2C%20and%20hit%20%E2%80%98Send%E2%80%99.%3C%2FP%3E%0A%3CP%3EAnd%20Walla%E2%80%A6%20all%20the%20insights%20will%20be%20returned%20in%20a%20Json%20format%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ItaiNorman_13-1616320970631.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265900i84FDD751340A4D5E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ItaiNorman_13-1616320970631.png%22%20alt%3D%22ItaiNorman_13-1616320970631.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECongratulations!%20you%20just%20got%20your%20first%20set%20of%20insights%20in%20a%20readable%20JSON%20format.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--261117311%22%20id%3D%22toc-hId--265609057%22%3ESo%2C%20what%E2%80%99s%20next%3F%3CBR%20%2F%3EUse%20these%20relevant%20articles%20to%20learn%20more%20on%20how%20to%20use%20Video%20Indexer%3A%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmedia-services%2Fvideo-indexer%2Fvideo-indexer-output-json-v2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExamine%20Video%20Indexer%20output%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmedia-services%2Fvideo-indexer%2Fconsiderations-when-use-at-scale%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConsiderations%20when%20using%20Video%20Indexer%20at%20scale%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fapi-portal.videoindexer.ai%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EVideo%20Indexer%20API%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmedia-services%2Fvideo-indexer%2Fcustomize-person-model-with-website%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECustomize%20your%20models%20(Person%2C%20language%2C%20and%20Brands)%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FWidgetsRM%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EEmbedded%20widgets%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EUse%20these%20links%20to%20read%20more%20technical%20articles%20around%20Video%20Indexer%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-media-services%2Fvideo-indexer-introduces-expanded-regions-multi-language%2Fba-p%2F1926467%22%20target%3D%22_blank%22%3EVideo%20Indexer%20introduces%20expanded%20regions%20multi%20language%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Flive-stream-analysis-using-video-indexer%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELive%20stream%20analysis%20using%20Video%20Indexer%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-media-services%2Fgenerating-captions-with-video-indexer-and-logic-apps%2Fba-p%2F1672198%22%20target%3D%22_blank%22%3EGenerating%20captions%20with%20Video%20Indexer%20and%20Logic%20Apps%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2225858%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--2073063520%22%3EGetting%20familiar%20with%20the%20developer%20portal%3C%2FH2%3E%0A%3CP%3EBefore%20moving%20to%20an%20example%20of%20using%20Video%20Indexer%E2%80%99s%20API%2C%20let%E2%80%99s%20briefly%20explore%20what%E2%80%99s%20available%20for%20you%20in%20the%20portal.%3C%2FP%3E%0A%3CP%3EThe%20first%20tab%20is%20the%20%3CEM%3EAPIs%20%3C%2FEM%3Etab.%20It%20has%20a%20list%20of%20all%20APIs%20calls%20in%20VI%E2%80%99s%20environment%2C%20by%20choosing%20an%20API%20call%20you%20will%20get%20a%20sample%20of%20how%20the%20request%20would%20look%20like%2C%20a%20documentation%20table%2C%20and%20an%20option%20to%20try%20the%20API%20call%20through%20the%20portal.%3C%2FP%3E%0A%3CP%3EOn%20the%20%E2%80%98try%20it%E2%80%99%20blade%20you%20will%20be%20able%20to%20enter%20the%20relevant%20parameters%20and%20get%20a%20glance%20at%20what%20would%20the%20API%20call%20and%20response%20look%20like.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22portalBlog.png%22%20style%3D%22width%3A%20688px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F265933i64EE3B253497B7C9%2Fimage-dimensions%2F688x306%3Fv%3Dv2%22%20width%3D%22688%22%20height%3D%22306%22%20role%3D%22button%22%20title%3D%22portalBlog.png%22%20alt%3D%22portalBlog.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2225858%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EVideo%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVideo%20Indexer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 14 2021 10:00 AM
Updated by: