Is there any way to get extra information like as non-follower reach, follower reach,follower growth etc. with using Instagram Graph API? - instagram

I want to get some metrics with using Instagram Graph API like total numbers of non-followers and followers reach, followers growth and unfollows for my business account. However, no matter how hard I researched, I could not find a source that provided the metrics I specified.
https://graph.instagram.com/v12.0/{my_ig_id}/insights?metric=impressions,reach&period=week
https://graph.instagram.com/v12.0/{my_page_id}?fields=business_discovery.username(ig_user_name){followers_count}
total reach counts
total followers count
When I specify a URLs like above, I can only get the total reach and follower counts as you can see in the screen shoots. But I want also those metrics like ;
reach = 69
reach_followers = "some integer"
reach_non_followers = "some integer"
follower_growth = "some integer"
PS: My Instagram account is integrated with my business account and Facebook page. I have also given ;(ads_management,business_management,instagram_basic,instagram_manage_comments,instagram_manage_insights,pages_read_engagement,public_profile) permissions.
Is there any way to get the metrics I'm talking about? I will be grateful if somebody could help me.

Related

IG graph API: video views on a carousel

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.

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.

Is there a way to pull trending instagram hashtags in real-time?

I'm working on an app that would automatically generate instagram hashtags for the user, allowing them to snap a photo, get auto hashtags, and post right away. Is there a way I can pull the most trending instagram hashtags in real-time and have the app generate them for every user at the time they're posting?
No, there is no direct way to get this information from the API. Though you might be able to get clever with the endpoints that are there and figure out what's trending that way.
You could query a user using the users endpoint, search through all the hashtags they've used on the last 100 or so media captions, and then infer "trendy" hashtags that way.
You could query a hashtag using the hashtags endpoint, search through all the hashtags used on the last 100 or so media captions, and then infer "trendy" hashtags that way.
One thing that I do in my app (https://app.promoplanner.net) is I look at the frequency of posts for a given hashtag (i.e. what's the average time between each post for a given hashtag). Small time deltas tell me that a hashtag is popular.
Either way, you need to start your query with either a user or a hashtag, you can't as a broad question like what's trending. You can only ask questions like "what's trending relative to #kesha" or "what's trending relative to #urbanfarming"

How to increase Foursquare Venue limit for getting all restaurants from Foursquare Venue API?

I am calling Foursquare Venue API for getting all food venues of London.
Used API is: https://api.foursquare.com/v2/venues/explore?ll=51.51121389999999,-0.11982439999997041&section=xxxx&**limit=11000**&oauth_token=xxxx
It returns always random 100 venues. If I call it next time then it returns same venues instead of unique 100 venues.
How to get unique records for getting all venues? How to get all venues by increasing the limit?
The maximum number of venues returned in an explore query can be found in our documentation: https://developer.foursquare.com/docs/venues/explore
Getting all the food venues in any geographic region isn't really something the Foursquare API is designed to do, but you can get different results if you modify your ll and/or radius params. Please keep in mind our developer policies against scraping though if you choose to do a sweeping approach.

Adwords API BulkMutateJobService Fetch Global Monthly Search Volume For Multiple Keywords

I've just gotten into the Adwords API for an upcoming project and I need something quite simple actually, but I want to go about it the most efficient way.
I need code to retrieve the Global Monthly Search Volume for multiple keywords (in the millions). After reading about BulkMutateJobService, in the Google documentation they say
If you want to perform a very large number of operations (up to 500,000) on your AdWords campaigns and child objects, use BulkMutateJobService
But later on in the page they give limits of
No more than 25 OperationStream objects are allowed.
No more than 10,000 operations are allowed per BulkMutateRequest.
No more than 100 request parts are allowed.
as well as a few others. See source here http://code.google.com/apis/adwords/docs/bulkjobs.html
Now, my questions:
What do these numbers mean? If I have 1 million words I need information on, do I only need to perform 2 requests with 500K words each?
Also, are there examples of code that does this task?
I only need Global Monthly Search Volume and CPC for each keyword. I've searched online, but to no avail have I found any good example or anything leaning in that direction that utilizes BulkMutateJobService.
Any links, resources, code, advice you can offer? All is appreciated.
The BulkMutateJobService only allows for mutates, or changes, to the account. It does not provide the bulk retrieval of information.
You can fetch monthly search volume for keywords using the TargetingIdeaService. If you use it in STATS mode you can include up to 2500 keywords per request.
Estimates CPC values are obtained from the TrafficEstimatorService. You can request up to 500 keywords per request.
FYI, there is an official AdWords API Forum that you can ask questions on.

Resources