Instagram Reels Search API (V1)
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...
Searches Instagram Reels by keyword or hashtag with token-based pagination. Use it to discover short-form videos, monitor topics, and continue through matching results.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
token | query | string | Yes | - | Access token for the API service. |
keyword | query | string | Yes | - | The search keyword or hashtag to filter Reels. |
paginationToken | query | string | No | | Token used for retrieving the next page of results. |
Code Samples
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE'text
I want to use the "Reels Search (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE
API Endpoint: BASE_URL + /api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/instagram/reels-search-v1-en.json
Parameters:
- token (query): Access token for the API service. (Required)
- keyword (query): The search keyword or hashtag to filter Reels. (Required)
- paginationToken (query): Token used for retrieving the next page of results.
Return format: safely handle JSON or text according to the actual Content-Type.
Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
- 0: Success
- 100: Invalid or Inactive Token
- 301: Collection Failed. Please Retry.
- 302: Rate Limit Exceeded
- 303: Daily Quota Exceeded
- 400: Invalid Parameters
- 500: Internal Server Error
- 600: Permission Denied
- 601: Insufficient Balance
- 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.
Please help me write a script in my preferred programming language to call this API and handle the response.python
import requests
BASE_URL = "https://api.justoneapi.com" # Provided by OpenAPI servers
url = BASE_URL + "/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
content_type = response.headers.get("content-type", "").lower()
if "json" in content_type:
try:
print(response.json())
except ValueError:
print(response.text)
elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
print(response.text)
else:
with open("response.bin", "wb") as output:
output.write(response.content)
print(f"Saved {len(response.content)} bytes to response.bin")js
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE";
const response = await fetch(url, {
method: "GET",
signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
const contentType = (response.headers.get("content-type") || "").toLowerCase();
const mediaType = contentType.split(";", 1)[0].trim();
const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
if (textual) {
const responseText = new TextDecoder().decode(responseBytes);
let data = responseText;
if (contentType.includes("json")) {
try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
}
console.log(data);
} else {
console.log(`Received ${responseBytes.byteLength} binary bytes`);
}
}java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) throws Exception {
final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
final String url = BASE_URL + "/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE";
HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create(url))
.timeout(Duration.ofSeconds(120))
.method("GET", HttpRequest.BodyPublishers.noBody());
HttpRequest request = builder.build();
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
System.out.println(response.statusCode());
String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
String mediaType = contentType.split(";", 2)[0].trim();
if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
System.out.println(new String(response.body(), StandardCharsets.UTF_8));
} else {
Files.write(Path.of("response.bin"), response.body());
System.out.println("Saved " + response.body().length + " bytes to response.bin");
}
}
}go
package main
import (
"fmt"
"io"
"os"
"strings"
"net/http"
"time"
)
const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers
func main() {
client := &http.Client{Timeout: 120 * time.Second}
url := BASE_URL + "/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE"
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
fmt.Println(resp.StatusCode)
bodyBytes, _ := io.ReadAll(resp.Body)
contentType := strings.ToLower(resp.Header.Get("Content-Type"))
mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
fmt.Println(string(bodyBytes))
} else {
os.WriteFile("response.bin", bodyBytes, 0600)
fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
}
}php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/instagram/search-reels/v1?token=YOUR_API_KEY&keyword=VALUE';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
echo $response;
} else {
file_put_contents('response.bin', $response);
echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}Response Fields
Key fields in a successful response (code = 0).
Results and pagination5 fields
data
One Reels search page and its reported continuation token.
| Field | Type | Description |
|---|---|---|
data | object | Page contents for the current Reels query. |
data.count | integer | Number of Reel entries reported on this page. |
data.items | array | Reels returned on this page. The list may be empty. |
data.items[] | object | One Reel in the search results. |
pagination_token | string | Pass the returned continuation token as paginationToken with the same keyword to request another page. An empty page can include a token. |
Reel metadata13 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
id | string | Reel identifier as returned by Instagram. |
code | string | Short code used in the Reel link. |
permalink | string | Direct Instagram URL for the Reel when present. |
media_type | integer | Numeric media type code. Searches in the verified samples returned code 2 for video. |
product_type | string | Product type label. The verified Reel samples returned clips. |
media_format | string | Media format label returned for the Reel. |
is_video | boolean | Whether the media is a video. |
taken_at | integer | Publication time as a Unix timestamp in seconds. |
taken_at_ts | integer | Publication timestamp field returned in Unix seconds. |
taken_at_date | string | Formatted publication timestamp returned with the Reel. |
is_paid_partnership | boolean | Whether the Reel is marked as a paid partnership. |
is_pinned | boolean | Whether the Reel is marked as pinned. |
is_in_profile_grid | boolean | Whether the Reel is shown in the author's profile grid. |
Video and imagery46 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
video_url | string | Direct video URL returned for the Reel. |
thumbnail_url | string | Preview image URL returned for the Reel. |
video_duration | number | Numeric duration reported for the video in the response's original unit. |
video_codec | string | Video codec label returned with the Reel. |
has_audio | boolean | Whether the Reel has audio. |
original_width | integer | Original media width in pixels. |
original_height | integer | Original media height in pixels. |
number_of_qualities | integer | Reported number of video quality variants. |
video_versions | array | Available video versions listed in the response. |
video_versions[] | object | One video version of the Reel. |
video_versions[].id | string | Identifier of this video version. |
video_versions[].type | integer | Platform code for this video version type. |
video_versions[].url | string | URL of this video version. |
video_versions[].width | integer | Width of this video version in pixels. |
video_versions[].height | integer | Height of this video version in pixels. |
video_versions[].bandwidth | integer | Bandwidth value reported for this encoded version. |
image_versions | object | Image candidates and preview assets for the Reel. |
image_versions.items | array | Candidate image versions listed for the Reel. |
image_versions.items[] | object | One image candidate. |
image_versions.items[].url | string | URL of this image version. |
image_versions.items[].width | integer | Width of this image version in pixels. |
image_versions.items[].height | integer | Height of this image version in pixels. |
image_versions.items[].is_spatial_image | boolean | Whether Instagram marks the image as spatial. |
image_versions.additional_items | object | Additional first-frame images returned with the Reel. |
image_versions.additional_items.first_frame | object | First-frame image version. |
image_versions.additional_items.first_frame.url | string | URL of this image version. |
image_versions.additional_items.first_frame.width | integer | Width of this image version in pixels. |
image_versions.additional_items.first_frame.height | integer | Height of this image version in pixels. |
image_versions.additional_items.first_frame.is_spatial_image | boolean | Whether Instagram marks the image as spatial. |
image_versions.additional_items.igtv_first_frame | object | Additional first-frame image in the IGTV field. |
image_versions.additional_items.igtv_first_frame.url | string | URL of this image version. |
image_versions.additional_items.igtv_first_frame.width | integer | Width of this image version in pixels. |
image_versions.additional_items.igtv_first_frame.height | integer | Height of this image version in pixels. |
image_versions.additional_items.igtv_first_frame.is_spatial_image | boolean | Whether Instagram marks the image as spatial. |
image_versions.scrubber_spritesheet_info_candidates | object | Sprite sheets for timeline previews. |
image_versions.scrubber_spritesheet_info_candidates.default | object | Default timeline preview sprite sheet configuration. |
image_versions.scrubber_spritesheet_info_candidates.default.sprite_urls | array | Sprite sheet image URLs. |
image_versions.scrubber_spritesheet_info_candidates.default.sprite_urls[] | string | URL of one sprite sheet image. |
image_versions.scrubber_spritesheet_info_candidates.default.sprite_width | integer | Sprite sheet width in pixels. |
image_versions.scrubber_spritesheet_info_candidates.default.sprite_height | integer | Sprite sheet height in pixels. |
image_versions.scrubber_spritesheet_info_candidates.default.thumbnail_width | integer | Width of each timeline preview thumbnail in pixels. |
image_versions.scrubber_spritesheet_info_candidates.default.thumbnail_height | integer | Height of each timeline preview thumbnail in pixels. |
image_versions.scrubber_spritesheet_info_candidates.default.thumbnails_per_row | integer | Number of thumbnails per row in the sheet. |
image_versions.scrubber_spritesheet_info_candidates.default.total_thumbnail_num_per_sprite | integer | Total number of thumbnails reported per sheet. |
image_versions.scrubber_spritesheet_info_candidates.default.max_thumbnails_per_sprite | integer | Maximum number of thumbnails reported per sheet. |
image_versions.scrubber_spritesheet_info_candidates.default.file_size_kb | integer | Reported sprite sheet file size in kilobytes. |
Creator and collaborators18 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
user | object | Author account returned for the Reel. |
user.id | string | Instagram account identifier as text. |
user.username | string | Instagram username shown for this account. |
user.full_name | string | Display name reported for the account. |
user.profile_pic_url | string | Profile picture URL for the account. |
user.profile_pic_id | string | Identifier of the account's profile picture. |
user.is_private | boolean | Whether the profile is marked private. |
user.is_verified | boolean | Whether the account displays a verified status. |
user.follower_count | integer | Follower count reported for the account. |
coauthor_producers | array | Coauthor accounts associated with the Reel, when present. |
coauthor_producers[] | object | One coauthor account. |
coauthor_producers[].id | string | Instagram account identifier as text. |
coauthor_producers[].username | string | Instagram username shown for this account. |
coauthor_producers[].full_name | string | Display name reported for the account. |
coauthor_producers[].profile_pic_url | string | Profile picture URL for the account. |
coauthor_producers[].profile_pic_id | string | Identifier of the account's profile picture. |
coauthor_producers[].is_private | boolean | Whether the profile is marked private. |
coauthor_producers[].is_verified | boolean | Whether the account displays a verified status. |
Caption and subtitles25 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
caption | object | Caption attached to the Reel. |
caption.id | string | Caption record identifier as text. |
caption.text | string | Caption text as posted by the author. |
caption.text_translation | string | null | Translated caption text when included in the response. |
caption.created_at | integer | Time recorded for caption creation as a Unix timestamp in seconds. |
caption.hashtags | array | Hashtags listed with the caption. The list may be empty. |
caption.hashtags[] | string | One hashtag string reported for the caption. |
caption.mentions | array | Mentions listed with the caption. The list may be empty. |
caption.mentions[] | string | One mention string reported for the caption. |
caption.user_id | string | Account identifier recorded on the caption. |
caption.user | object | Account attached to the caption. |
caption.user.id | string | Instagram account identifier as text. |
caption.user.username | string | Instagram username shown for this account. |
caption.user.full_name | string | Display name reported for the account. |
caption.user.profile_pic_url | string | Profile picture URL for the account. |
caption.user.profile_pic_id | string | Identifier of the account's profile picture. |
caption.user.is_private | boolean | Whether the profile is marked private. |
caption.user.is_verified | boolean | Whether the account displays a verified status. |
video_subtitles_enabled | boolean | Whether video subtitles are enabled for the Reel. |
video_subtitles_locale | string | null | Locale value reported for the Reel's subtitles when available. |
video_subtitles_uri | string | null | Subtitle file URI when available. |
translated_video_subtitles | array | null | Translated subtitle versions when included in the response. |
translated_video_subtitles[] | object | One translated subtitle version. |
translated_video_subtitles[].language | string | Language label of the translated subtitles. |
translated_video_subtitles[].uri | string | URI for this translated subtitle version. |
Engagement metrics14 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
play_count | integer | Play count reported for the Reel. |
ig_play_count | integer | Instagram play count reported separately for the Reel. |
fb_play_count | integer | null | Facebook play count when included in the response. |
like_count | integer | null | Like count reported for the Reel, which may be null. |
ig_like_count | integer | Instagram like count when included in the response. |
fb_like_count | integer | null | Facebook like count when included in the response. |
comment_count | integer | Comment count reported for the Reel. |
share_count | integer | null | Share count reported for the Reel. |
repost_count | integer | null | Repost count reported for the Reel, which may be null. |
share_count_disabled | boolean | Whether sharing counts are marked disabled for the Reel. |
like_and_view_counts_disabled | boolean | Whether like and view counts are marked disabled for the Reel. |
can_reshare | boolean | Whether the Reel is marked as resharable. |
can_save | boolean | Whether the Reel is marked as saveable. |
has_more_comments | boolean | null | Whether the individual Reel is marked as having more comments. |
Audio information35 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
clips_metadata | object | Audio metadata associated with the Reel. |
clips_metadata.audio_type | string | Audio category label returned for the Reel. |
clips_metadata.audio_canonical_id | string | Canonical audio identifier reported for the Reel. |
clips_metadata.original_sound_info | object | null | Original audio information when available. |
clips_metadata.original_sound_info.audio_id | string | Original audio identifier as text. |
clips_metadata.original_sound_info.original_audio_title | string | Title displayed for the original audio. |
clips_metadata.original_sound_info.original_media_id | string | Identifier of the media associated with the original audio. |
clips_metadata.original_sound_info.duration_in_ms | integer | Duration of the original audio in milliseconds. |
clips_metadata.original_sound_info.progressive_download_url | string | Original audio playback URL when returned. |
clips_metadata.original_sound_info.is_explicit | boolean | Whether the original audio is marked explicit. |
clips_metadata.original_sound_info.ig_artist | object | Instagram artist associated with the original audio. |
clips_metadata.original_sound_info.ig_artist.id | string | Instagram account identifier as text. |
clips_metadata.original_sound_info.ig_artist.username | string | Instagram username shown for this account. |
clips_metadata.original_sound_info.ig_artist.full_name | string | Display name reported for the account. |
clips_metadata.original_sound_info.ig_artist.profile_pic_url | string | Profile picture URL for the account. |
clips_metadata.original_sound_info.ig_artist.profile_pic_id | string | Identifier of the account's profile picture. |
clips_metadata.original_sound_info.ig_artist.is_private | boolean | Whether the profile is marked private. |
clips_metadata.original_sound_info.ig_artist.is_verified | boolean | Whether the account displays a verified status. |
clips_metadata.music_info | object | null | Music information when returned for the Reel. |
clips_metadata.music_info.music_asset_info | object | Metadata of the music asset used in the Reel. |
clips_metadata.music_info.music_asset_info.id | string | Music asset identifier as text. |
clips_metadata.music_info.music_asset_info.audio_id | string | Audio identifier for the music asset. |
clips_metadata.music_info.music_asset_info.title | string | Title shown for the music asset. |
clips_metadata.music_info.music_asset_info.display_artist | string | Artist credit displayed for the music asset. |
clips_metadata.music_info.music_asset_info.artist_id | string | null | Artist identifier returned for the music asset. |
clips_metadata.music_info.music_asset_info.ig_username | string | null | Instagram username associated with this music asset when available. |
clips_metadata.music_info.music_asset_info.duration_in_ms | integer | Music asset duration in milliseconds. |
clips_metadata.music_info.music_asset_info.cover_artwork_uri | string | Cover artwork address for the music asset. |
clips_metadata.music_info.music_asset_info.cover_artwork_thumbnail_uri | string | Cover art thumbnail address for the music asset. |
clips_metadata.music_info.music_asset_info.progressive_download_url | string | Playback URL returned for the music asset. |
clips_metadata.music_info.music_asset_info.fast_start_progressive_download_url | string | Fast-start playback URL returned for the music asset. |
clips_metadata.music_info.music_asset_info.has_lyrics | boolean | Whether lyrics are marked available for the music asset. |
clips_metadata.music_info.music_asset_info.is_explicit | boolean | Whether the music asset is marked explicit. |
clips_metadata.music_info.music_asset_info.highlight_start_times_in_ms | array | Highlight start positions in milliseconds. |
clips_metadata.music_info.music_asset_info.highlight_start_times_in_ms[] | integer | Start position of one highlight in milliseconds. |
Place and content labels8 fields
data.data.items[]
| Field | Type | Description |
|---|---|---|
location | object | null | Place tagged on the Reel when returned. |
location.id | string | Identifier assigned to the tagged place. |
location.name | string | Name of the tagged place. |
location.short_name | string | Short name of the tagged place. |
location.city | string | City label returned for the tagged place. |
ai_label_info | object | null | AI disclosure label information when returned for the Reel. |
ai_label_info.attribution_label_text | string | null | Attribution text displayed for the AI disclosure label. |
ai_label_info.subtitle_text | string | Supplemental text accompanying the AI disclosure label. |
Response Example
Loading the response example...