Instagram Example

HypeAuditor For Discovery - Instagram

JSON Example:

{
  "social_network": "instagram",
  "niche_search": "home decor",
  "category": {
    "include": [
      1018,
      1032
    ]
  },
  "reels_video_views_avg": {
    "from": 1000
  },
  "search": [
    "nasa"
  ],
  "account_geo": {
    "country": [
      "gb",
      "us"
    ],
    "city": [
      2643743
    ]
  },
  "account_gender": "male",
  "account_age": {
    "from": 13,
    "to": 65
  },
  "account_languages": [
    "en",
    "es"
  ],
  "account_type": "human",
  "account_has_contacts": true,
  "account_has_launched_advertising": true,
   "account_mentions": {
         "include": ["nasa"],
         "exclude": ["nike"]
    },
  "audience_geo": {
    "countries": [
      {
        "id": "gb",
        "prc": 20
      },
      {
        "id": "us",
        "prc": 20
      }
    ],
    "cities": [
      {
        "id": 2643743,
        "prc": 20
      }
    ]
  },
  "blogger_prices": {
    "post_price": {
      "from": 10,
      "to": 10000
    }
  },
  "audience_age": {
    "groups": ["13_17","18_24"],
    "prc": 50
  },
  "interests": [
    {
      "id": 11,
      "prc": 90
    },
    {
      "id": 12,
      "prc": 80
    }
  ],
  "audience_gender": {
    "gender": "female",
    "prc": 20
  },
  "subscribers_count": {
    "from": 120000
  },
  "er": {
    "from": 1,
    "to": 20
  },
  "ethnicity": [
    {
      "race": "arabian",
      "prc": 90
    }
  ],
  "income": {
    "id": "5k",
    "prc": 10
  },
  "aqs": {
    "from": 20,
    "to": 45
  },
  "last_media_time": {
    "from": 1723631206
  },
  "comments_rate": {
    "marks": [
      "good"
    ]
  },
  "growth": {
    "period": "7d",
    "from": 10,
    "to": 30
  },
  "sort": {
    "field": "subscribers_count",
    "order": "desc"
  },
  "similar": "nasa",
  "page": 1
}

Requests

Set YOUR_ID and YOUR_TOKEN from HypeAuditor.

$postFields = [
    'social_network'       => 'instagram',
    'account_has_contacts' => true,
];
$opts = [
    CURLOPT_URL            => 'https://hypeauditor.com/api/method/auditor.searchSandbox',
    CURLOPT_TIMEOUT        => 10,
    CURLOPT_POSTFIELDS     => $postFields,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        'X-Auth-Id: CLIENT_ID_HERE',
        'X-Auth-Token: API_TOKEN_HERE',
    ],
];
$ch = curl_init();
curl_setopt_array($ch, $opts);
$response = curl_exec($ch);
var_dump($response);
$postFields = json_encode([
    'social_network'       => 'instagram',
    'account_has_contacts' => true,
]);
$opts = [
    CURLOPT_URL            => 'https://hypeauditor.com/api/method/auditor.searchSandbox',
    CURLOPT_TIMEOUT        => 10,
    CURLOPT_POSTFIELDS     => $postFields,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        'X-Auth-Id: CLIENT_ID_HERE',
        'X-Auth-Token: API_TOKEN_HERE',
        'Content-Type: application/json',
        'Content-Length: '.strlen($postFields),
    ],
];
$ch = curl_init();
curl_setopt_array($ch, $opts);
$response = curl_exec($ch);
var_dump($response);

Response Object

Response can contain search_results array. Please, check Change Log for further information.

{
    "result": {
        "search_results": [
            {
                "basic": {
                    "username": "dubaiomid",
                    "title": "🇦🇪املاک دبی| امید نعمتی",
                    "avatar_url": "https://cdn.hypeauditor.com/img/instagram/user/51776203322.jpg?w=150&till=1794916800&sign=2507d64a7ef06bdd337d7035bd5a2287"
                },
                "metrics": {
                    "er": {
                        "value": 2.44,
                        "mode": "reels"
                    },
                    "subscribers_count": {
                        "value": 279229
                    },
                    "real_subscribers_count": {
                        "value": 244157
                    },
                    "reels_video_views_avg": {
                        "value": 6095
                    }
                },
                "features": {
                    "social_networks": [
                        {
                            "type": "instagram",
                            "title": "🇦🇪املاک دبی| امید نعمتی",
                            "social_id": "51776203322",
                            "username": "dubaiomid",
                            "avatar_url": "https://cdn.hypeauditor.com/img/instagram/user/51776203322.jpg?w=150&till=1798761540&sign=1313fa6dff61a8fb7d19eb6b79f7025b",
                            "subscribers_count": 279229,
                            "er": 2.44,
                            "state": "READY"
                        }
                    ],
                    "blogger_topics": {
                        "data": []
                    },
                    "blogger_thematics": {
                        "data": [
                            1004
                        ]
                    },
                    "blogger_ai_labels": {
                        "data": [
                            {
                                "translations": {
                                    "en": "real estate",
                                    "fr": "immobilier",
                                    "de": "Immobilien",
                                    "es": "inmobiliario",
                                    "pt": "imobiliário",
                                    "zh": "房地产",
                                    "ja": "不動産",
                                    "ko": "부동산"
                                },
                                "icon": "house",
                                "url": "https://static.hypeauditor.com/fa/regular/house.svg",
                                "prefix": "far"
                            },
                            {
                                "translations": {
                                    "en": "investment opportunities",
                                    "fr": "opportunités d'investissement",
                                    "de": "Anlagemöglichkeiten",
                                    "es": "oportunidades de inversión",
                                    "pt": "oportunidades de investimento",
                                    "zh": "投资机会",
                                    "ja": "投資機会",
                                    "ko": "투자 기회"
                                },
                                "icon": "sack-dollar",
                                "url": "https://static.hypeauditor.com/fa/regular/sack-dollar.svg",
                                "prefix": "far"
                            }
                        ]
                    },
                    "search_content": null
                }
            },
            {
                "basic": {
                    "username": "sweet_home_ranya",
                    "title": "Sweet Home",
                    "avatar_url": "https://cdn.hypeauditor.com/img/instagram/user/8982701073.jpg?w=150&till=1794916800&sign=2ea65dea2d293c6a6489a4f42b7e3502"
                },
                "metrics": {
                    "er": {
                        "value": 1.52,
                        "mode": "reels"
                    },
                    "subscribers_count": {
                        "value": 417408
                    },
                    "real_subscribers_count": {
                        "value": 347074
                    },
                    "reels_video_views_avg": {
                        "value": 15495
                    }
                },
                "features": {
                    "social_networks": [
                        {
                            "type": "instagram",
                            "title": "Sweet Home",
                            "social_id": "8982701073",
                            "username": "sweet_home_ranya",
                            "avatar_url": "https://cdn.hypeauditor.com/img/instagram/user/8982701073.jpg?w=150&till=1798761540&sign=7f72ecfb517d2bb2a523d2390a6c36ef",
                            "subscribers_count": 417408,
                            "er": 1.52,
                            "state": "READY"
                        }
                    ],
                    "blogger_topics": {
                        "data": []
                    },
                    "blogger_thematics": {
                        "data": []
                    },
                    "blogger_ai_labels": {
                        "data": []
                    },
                    "search_content": null
                }
            }
        ],
        "current_page": 1,
        "total_pages": 1,
        "queries_left": 99969
    }
}

Errors