Is there any way to get similar instagram hashtags using the public api? (/?__a==1) - instagram

I've been trying to get similar hashtags using __a==1 parameter but
https://www.instagram.com/explore/tags/home/?__a=1
only returns the data for just one tag.
Is there any way to get the similar tags we get suggested in Instagram mobile search function?

Related

NodeJS Twitter API get liked tweets count

I'm trying to get the number of tweets a user has ever liked in NodeJs using twitter-api-v2, but I can't seem to find the solution. I tried to use the "public_metrics" property but it looks like it only contains the following properties:
followers count
following count
tweet count
listed count
I also tried to use the client.v2.userLikedTweets() method but it can only go up to 100 likes, I know I could upgrade to a premium account but I don't want to
Is there a solution? Thanks.
If you have an elevated access, you can use the favourites_count field in the User objects from the Twitter API V1. But there is unfortunately no way to do so with the Twitter API V2.

How to make more posts/data appear on instagram

I'm using this url: https://www.instagram.com/explore/tags/meugatonovet/?__a=1, to get hashtag data. With this parameter it shows a json, but returns only 39 posts/pots of 7,000 thousand.
Is there a tool, some parameter or something else that can make it return more data?
Using ?__a=1 parameter is a neat trick to get JSON data for any Instagram page, but it's not an official API; Instagram can block your IP address any time and the endpoint is not guaranteed to remain stable.
The official way to look up media via hashtag is with Graph API Hashtag Search.
See getting started for initial steps. You need a business account ID for your Instagram profile which is required parameter for hashtag search. Then you can do these steps:
Find the ID of the hashtag you are looking for, for example:
GET https://graph.facebook.com/v13.0/ig_hashtag_search?user_id=<business account ID>&q=meugatonovet&access_token=<user access token>
This will return a JSON of the hashtag:
{
"data": [
{
"id": "17878113037414936"
}
]
}
Use that ID in other requests, for example /recent_media:
GET https://graph.facebook.com/v13.0/17878113037414936/recent_media?user_id=<business account ID>&fields=id,media_type,comments_count,like_count,media_url&access_token=<user access token>
The response will also provide the pagination cursor which lets you read all the data within API limitations.
Other less official options are web scraping or using Instagram's private API (there are actively maintained libraries for that, like instagram-private-api), but mind that this might get you banned and it breaks Instagram's ToS. It's probably fine for a personal project, but not so fine for a commercial use.
This endpoint is not working anymore:
https://www.instagram.com/explore/tags/username/?__a=1
However, a possible solution is adding __d=dis to your payload:
https://www.instagram.com/explore/tags/username/?__a=1&__d=dis
Please, take into account that this is an unofficial method, and you can get banned as #jnv advised.
Best regards

Get related instagram tags

Is it possible to get related tags on Instagram via the API?
You can get a tags data by doing a GET request on
https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN
But is it possible to get related tags? so if I searched for webdesign it might return websitedesign etc

Instagram feeds using tag name of particular user

I am trying to fetch the instagram feeds to my site using tag name.
https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN
above is the api which I am using to get the feeds.
Now the feeds are displaying from all the users who use the tag. I need to restrict the feeds for the particular user who use the tag name.
Anyone come across this?
Thanks,
The current version of the Instagram Api does not have an endpoint that will allow you to get media by tag-name AND user-id. Your best bet is to use 1 of the following endpoints, and then loop through the results and filter out the media that matches the 2nd condition.
Search for posts by given hashtag's name using GET /tags/{tag-name}/media/recent API endpoint request and then filter the response list of media to match the user-id for the particular user in question.
or
Search for posts by the particular user using GET /users/{user-id}/media/recent API endpoint request and then manually check every post if its tags array contains the specific hashtag you are looking for.
I recommend you go with option 2 as that will be faster, since an individual user feed is a much smaller data set than media from 1000s of Instagram users tagged with a hashtag.

How can I search Instagram with hashtags via a URL?

On both Facebook and Twitter, you can do a simple search of hashtags on these channels via a URL search, for example,
https://www.facebook.com/hashtag/myhashtag
Can you do the same with Instagram also? I can't seem to figure it out. I did find some API, but that's about all: https://instagram.com/developer/endpoints/tags/
This might be something that Instagram implemented after this question was originally asked, but this currently works:
http://instagram.com/explore/tags/yourhashtag
OR
http://instagram.com/tags/yourhashtag
The latter simply redirects to the former, but it's handy to have a shorter URL in some instances.
You'll find out more about how to customise Instagrams URLs by using endpoints on their API documentation page.
I'm not very familiar with how to use URL parameters and I'd be curious to know if anyone has found a way to filter via URL both by user and hashtag. Meaning that you show everything a specific user has posted with a specific hashtag. Many Instagram plugins allow you to do this at the same time, so one would hope it's possible via URL as well.
There is the instagram public API's tags section that can help you do
this. http://instagram.com/developer/endpoints/tags/
http://iconosquare.com/tag/ is another alternative
For example: http://iconosquare.com/tag/flowers
via https://stackoverflow.com/a/11182218/1085891

Resources