YepAPI
Instagram API

Instagram Search

Search Instagram for users, hashtags, and places.

POST/v1/instagram/search
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/instagram/search', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ query: 'travel photography' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/instagram/search \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "travel photography"}'

Request Body

ParameterTypeRequiredDescriptionDefault
querystringYesSearch query

Response

{
  "ok": true,
  "data": {
    "users": [
      {
        "username": "travelphotography",
        "full_name": "Travel Photography",
        "profile_pic_url": "https://scontent.cdninstagram.com/...",
        "is_verified": true,
        "follower_count": 5200000,
        "is_private": false
      }
    ],
    "hashtags": [
      {
        "name": "travelphotography",
        "media_count": 189000000
      }
    ],
    "places": [
      {
        "title": "Travel Photography Studio",
        "location": {
          "lat": 40.7128,
          "lng": -74.006
        }
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.usersobject[]Array of matching user accounts
data.users[].usernamestringInstagram username
data.users[].full_namestringUser's display name
data.users[].profile_pic_urlstringProfile picture URL
data.users[].is_verifiedbooleanWhether the user is verified
data.users[].follower_countnumberNumber of followers
data.users[].is_privatebooleanWhether the account is private
data.hashtagsobject[]Array of matching hashtags
data.hashtags[].namestringHashtag name (without #)
data.hashtags[].media_countnumberNumber of posts using this hashtag
data.placesobject[]Array of matching places

On this page