DEV Community

Cover image for How to Search Instagram Reels by Keyword and Export Comments to CSV
Monkey.D.Scraping
Monkey.D.Scraping

Posted on

How to Search Instagram Reels by Keyword and Export Comments to CSV

You can search Instagram Reels by keyword and export the comments to CSV in one Apify run. Start with a phrase such as pasta recipe, choose how many Reels and comments to collect, then download the Comments output. You get one row per comment, with its timestamp and a link to the original Reel.

One row in our export reads, “Can I use coconut milk instead of heavy cream?” That question suggests a specific follow-up recipe to test. Two more comments on the same Reel ask about timing and portions. Explore the 15-row example CSV.

In a November 20, 2026 run, this took about nine seconds and returned three public Reels and 15 distinct comments. Here’s how to reproduce the search and open the results in a spreadsheet.

One keyword returned three public Reels and five comments per Reel

1. Search public Instagram Reels by keyword

Open Instagram Profile Scraper on Apify. Under Search terms, enter one phrase. Leave Usernames or links empty when you want to discover Reels across public accounts.

Set Max reels per search term to 3 and Comments per post to 5. The second setting defaults to zero, so set it before you run the search. Here is the JSON input used in the demo:

{
  "targets": [],
  "keywords": ["pasta recipe"],
  "maxReelsPerKeyword": 3,
  "commentsPerPost": 5,
  "allComments": false,
  "includeDetails": true,
  "exactKeywordMatch": false
}
Enter fullscreen mode Exit fullscreen mode

For topic research, leaving exact matching off allows related Reels into the sample. For a product-name search, turn on Only reels that name the search term to require every search word in the caption, hashtags, mentions or author username. That setting filters Reels; it does not require the words to appear in each comment.

2. Run the search and check how many comments were saved

In Run options, review the price and set a maximum charge. I used a USD 0.05 ceiling. Click Start, then open Output when the run finishes.

Browser preview of the three real Reel records and the number of comments exported for each

The first Reel showed a comment count of 76, while its export contained five comments. The search had reached the requested sample size. Across all three Reels, the Comments dataset contained 15 different comment IDs. A repeat run can find different Reels or newer comments.

3. Export Instagram Reel comments to CSV

  1. Open the run’s Comments output. In the posts output, each row represents a Reel; in Comments, each row represents a comment.
  2. Choose Export, select CSV, and keep postShortcode, postUrl, commentId, createdAt and text. Download the file.
  3. Import the CSV into your spreadsheet. Set commentId to Text during import so Excel preserves every digit. The Z in createdAt means UTC.

Browser preview of the first five CSV rows, with the Reel shortcode, UTC timestamp and comment text

Open the sample CSV with all 15 comments. The screenshots show local table previews of the actual run. The example file omits commenter names, profile URLs and avatars.

4. Analyze Instagram Reel comments in Excel or Google Sheets

Filter the spreadsheet’s text column for coconut milk. The matching row has shortcode DYODixdxiPq. Open its postUrl to inspect the recipe that prompted the question. If you also export Reel captions or play counts, match postShortcode in Comments to shortcode in the posts table. Multiple comments can share the same Reel; keep commentId when combining exports so you can identify repeat observations. View the source Reel

Find audience questions, including ones without a question mark

In the example CSV, comment text is in column E. In Google Sheets, paste this formula into an empty cell on a separate tab, assuming the imported tab is named Comments and the sheet uses commas as formula separators:

=FILTER(Comments!A2:E16, REGEXMATCH(LOWER(Comments!E2:E16), "^(can i|how long|how much)\b|[?]"))
Enter fullscreen mode Exit fullscreen mode

On the sample file this returns three rows, all from the first Reel. Filtering only for a question mark would find just one. For a fresh export, extend the range and adapt the phrases to the language of the comments. To do the same quick check in Excel, filter the text column for cells beginning with How or Can I.

Three ways to use Instagram Reel comments for research

Use case What to do with the CSV What you can make or decide
Content planning for a creator Review the three questions above alongside their source Reel. Tag the requests as substitution, cooking time and serving size. Draft a follow-up recipe card with a tested dairy-free variation, a timer and a serving count.
Product research for a food brand Search for a product or brand name, enable exact keyword matching for Reels, then filter the exported comment text for terms such as instead of, contains or where to buy. Open each source before assigning a theme. Build a shortlist of questions for a product FAQ. The coconut-milk question illustrates a substitution request; a purchase-intent study would need its own sample.
Competitor content analysis for an agency Run the same product-category query with a consistent comment cap. Join comments to Reel captions by shortcode, tag the content format, then count distinct Reels per question theme. See whether a question recurs across several creators. In this demo, the three questions came from one Reel, so they provide one editorial lead.

How to use Reel comments for brand intelligence and social listening

A brand manager might ask, “Which questions about our product keep coming up under creator Reels, and which should we answer in the next campaign?” Run a search for the brand and a separate search for a competing product over the same period. Record the query, collection date and comment cap alongside each export. A category query such as pasta recipe gives you a third reference point for questions people ask even when no brand is named.

Add three analyst columns to the comments CSV: brand referenced, theme and evidence. For the coconut-milk question, the theme is ingredient substitution. The comment names no brand, so leave the brand field empty. If the parent Reel names your product, mark the evidence as question under a brand-related Reel. Reserve direct brand mention for a comment that actually names it. Check the Reel and the surrounding text before assigning praise or criticism to a specific brand.

For a weekly listening brief, report both the number of relevant comments and the number of distinct Reels carrying the theme. Keep a source link beside each finding. Here is the brief this sample can support:

Finding Evidence Decision for the brand team
Viewers needed practical help adapting or making one recipe. Three questions on one Reel: ingredient substitution, cooking time and portions. The ingredient question explicitly asks about coconut milk. Ask the recipe team to test the substitution and add timing and yield to the creator brief. Check whether the same questions recur on other Reels before changing wider campaign messaging.

For a competitor comparison, use the same coding rules on both exports and disclose the number of Reels sampled for each brand. Keep emoji-only reactions and ambiguous references in a separate category. This demo was a topic search; a claim about brand sentiment or share of voice would require brand-specific evidence.

Frequently asked questions

Can I find Instagram Reels without a username or a Reel URL?

Yes. Enter the phrase under Search terms and leave Usernames or links empty. Use a public Reel URL instead when you already know exactly which post you want to analyze.

How do I search the comments themselves for a keyword?

Use the Actor’s keyword to discover Reels. After exporting Comments, filter the CSV’s text column for the words you want to investigate. In the demo, pasta recipe found the Reels and coconut milk found the audience question.

Why does my CSV contain fewer comments than Instagram shows?

Check Comments per post and the output you exported. The first demo Reel showed 76 comments, and our limit requested five. Export Comments for individual rows and use the number of distinct commentId values to report your sample size.

For your first search, replace pasta recipe with one product or topic you follow. Check a few source Reels for relevance before increasing the limits. Try the keyword search on Apify

This tutorial was prepared with an AI agent using the actual run output.

Top comments (0)