instagram-api

Instagram API - Getting invalid media id with video shortcode

北战南征 提交于 2020-01-07 06:34:06
问题 I'm using the /media/shortcode/shortcode endpoint of instagram to get information about a certain media with a shortcode. https://www.instagram.com/developer/endpoints/media/#get_media_by_shortcode The problem is when I pass a photo's shortcode to the endpoint everything works fine and I get the result I'm expecting from Instagram, however, when I pass a video's shortcode to that endpoint, the api returns the following: { "meta": { "code": 400, "error_type": "APINotFoundError", "error_message

instagram gem JSON::ParserError in SessionController#index

浪子不回头ぞ 提交于 2020-01-06 15:51:07
问题 I am trying to use the instagram gem to create a gallery of photo from my instagram. I was following this example to try to integrate the gem in my app but keep running to this error JSON::ParserError in SessionController#index Any help is well appreciated! This is my CONTROLLER class SessionController < ApplicationController def index @item = Item.all @instagram = ::Instagram.user_recent_media('grateful4salvation', {:count => 2}) end end Initializers/instagram.rb require 'instagram'

Instagram API - Multiple hashtags [closed]

对着背影说爱祢 提交于 2020-01-02 10:04:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Is is possible to search for Instagram post with multiple hashtags? I wanna fetch images based on multiple hashtags. 回答1: Using the current (version 1) of Instagram API, it is not possible to query for multiple hash tags. There are websites offering search for two or multiple has

How to get Instagram Profile Picture?

折月煮酒 提交于 2020-01-01 19:12:46
问题 How to extract Instagram Profile picture using instagram API in android ? Or any other Method To extract Insta Profile Picture? 回答1: Use one of these URL https://www.instagram.com/USERNAME/?__a=1 https://i.instagram.com/api/v1/users/USER_ID/info/ NOTE: To get Instagram user id , use first URL with Instagram username 回答2: To get profile photo, use the function bellow: function getPhoto(a) { // validation for instagram usernames var regex = new RegExp(/^(?!.*\.\.)(?!.*\.$)[^\W][\w.]{0,29}$/);

How to Get Historical Data from Instagram API

孤街醉人 提交于 2020-01-01 09:06:29
问题 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:

How to be an Instagram sandbox user for any client in Instagram

五迷三道 提交于 2019-12-30 03:58:05
问题 I am building an application with Instagram login. I was able to login and fetch 20 media files as per sandbox rate-limits. Now since I want to fetch the tagged images, I have to invite users to the sandbox after which I can tag their photos and fetch data. My problem here is I am not able to send sandbox invite. I go to Manage Client > edit > sandbox option > type user name , enter to invite. It appears as NOT SAVED in sandbox user, and the person to whom I am sending the invite is not

Where is the search media by tag on new Instagram Graph API?

ε祈祈猫儿з 提交于 2019-12-30 02:26:26
问题 On the current Instagram API we have an endpoint to search recent media by tag, but this platform will be deprecated beginning in July 2018. The problem is that Instagram Graph API reference doesn't include any endpoint to search media by tag. Does anyone know how to search media by tag using the new Instagram Graph API? 回答1: Just announced a few days ago, the new Instagram Graph API: Hashtag Search API is now available. Here is a link to the documentation for the full API: https://developers

What is the new instagram json endpoint?

隐身守侯 提交于 2019-12-29 18:52:54
问题 Instagram used to expose open data as json under the endpoint https://www.instagram.com/<username>/?__a=1 . This changed over night, the endpoint is not available anymore. What is the new endpoint or what could be an alternative to this? Thanks in advance! 回答1: The endpoint does not exist anymore. Facebook is restricting APIs because of scandals. The data is still there of course, Instagram's frontend needs it, so the alternative right now is to scrape the page and find the json data there.

What is the new instagram json endpoint?

坚强是说给别人听的谎言 提交于 2019-12-29 18:52:02
问题 Instagram used to expose open data as json under the endpoint https://www.instagram.com/<username>/?__a=1 . This changed over night, the endpoint is not available anymore. What is the new endpoint or what could be an alternative to this? Thanks in advance! 回答1: The endpoint does not exist anymore. Facebook is restricting APIs because of scandals. The data is still there of course, Instagram's frontend needs it, so the alternative right now is to scrape the page and find the json data there.

Get location media from instagram api

江枫思渺然 提交于 2019-12-25 16:45:14
问题 So, I have a situation here. My client wants to get location media from instagram without access token, authorized app, etc... Can this be achieved? If not, please tell me how to start a submission for this permission, and what permission exactly is this with instagram. 回答1: Do you mean get media by geolocation? GET https://www.instagram.com/explore/locations/<LOCATION_ID>/?__a=1 without any authorization and application, for example curl https://www.instagram.com/explore/locations/212988663/