# Instagram Search Posts & Reels (`datamagnet/instagram-search-posts-reels`) Actor

Search for public posts and reels by keyword and return matching results.

- **URL**: https://apify.com/datamagnet/instagram-search-posts-reels.md
- **Developed by:** [Datamagnet](https://apify.com/datamagnet) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Social Post Reel Search Scraper

Find public Instagram posts and reels by keyword and collect the matching results in one place. Social Post Reel Search is built for marketers, researchers, creators, and agencies who need fast access to Instagram content without manually scrolling through search results. Use it to discover public posts and reels, review captions, usernames, engagement signals, media links, and other details returned by the source. It automatically keeps gathering results until it reaches your chosen limit or there are no more matches.

### Key Features
- **Extract** public Instagram posts and reels related to any keyword you choose.
- **Collect** matching results exactly as they appear from the source, preserving the original fields.
- **Continue** through additional pages automatically so you can get more than just the first batch of results.
- **Control** how many results you want in a single run with a simple maximum limit.
- **Review** rich post details such as captions, hashtags, usernames, likes, comments, shares, views, and media links.
- **Filter** your research by topic, brand name, creator name, campaign phrase, or trend keyword.
- **Export** the collected data for reporting, analysis, lead research, or content tracking.

### Use Cases

#### Market Research
Marketing teams use this actor to search Instagram for a brand, product category, or trending topic and quickly see what public posts and reels are showing up. The returned fields like caption text, hashtags, like count, comment count, share count, and play count help teams understand what content is getting attention and how people are talking about it.

#### Influencer Discovery
Agencies and brands can search for creator names, campaign terms, or niche topics to find public reels and posts connected to a specific audience. Fields such as username, full name, follower count, verification status, and engagement metrics make it easier to shortlist creators worth reviewing.

#### Content Inspiration
Social media managers can search for keywords tied to their industry and collect examples of real posts and reels that are already performing in the wild. By reviewing captions, hashtags, media type, and thumbnail links, they can spot recurring themes, formats, and hooks to inspire their own content calendar.

#### Competitive Monitoring
Businesses can search for competitor names or product terms to see how public Instagram content is being presented and discussed. The actor returns post-level details like caption, media format, engagement counts, and publication timing, which helps teams compare messaging and identify patterns in audience response.

#### Campaign Tracking
Brands running launches or hashtag campaigns can search for campaign keywords and gather public posts and reels that mention them. This makes it easier to monitor how the campaign is spreading, which creators are participating, and which posts are generating the strongest engagement.

#### Audience Research
Researchers and growth teams can search for community terms, hobbies, or interest-based keywords to understand what kind of public Instagram content appears around those topics. The returned usernames, captions, hashtags, and media details help reveal audience language, content style, and recurring interests.

### Input

| Field | Type | Required | Description | Example |
|---|---|---:|---|---|
| max_results | integer | No | Set the highest number of matching results you want in one run. | 100 |
| search_query | string | Yes | Enter the word or phrase you want to search for, such as a brand, topic, or creator name. | mrbeast |
| url_embed_safe | boolean | No | Turn this on if you want image or video links that are safer to place on your website. | false |
| pagination_token | string | No | Use this if you want to continue from a previous page of results. Leave it empty to start fresh. |  |

### Output

| Field | Type | Description |
|---|---|---|
| ai_interactive_embodiment_attachment_style_info | null | Extra source-provided information about interactive media styling, if available. |
| are_remixes_crosspostable | boolean | Shows whether the reel can be remixed or shared in certain ways. |
| attribution | null | Attribution details from the source, if included. |
| audience | null | Audience information attached to the post, if available. |
| audio | null | Audio details linked to the post, if included. |
| autodub_status | null | Indicates whether automatic dubbing information is available. |
| basel_encoding_timeout | null | Source-provided encoding status, if present. |
| boost_unavailable_identifier | null | Identifier explaining why boosting is unavailable, if provided. |
| boost_unavailable_reason | null | Reason boosting is unavailable, if provided. |
| boosted_by_sponsor | null | Shows whether the post was boosted by a sponsor. |
| boosted_post_id | null | ID of the boosted post, if applicable. |
| boosted_status | null | Boosting status from the source, if available. |
| branded_content_ads_boost_post_tokens | null | Tokens related to branded content promotion, if included. |
| byoa_langs | null | Language settings or related source data, if available. |
| can_modify_carousel | null | Indicates whether the carousel can be changed. |
| can_reply | boolean | Shows whether replies are allowed. |
| can_reshare | boolean | Shows whether the post can be reshared. |
| can_save | boolean | Shows whether the post can be saved. |
| caption | object | Caption details, including text, hashtags, author, and creation time. |
| caption_is_edited | boolean | Shows whether the caption was edited after posting. |
| carousel_last_edited_at | null | Last time the carousel was edited, if available. |
| carousel_media | null | Carousel media details, if included. |
| carousel_media_count | null | Number of items in the carousel, if available. |
| carousel_media_pending_post_count | null | Pending carousel item count, if available. |
| clips_attribution_info | null | Attribution details for clips, if included. |
| clips_captions | null | Caption data for the clip, if available. |
| clips_captions_translations_urls | null | Links to translated captions, if available. |
| clips_metadata | object | Reel-specific metadata such as audio, remix settings, and creation details. |
| clips_tab_pinned_user_ids | array | User IDs pinned in the clips tab, if any. |
| clips_text | null | Text attached to the clip, if available. |
| clips_trial | null | Trial-related clip information, if included. |
| coauthor_producer_can_see_organic_insights | boolean | Shows whether coauthors can view organic insights. |
| coauthor_producers | array | List of coauthor producers, if any. |
| code | string | Short share code for the post or reel. |
| collection_media | null | Collection-related media details, if available. |
| comment_count | integer | Number of comments on the post or reel. |
| comment_inform_treatment | object | Source-provided comment notice information. |
| comment_likes_enabled | boolean | Shows whether comments can receive likes. |
| comments_disabled | null | Indicates whether comments are disabled, if available. |
| content_views_count | null | View count details for content, if available. |
| creative_config | null | Creative settings from the source, if included. |
| crosspost_metadata | object | Information about cross-posting behavior and restrictions. |
| cta_rendering_config | object | Call-to-action display settings, if available. |
| deleted_reason | integer | Source code showing whether the item was deleted and why. |
| device_timestamp | integer | Timestamp recorded by the source device or system. |
| dominant_color | null | Main color detected for the media, if available. |
| dynamic_ad_carousel_card_starting_index | null | Starting index for dynamic ad carousel cards, if included. |
| facepile_top_likers | null | Top likers shown by the source, if available. |
| fb_like_count | null | Facebook like count, if included. |
| fb_play_count | null | Facebook play count, if included. |
| fbid | string | Facebook-side media identifier, if present. |
| filter_type | integer | Filter type used by the source. |
| floating_context_items | array | Extra context items attached to the post, if any. |
| fundraiser_tag | object | Fundraiser details attached to the post, if available. |
| gen_ai_detection_method | object | Source information about AI detection, if included. |
| has_audio | boolean | Shows whether the post or reel includes audio. |
| has_hidden_comments | null | Indicates whether hidden comments exist, if available. |
| has_liked | boolean | Shows whether the viewer has liked the item. |
| has_more_comments | boolean | Shows whether more comments exist beyond what is shown. |
| has_reshares | null | Indicates whether reshares exist, if available. |
| has_shared_to_fb | integer | Shows whether the item was shared to Facebook. |
| has_views_fetching | boolean | Shows whether view data is being fetched. |
| has_views_fetching_on_search_grid | null | Indicates whether views are being fetched in search results, if available. |
| id | string | Main identifier for the post or reel. |
| ig_media_sharing_disabled | boolean | Shows whether sharing is disabled. |
| igtv_series_info | null | IGTV series details, if included. |
| igtv_shopping_info | null | Shopping details for IGTV, if available. |
| image_versions | object | Image and thumbnail links for the media. |
| inventory_source | null | Inventory source information, if included. |
| invited_coauthor_producers | array | Invited coauthor producers, if any. |
| is_artist_pick | null | Indicates whether the item is an artist pick, if available. |
| is_comments_gif_composer_enabled | boolean | Shows whether GIF comments are enabled. |
| is_currently_promoting_by_sponsor | null | Indicates whether the item is currently sponsored, if available. |
| is_dash_eligible | integer | Shows whether the media is eligible for DASH playback. |
| is_eligible_for_shoppable_everything | null | Indicates whether shopping features are eligible, if available. |
| is_fb_only | null | Indicates whether the item is Facebook-only, if available. |
| is_in_profile_grid | boolean | Shows whether the item appears in the profile grid. |
| is_internal_only | null | Indicates whether the item is internal-only, if available. |
| is_organic_product_tagging_eligible | boolean | Shows whether product tagging is allowed organically. |
| is_paid_partnership | boolean | Shows whether the post is marked as a paid partnership. |
| is_photo_comments_composer_enabled_for_author | boolean | Shows whether the author can use photo comments. |
| is_pinned | boolean | Shows whether the post is pinned. |
| is_post_live | null | Indicates whether the item is a live post, if available. |
| is_post_live_clips_media | boolean | Shows whether the item is live clips media. |
| is_reel_media | null | Indicates whether the item is a reel, if available. |
| is_reshare_of_text_post_app_media_in_ig | boolean | Shows whether it is a reshared text post. |
| is_seen | null | Indicates whether the item has been seen, if available. |
| is_shared_from_basel | null | Indicates whether it was shared from another source, if available. |
| is_social_ufi_disabled | boolean | Shows whether social interaction features are disabled. |
| is_tagged_media_shared_to_viewer_profile_grid | boolean | Shows whether tagged media appears on the viewer profile grid. |
| is_third_party_downloads_eligible | boolean | Shows whether third-party downloads are allowed. |
| is_video | boolean | Shows whether the item is a video. |
| lat | null | Location latitude, if available. |
| like_and_view_counts_disabled | boolean | Shows whether likes and views are hidden. |
| like_count | integer | Number of likes on the post or reel. |
| lng | null | Location longitude, if available. |
| location | null | Location attached to the post, if available. |
| mashup_info | null | Mashup details, if included. |
| max_num_visible_preview_comments | integer | Maximum number of preview comments shown. |
| media_appreciation_settings | null | Appreciation settings for the media, if available. |
| media_attributions_data | array | Attribution data for the media, if included. |
| media_cropping_info | null | Cropping details for the media, if available. |
| media_format | string | Format of the media, such as video. |
| media_name | string | Media type name, such as reel. |
| media_notes | object | Notes attached to the media, if any. |
| media_notice | null | Notice text related to the media, if included. |
| media_overlay_info | null | Overlay details for the media, if available. |
| media_reposter_bottomsheet_enabled | boolean | Shows whether repost options are enabled. |
| media_type | integer | Numeric media type code from the source. |
| media_ui_attributions_data | array | UI attribution data, if included. |
| more_carousel_media_available | null | Indicates whether more carousel items are available, if applicable. |
| music_metadata | null | Music details attached to the post, if available. |
| number_of_qualities | integer | Number of available video quality options. |
| open_carousel_show_follow_button | null | Indicates whether a follow button appears in the carousel, if available. |
| open_carousel_submission_state | null | Carousel submission status, if included. |
| organic_cta_type | null | Organic call-to-action type, if available. |
| original_height | integer | Original media height in pixels. |
| original_width | integer | Original media width in pixels. |
| play_count | integer | Number of plays or views on the reel or video. |
| product_tags | null | Product tag details, if available. |
| product_type | string | Product or content type label from the source. |
| related_ads_pivots_media_info | string | Related ads or pivot information, if included. |
| repost_count | integer | Number of reposts or reshares. |
| share_count | integer | Number of times the item has been shared. |
| share_count_disabled | boolean | Shows whether share counts are hidden. |
| sharing_friction_info | object | Sharing restriction details, if available. |
| shop_routing_user_id | null | Shopping routing user ID, if included. |
| snippets_attribution_info | null | Snippet attribution details, if available. |
| snippets_overlays | null | Overlay snippets attached to the media, if included. |
| social_context | array | Social context items shown by the source. |
| sponsor_tags | null | Sponsor tag details, if available. |
| sticker_translations_enabled | null | Shows whether sticker translations are enabled. |
| story_notify_me_stickers | null | Story notification sticker data, if included. |
| story_polls | null | Story poll data, if included. |
| story_prompts | null | Story prompt data, if included. |
| story_sliders | null | Story slider data, if included. |
| subscribe_cta_visible | boolean | Shows whether a subscribe button is visible. |
| subscription_media_visibility | null | Subscription visibility settings, if available. |
| tagged_users | null | Users tagged in the post, if available. |
| taken_at | integer | Time the post or reel was created, in source timestamp format. |
| taken_at_date | string | Human-readable creation date and time. |
| tallest_media_aspect_ratio | null | Tallest aspect ratio value, if available. |
| thumbnail_url | string | Main thumbnail image link for the post or reel. |
| thumbnails | null | Additional thumbnail data, if available. |
| title | null | Title of the item, if included. |
| top_likers | array | List of top likers, if available. |
| total_carousel_media_count | null | Total number of carousel items, if available. |
| translated_video_subtitles | null | Translated subtitles for the video, if available. |
| type | string | Source record type for the media item. |
| upcoming_event | null | Upcoming event details, if included. |
| user | object | Author details such as username, full name, verification, and follower count. |
| video_codec | string | Video encoding format, if available. |
| video_duration | number | Length of the video in seconds. |
| video_imf_spec | null | Video format specification, if included. |
| video_sticker_locales | array | Sticker locale settings, if available. |
| video_subtitles_confidence | null | Confidence score for subtitles, if included. |
| video_subtitles_enabled | boolean | Shows whether subtitles are enabled. |
| video_subtitles_generated | null | Indicates whether subtitles were generated, if available. |
| video_subtitles_locale | null | Subtitle language locale, if available. |
| video_subtitles_status | null | Subtitle processing status, if included. |
| video_subtitles_translations_enabled | null | Shows whether subtitle translations are enabled. |
| video_subtitles_uri | null | Link to subtitle file or resource, if available. |
| video_url | string | Direct video link for the reel or post, if included. |
| video_versions | array | Available video file versions and links. |
| view_count | null | Number of views, if available. |
| view_state_item_type | integer | Numeric view-state code from the source. |
| visibility | null | Visibility setting for the item, if included. |
| visual_comment_reply_sticker_info | null | Visual reply sticker details, if available. |
| visual_replies_info | null | Visual reply details, if available. |
| voice_translations_consumption_data | null | Voice translation usage data, if included. |
| wearable_attribution_info | null | Wearable attribution details, if available. |

### Sample Output

```json
{
  "id": "3932696597052845380",
  "code": "DaTvrf8uO1E",
  "media_name": "reel",
  "media_format": "video",
  "media_type": 2,
  "is_video": true,
  "like_count": 283523,
  "comment_count": 4930,
  "share_count": 28186,
  "repost_count": 5635,
  "play_count": 7132271,
  "taken_at_date": "2026-07-02T23:17:16+00:00",
  "caption": {
    "text": "MrBeast is the person I want to meet most in the world. Is this a dream?\n\n#mrbeast #worldcup #brazil #japan",
    "hashtags": ["#mrbeast", "#worldcup", "#brazil", "#japan"],
    "user": {
      "username": "gamix.o7",
      "full_name": "ガミックス",
      "is_verified": true,
      "follower_count": 2097458
    }
  },
  "user": {
    "username": "gamix.o7",
    "full_name": "ガミックス",
    "is_verified": true,
    "follower_count": 2097458
  },
  "thumbnail_url": "https://scontent-fml1-1.cdninstagram.com/v/t51.71878-15/732934415_1332239791790355_4648343007867700994_n.jpg?...",
  "video_url": "https://scontent-fml20-1.cdninstagram.com/o1/v/t2/f2/m86/AQMUJ_S_MWoElCEI9ue83v4m3iS7RoJGQG_g9lLAN0JOQ83PiCnn05kzkxCqFmFeHHjfcjOh8w15rUzdRl7iE2iUPwscoZmVbFbXH8U.mp4?...",
  "video_versions": [
    {
      "height": 1280,
      "width": 720,
      "type": 101,
      "url": "https://scontent-fml20-1.cdninstagram.com/o1/v/t2/f2/m86/AQMUJ_S_MWoElCEI9ue83v4m3iS7RoJGQG_g9lLAN0JOQ83PiCnn05kzkxCqFmFeHHjfcjOh8w15rUzdRl7iE2iUPwscoZmVbFbXH8U.mp4?..."
    }
  ]
}
````

### How It Works

1. Enter the keyword you want to search, such as a brand name, topic, or creator.
2. Set how many matching results you want to collect, or leave the default limit in place.
3. Start the actor and let it gather public Instagram posts and reels automatically.
4. The actor keeps moving through more results until it reaches your limit or there are no more matches.
5. Review the collected records and export them for reporting, analysis, or sharing with your team.

### Getting Started

Getting started is simple: click **Try for free**, fill in your search keyword, choose your result limit, and click **Run**. No coding is required, and you do not need to understand how the data is collected behind the scenes. When the run finishes, you can download the results in **JSON, CSV, or Excel** depending on how you want to review or share them. This makes it easy to move from search to analysis in just a few minutes.

### Frequently Asked Questions

#### Do I need technical skills?

No. This actor is designed for business users, marketers, researchers, and creators who want results without dealing with code. You only need to enter a keyword and choose how many results you want.

#### How fast does it run?

Speed depends on how broad your keyword is and how many results you request. Smaller searches usually finish quickly, while larger searches may take longer because the actor keeps collecting more matching posts and reels until it reaches your limit.

#### What format is the output?

You can export the results in formats that are easy to work with, including JSON, CSV, and Excel. That means you can review the data in spreadsheets, share it with teammates, or import it into your own reporting workflow.

#### Is this legal to use?

This actor is intended for collecting public Instagram content that is already available from the source. You should always use the results responsibly, respect applicable laws, and follow the platform’s terms and your organization’s policies.

#### Can I schedule it to run automatically?

Yes, you can set it up to run on a schedule if you want regular updates for a keyword, brand, or campaign. That is useful for ongoing monitoring, trend tracking, and recurring reporting without manual work each time.

# Actor input Schema

## `max_results` (type: `integer`):

Maximum number of results to return.

## `search_query` (type: `string`):

Keyword to search for public Instagram posts and reels.

## Actor input object example

```json
{
  "max_results": 100,
  "search_query": "mrbeast"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "max_results": 100,
    "search_query": "mrbeast"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datamagnet/instagram-search-posts-reels").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "max_results": 100,
    "search_query": "mrbeast",
}

# Run the Actor and wait for it to finish
run = client.actor("datamagnet/instagram-search-posts-reels").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "max_results": 100,
  "search_query": "mrbeast"
}' |
apify call datamagnet/instagram-search-posts-reels --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=datamagnet/instagram-search-posts-reels",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Search Posts & Reels",
        "description": "Search for public posts and reels by keyword and return matching results.",
        "version": "0.0",
        "x-build-id": "4g7vtqrIB8MgdrS21"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datamagnet~instagram-search-posts-reels/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datamagnet-instagram-search-posts-reels",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/datamagnet~instagram-search-posts-reels/runs": {
            "post": {
                "operationId": "runs-sync-datamagnet-instagram-search-posts-reels",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/datamagnet~instagram-search-posts-reels/run-sync": {
            "post": {
                "operationId": "run-sync-datamagnet-instagram-search-posts-reels",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "search_query"
                ],
                "properties": {
                    "max_results": {
                        "title": "Max results",
                        "type": "integer",
                        "description": "Maximum number of results to return."
                    },
                    "search_query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword to search for public Instagram posts and reels."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
