Label detection – constructing the request

Now, using Postman, we are going to construct a request and fire it to the Google Video Intelligence API. Click on New and then Request inside Postman. Name the request label detection. I have created a new collection named Video Intelligence API and placed this request inside that. You can import that collection into your Postman as well. This file is available in the Chapter 4\API\Postman folder.

Update the new request as follows:

Field

Value

HTTP method

POST

URL

https://videointelligence.googleapis.com/v1/videos:annotate?key=API_KEY

Request body

// SNIPP SNIPP{    "inputContent": "/9j/7QBEUGhvdG9zaG9...base64-encoded-video-content...fXNWzvDEeYxxxzj/Coa6Bax//Z", "features": ...

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.