IG graph API: video views on a carousel - instagram

I'm trying to get the insights of a video carousel that has a video.
When I call GET /{ig-media-id}/insights I can access the video_views metric but the numbers are strange because it is always higher than my reach and also higher than impressions.
I get the same result calling the metric carousel_album_video_views.
How does IG calculate this metric on carousels? I couldn't find this information anywhere. Is that a sum, an average, or what?
My guess is that it is a sum of the views of each child element.

According to the documentation the reach metric indicate the unique Instagram accounts that has saw the carousel content, so that you can have a higher value of video_views because it could have been seen multiple times.
Moreover the documentation say that you cannot get the insights for the videos inside a carousel, so I think that the carousel_album_video_views is just a sum of video_views for each media.

Related

Spatial analysis to find nearby public transit options given a longitude/latitude and radius?

I recently used foursquare's API to get a list of venues nearby a given region, and it looks like it's returned mostly commercial businesses like restaurants, pubs, gyms, and cafes.
I was wondering if it were possible to add "public transit" to the list, for instance, the number of bus stops nearby.
As an example, here's an image of a map I created using folium (in python) and foursquare API to find restaurants in a radius near a long/lat.
Highlighted in the blue, you can see nearby venues to a longitude/latitude I provided, and also the description of one of these venues in the white box.
Circled in red are what appear to be public transit options, though these are not picked up in my analysis.
I was wondering if there were some API or dataset that I could use to pick up on these bus-stops/train-stops too?
Thanks!
I would try OpenStreetMap.
If you are using default base layer in this Folium map, it comes from OpenStreetMaps data too, so you should get exactly the bus stops you see here.

How Can I Filter Based on Metrics in the Bing Ads API?

I'm using the Bing Ads Python SDK and I'm trying to get an ad report showing the cost data for each ad for each day.
I can successfully query the AdPerformanceReportRequest service and get all the ads and their metrics back.
But I'm getting back all ads with any activity on them, including impressions. I only want rows where cost > 0.
The filter objects are specific to the report type, not to the metric and none of the examples in the SDK Github repo show how to do this.
The Google Ads API lets us specify a where clause in our report query (Where cost > 0). How can I do this with the Bing Ads API?
Do I have to download all the data and filter myself (this report is quite large, about 100Mb, and about 75% smaller when filtered)? Or is there a more efficient way to do this by not requesting those rows that are useless to me at all?
Any point in the right direction would be very much appreciated.
Edit: As was pointed out below, this is not currently possible. A tip if you're trying to filter yourself locally is that the metrics in the in-memory report object record is a string. So if you want to filter out zero values, you need to filter out values that are string representations of '0.00', not '0' or the integer value 0.
The reporting service via Bing Ads API does not support such a filter. I suggest please vote on this related feature request and append comments / details about your scenario as needed. Thank you.

Getting total number of streams and track release date through Spotify API

I'm trying to get a large list of songs released in year X, together with their number of plays/streams.
I've been using Spotify API, and I have a number of highly popular songs. Now, for my purposes, I also need a list of non-popular songs (low play counts). I am wondering if there is any strategy to get a list of songs (maybe last played ones?), and extract their release year and number of total plays?
I've been going through the API documentation and I can only find 'popularity', which seems different from total number of plays. Secondly, I haven't found a way to get a list of last played songs yet. Should I be considering another type of strategy?
I know that you can get a list of recently played songs of all users in certain user groups in last.fm. Perhaps there is something similar in Spotify API?
Unfortunately, there is no way to get play counts through the Spotify API, only the Popularity metric.

Which FaceAPI to Verify a person?

I'm new to the cognitive services, and going through the docs still a little confused as to which of the methods are needed to verify someone who appears in two different images. Basically want to make sure the person is the same person in both images.
You can use Face verification
This will check the likelihood that two faces belong to the same person. The API will return a confidence score about how likely it is that the two faces belong to one person. If the faces in 2 images are matching then the confidence score returned by the method will be nearer to 1.
You can refer documentation here about Face- Verify.

Recognize if object is completely or partially visible with Bing/Azure Cognitive API

Wondering, how do I recognize if an image contains a specific object and this object is completely visible (not partially).
Cognitive Services Computer Vision API provides set of tags and description of the image I send, however, there is no information if object is completely or partially represented.
My goal is to have a service that I can upload a picture of, say, car, and get information is it a full car visible or just part of it.
Unfortunately the Computer Vision API is currently unable to perform such a function.
The tags returned do have a 'score' which represents the confidence that this item is in the image. You may find there's some correlation between the confidence and how much of the item is in the image, but you'd need to run some experiments to see how well it matches up. If the object is obscured too much, it may not even detect it all.
Feel free to drop a suggestion on our User Voice, if you think this would be a useful feature.

Resources