No ig media reach paid and impressions paid metrics - instagram

https://developers.facebook.com/support/bugs/246956565984307/?join_id=f11582215aab27
I have a similar problem as in the link I left above.
My understanding based on Jorge O. (meta team) answer:
/insights?metric=reach,impressions
Returns only organic reach and organic impressions data in response. In addition, it is said that only the marketing api should be used to get paid access and paid impression data of instagram media.
Note: But it is not stated in the document that only organic data is returned. -> https://developers.facebook.com/docs/instagram-api/reference/ig-media/insights
When I examined the marketing api documents, I noticed that the ad id was used instead of the media id.
mediaId != adId
I want to know the paid reach and paid impression data of instagram media. But there is no request to get this data in the marketing api documents.
Note: For example, Facebook document posts have metrics where I can get paid reach and paid impressions.(post_impressions_paid, post_impressions_paid_unique, page_posts_impressions_paid, page_posts_impressions_paid_unique) -> https://developers.facebook.com/docs/graph-api/reference/v14.0/insights
How and where can I get paid reach and paid impressions data of instagram media? Is there any documentation about this?
I will be grateful if you could help me.
Thanks in advance.
/insights?metric=reach,impressions
When I submitted the request, I was expecting organic reach + paid reach and organic impression + paid impression data.
but according to the meta team answer, only organic reach and organic impressions data are coming.

Related

Find my own product ratings via Amazon API

I need to find my product details such as ratings without scraping.
Is that possible or any existing API to get these information from?
If not is it possible to scrape it by my self any good source for free node js amazon scraper?
There does exist an API called Amazon's product advertising API.
The problem with it is that you need an Amazon associate account which is an affiliate marketing program that expects you to drive sales to products.
Product Advertising API sign up is available only to associates who have referred qualified sales and have been accepted into the program.
You could use the Keepa API. Keepa is a browser widget that scrapes Amazon through its users. The downside here is the data may not be real time. The more active an item is, the more often it is scraped. You can pull price, offers, reviews, rating, and more. The plugin is free, but the API is not.

Is it possible to retrieve metrics from an Instagram account?

I am trying to create a program that retrieves the total number of likes, comments, etc from an Instagram account, not necessarily the content of comments etc but just gives the total number of likes and comments from a specific account. Is that possible using the Instagram API?
So I've been stuck on this exact problem and here's the pertinent bit of my research for Instagram so far.
With "basic display" access one can get access to username, the total posts by the user, and the user id. That gives access to the actual posts, but not any anylitics to do with it, ie. no likes, shares, comments etc. Just a list of URL's.
You can use the "Business Discovery" endpoint (pulls profile info, follower counts, posts and associated like and comment counts) in two ways;
1. Authorize your own facebook page, create a long lived access token using curl or some other method and code it into your app and reuse the same token to pull all that data... But it's rate limited to something like 200 requests an hour.
2. Request permissions from the user, with a facebook access token. This is the most annoying bit. In order to get insights or any advanced data from the instagram graph api, the instagram user has to be a creator or business account, and MUST link a facebook page to the instagram account. And then use their info to request the data, thus no rate limits.
The benefit to point 1 above is that it doesn't really require an app review, since you are using your own testing account. But again, the rate limit and high probability of change is a negative.
You could also request instagram insights permissions, which would give you lots of information, but thats the same issue as point 2 above. Expanded permissions.
This permission would allow you to pull things like;
-A list of cities of the users followers
-A list of countries of users followers
-The gender and age distribution
-Post impressions (Total number of times the IG User's IG Media objects (i.e. posts, stories and promotions) have been viewed. Includes ad activity generated through the API, Facebook ads interfaces, and the Promote feature. Does not include profile views.)
-Active followers (Total number of the IG User's followers who were online during the specified range.)
-Profile Views (Total number of users who have viewed the IG User's profile within the specified period.
-Reach (Total number of times the IG User's media objects (i.e. posts, stories and promotions) have been uniquely viewed. Includes ad activity generated through the API, Facebook ads interfaces, and the Promote feature.)
relevant doc ->
https://developers.facebook.com/docs/instagram-api/reference/user/insights
But the unfortunate thing, is that there is also this relevant doc ->
https://developers.facebook.com/docs/instagram-api/overview#authentication
You can use business discovery in instagram graph api. This api can get account data from the other user by their username. (but it is still using your own facebook token)
sample req:
https://graph.facebook.com/v3.2/17841406390881400? fields=business_discovery.username(mattttgogogo){followers_count,media_count,media{media_url,timestamp,like_count,comments_count, permalink}}&access_token=
sample res:
{
"business_discovery": {
"followers_count": 113,
"media_count": 19,
"media": {
"data": [
{
"media_url": "https://scontent.cdninstagram.com/v/t51.2885-15/53548713_2066113247020455_3245400417240682448_n.jpg?_nc_cat=107&ccb=2&_nc_sid=8ae9d6&_nc_ohc=UIQzZq1WznMAX8utxLk&_nc_ht=scontent.cdninstagram.com&oh=b1fcd69119164fb4291b56aae212446a&oe=602439D5",
"timestamp": "2019-03-10T10:03:49+0000",
"like_count": 29,
"comments_count": 1,...
Not sure if they provide an api to get the sum, but at least you can calculate based on the response

Instagram Acceptable API Usage

We're new to developing for Instagram and after a thorough read of Instagram's developer policy and API guidelines, I'll admit to some level of confusion with what we are and are not allowed to do. Our application is a custom-built-for-a-specific-brand loyalty platform that rewards customers and allows them to progress in points/tiers to higher levels for things like discounts at the brand, reward certificates, special brand experiences, etc.
As I don't have a direct way to ask Instagram, here are our questions:
We want to scan the public timeline and look for certain tags + get the userID of the account that used the tag
We want to be able to let a user give us their Instagram username, authenticate with Instagram, and then give them some bonus points for doing so
We want to be able to give bonus points to customers who have given us their usernames, authenticated, and then posted using a certain hashtag
Would Instagram consider a loyalty platform that a customer has opted-in to to be an acceptable use of the API?
It looks like access to the public_content and likes scopes in Instagram was cutoff on October 1, 2017 and they are not accepting new submissions. We can still get access to the basic scope, but I think the items that would help us the most are in the now-defunct calls.
Any thoughts on the above?

How to Get Historical Data from Instagram API

I'm making an Instagram analytics web app. I've carefully read all of the Instagram API endpoints and I can't find any way to get historical data (ie, followers over time). All I would need would be something like a date followed, attached to each follower object.
However, there are Instagram analytics sites that offer this, for example, minter.io.
https://minter.io/faq#faq-posting-1
From link above: "Minter.io provides full historical data on Instagram accounts and hashtags except for:
Accounts – List of Lost Followers
Hashtags – Reach and Exposure
In these reports the data will only be available from the date the report is first generated."
An example of this historical data, from minter.io report on my account:
At this point, I think that either:
Minter has some special arrangement with Instagram to get additional data that otherwise isn't provided through API.
I'm missing something..
I understand how this could be done by comparing user data to previous reports (like this SO question asked) but clearly Minter is doing it some other way, because that report was generated from the very first time I created a trial account with them.
Any help would be much appreciated.
Now Facebook graph API has released the Instagram Insights API which returns detailed insights of Instagram Business accounts.
https://developers.facebook.com/docs/instagram-api/reference/user#insights
Above is for user insights, which has follower count. there are many media insights as well now available under graph API.
Details on how to consume this API is captured in the answer at: How to access Instagram feed of any user with new Graph API?

Deriving revenues from the use or provision of the Instagram APIs

I would like some assistance, ideally from someone at Instagram to clarify a part of the API terms of use.
There are various apps and third party websites which use the Instagram API and also generate revenue, either through means of advertising or directly charging users a fee for features/access. Even something simple like a website which uses your pictures through the API to make prints generates strong revnue.
How are they getting around the following API terms? If I were to develop a third party website that generated revenue, would it get banned? I am not looking to charge users to access the website, but the website in general will generate a revenue and does use Instagram API for authenticating users and pulling pictures.
"You shall not: Sell, lease, or sublicense the Instagram APIs or access thereto or derive revenues from the use or provision of the Instagram APIs, whether for direct commercial or monetary gain or otherwise, except as set forth below."
Appreciate any help
Thanks

Resources