Instagram API: guide to search and filter by language or location

Table of Content
Intro

Have you ever faced a situation when after a long search, you finally get useful information but unfortunately not on sought language? Or did you find out a perfect decision but at the wrong location?
Apply our Data365 Instagram API to look for posts by hashtags or location. To set a country or place, you should use the Instagram location id of that place. Then you can filter obtained data by language. This tool will be handy for marketing analysis businesses in social media.

Search settings for our Instagram API

You can search posts by hashtags in any language, for example, in Malaysian.

A POST request example for a search by tag:

COPY

https://api.data365.co/v1.1/instagram/tag/negara/update?max_posts_count=100&access_token=TOKEN

A GET request example to get search data for a tag:

COPY

https://api.data365.co/v1.1/instagram/tag/negara/posts?access_token=TOKEN

You can search posts by location in any country or place, for example, in Malaysia

Please note, to set this place, you need to use the Instagram location id of that place. For instance, for Malaysia, it is 980480088.

Here is an example of Instagram location ID search for Indonesia:

1

Search for Indonesia by keyword

2

Scroll through the search results until we find Indonesia with the location page type (a special icon instead of an avatar)

3

Click on it

4

We move to the Instagram page, where we can see the latest publications in which the location was marked as Indonesia. You will find the Instagram location ID of the place that you selected in the URL of the page. In our case, the Instagram location ID of Indonesia is 567193077. Now it can be used to create a search query.

An example of a page from which you will get the posts: https://www.instagram.com/explore/locations/980480088/


A POST request example for a search by tag:

COPY

https://api.data365.co/v1.1/instagram/location/980480088/update?load_posts=1&max_posts=100&access_token=TOKEN

A GET request example to get search data for a tag:

COPY

https://api.data365.co/v1.1/instagram/location/980480088/posts?access_token=TOKEN

You cannot limit your tag search by language (but you can filter posts by "lang" field)

An example of a POST request:

COPY

https://api.data365.co/v1.1/instagram/location/980480088/update?load_posts=1&max_posts=100&access_token=TOKEN

A GET request example that will return a list of only those search results from a POST query in which the language was specified as Indonesian:

COPY

https://api.data365.co/v1.1/instagram/location/980480088/posts?lang=id&access_token=TOKEN

So Data365 Instagram API is a reliable tool for gathering data by location and filtering it by different parameters, including language. We strongly believe that applying this tool will enhance the effectiveness of your business performance.