INSTAGRAM API
Search Instagram
Retrieve search instagram from Instagram with a single API request.
GET
/api/data/v1/instagram/search1credit base cost
Request parameters
Up to 1 creditThe username, hashtag, place, or keyword to search for.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/instagram/search?query=nike' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"data": {
"query": "nike",
"users": [
{
"position": 0,
"id": "13460080",
"username": "nike",
"full_name": "Nike",
"is_verified": true,
"profile_pic_url": "https://instagram.example.com/nike.jpg"
}
],
"hashtags": [
{
"position": 2,
"id": "17841562978125529",
"name": "nikewomen",
"media_count": 2036828,
"search_result_subtitle": null
}
],
"places": [
{
"position": 51,
"id": "715603272",
"name": "Nike",
"title": "Nike",
"subtitle": "",
"facebook_places_id": "106068296090172"
}
],
"keywords": [],
"rank_token": "a6e9cded-6c3e-41be-a6b1-9fa5295a30d5"
}
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"data": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "integer"
},
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"is_verified": {
"type": "boolean"
},
"profile_pic_url": {
"type": "string"
}
}
}
},
"hashtags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"media_count": {
"type": "integer"
},
"search_result_subtitle": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
}
}
}
},
"places": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"facebook_places_id": {
"type": "string"
}
}
}
},
"keywords": {
"type": "array"
},
"rank_token": {
"type": "string"
}
}
}
}
}