انقطاع جزئي للخدمةshare-external
Instagram API data is not matching across different breakdowns (city and country)
1

When using Instagram user insights endpoint to fetch followers demographic metric, we found that data is not matching across breakdowns. Reference API doc: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/insights

Will mention details of API calls below:

## API call 1:

Request URL: https://graph.facebook.com/v19.0/account_placeholder/insights?metric=follower_demographics&access_token=access_token_placeholder&period=lifetime&metric_type=total_value&timeframe=this_week&breakdown=city

Response json:

{ "data": [ { "name": "follower_demographics", "period": "lifetime", "title": "Follower demographics", "description": "The demographic characteristics of followers, including countries, cities and gender distribution.", "total_value": { "breakdowns": [ { "dimension_keys": [ "city" ], "results": [ { "dimension_values": [ "Kishangarh, Rajasthan" ], "value": 1 }, { "dimension_values": [ "West Valley, Washington" ], "value": 1 }, { "dimension_values": [ "Seattle, Washington" ], "value": 3 }, { "dimension_values": [ "Hong Kong, Hong Kong" ], "value": 1 }, { "dimension_values": [ "Athena, Oregon" ], "value": 2 }, { "dimension_values": [ "Phoenix, Arizona" ], "value": 2 }, { "dimension_values": [ "Richland, Washington" ], "value": 11 }, { "dimension_values": [ "Surprise, Arizona" ], "value": 1 }, { "dimension_values": [ "Lagos, Lagos State" ], "value": 2 }, { "dimension_values": [ "Kennewick, Washington" ], "value": 10 }, { "dimension_values": [ "Dayton, Washington" ], "value": 2 }, { "dimension_values": [ "Pasco, Washington" ], "value": 5 }, { "dimension_values": [ "Highland, Washington" ], "value": 1 }, { "dimension_values": [ "Live Oak, California" ], "value": 1 }, { "dimension_values": [ "Meridian, Idaho" ], "value": 3 }, { "dimension_values": [ "Nakuru, Rift Valley Province" ], "value": 1 }, { "dimension_values": [ "Dar es Salaam, Dar es Salaam" ], "value": 3 }, { "dimension_values": [ "Tacoma, Washington" ], "value": 4 }, { "dimension_values": [ "Meguro-ku, Tokyo" ], "value": 1 }, { "dimension_values": [ "Castle Rock, Colorado" ], "value": 1 }, { "dimension_values": [ "Lomé, Maritime Region" ], "value": 1 }, { "dimension_values": [ "Spokane, Washington" ], "value": 4 }, { "dimension_values": [ "Walla Walla, Washington" ], "value": 209 }, { "dimension_values": [ "Anchorage, Alaska" ], "value": 2 }, { "dimension_values": [ "Bellevue, Washington" ], "value": 2 }, { "dimension_values": [ "Vancouver, Washington" ], "value": 2 }, { "dimension_values": [ "Garrett, Washington" ], "value": 15 }, { "dimension_values": [ "Tieton, Washington" ], "value": 1 }, { "dimension_values": [ "Scottsdale, Arizona" ], "value": 2 }, { "dimension_values": [ "Waitsburg, Washington" ], "value": 6 }, { "dimension_values": [ "Milton-Freewater, Oregon" ], "value": 18 }, { "dimension_values": [ "Bilaspur, Chhattisgarh" ], "value": 1 }, { "dimension_values": [ "Troutdale, Oregon" ], "value": 2 }, { "dimension_values": [ "Boise, Idaho" ], "value": 4 }, { "dimension_values": [ "Colfax, Washington" ], "value": 1 }, { "dimension_values": [ "Fairwood, Washington" ], "value": 2 }, { "dimension_values": [ "College Place, Washington" ], "value": 39 }, { "dimension_values": [ "Selah, Washington" ], "value": 1 }, { "dimension_values": [ "Ariana, Ariana Governorate" ], "value": 1 }, { "dimension_values": [ "Yakima, Washington" ], "value": 14 }, { "dimension_values": [ "Rishon Le Zion, Central District" ], "value": 1 }, { "dimension_values": [ "Dixie, Washington" ], "value": 4 }, { "dimension_values": [ "Lakeland, Florida" ], "value": 1 }, { "dimension_values": [ "Santa Clarita, California" ], "value": 2 }, { "dimension_values": [ "Rocklin, California" ], "value": 1 } ] } ] }, "id": "account_placeholder/insights/follower_demographics/lifetime" } ] }

If we add the values here to get total it is 392.

API call 2:

Request URL: https://graph.facebook.com/v19.0/account_placeholder/insights?metric=follower_demographics&access_token=access_token_placeholder&period=lifetime&metric_type=total_value&timeframe=this_week&breakdown=country

Response json: { "data": [ { "name": "follower_demographics", "period": "lifetime", "title": "Follower demographics", "description": "The demographic characteristics of followers, including countries, cities and gender distribution.", "total_value": { "breakdowns": [ { "dimension_keys": [ "country" ], "results": [ { "dimension_values": [ "DE" ], "value": 1 }, { "dimension_values": [ "HK" ], "value": 1 }, { "dimension_values": [ "FI" ], "value": 1 }, { "dimension_values": [ "JM" ], "value": 1 }, { "dimension_values": [ "IL" ], "value": 1 }, { "dimension_values": [ "SV" ], "value": 1 }, { "dimension_values": [ "IN" ], "value": 6 }, { "dimension_values": [ "JP" ], "value": 1 }, { "dimension_values": [ "TZ" ], "value": 3 }, { "dimension_values": [ "IQ" ], "value": 1 }, { "dimension_values": [ "IR" ], "value": 2 }, { "dimension_values": [ "IS" ], "value": 1 }, { "dimension_values": [ "MX" ], "value": 2 }, { "dimension_values": [ "AR" ], "value": 5 }, { "dimension_values": [ "TG" ], "value": 1 }, { "dimension_values": [ "PH" ], "value": 1 }, { "dimension_values": [ "NG" ], "value": 5 }, { "dimension_values": [ "KE" ], "value": 1 }, { "dimension_values": [ "TN" ], "value": 1 }, { "dimension_values": [ "GB" ], "value": 1 }, { "dimension_values": [ "PK" ], "value": 2 }, { "dimension_values": [ "KH" ], "value": 1 }, { "dimension_values": [ "US" ], "value": 452 } ] } ] }, "id": "account_placeholder/insights/follower_demographics/lifetime" } ] }

If we add the values here to get total it is 492.

This is looking like a data mismatch when we are using this data. Please look into this issue and help us resolve this so that data matches up across breakdowns.

Thanks

TapClicks
تم طرح السؤال منذ حوالي ‏٣‏ أشهر