Export TikTok Post Commenters to a Spreadsheet

Google

Extract all commenters from any TikTok video. Paste a fetch() from DevTools to scrape usernames, comment text, likes, and profile info with automatic pagination.

TikTokCommentersLead GenerationGoogle SheetsScraping
Needle Team

Key Takeaways

  • Scrape any TikTok video's commenters - Extract everyone who commented on a TikTok post with one workflow
  • Rich profile data - Captures username, nickname, bio, follower count, and verification status
  • Comment context - Preserves the comment text, likes, reply count, and timestamp for each commenter
  • Automatic pagination - Loops through all comment pages (20 per page) with rate limiting
  • Saves as you go - Each page of commenters is written to Google Sheets in real time

What This Workflow Does

This workflow scrapes all commenters from any TikTok video. You copy a network request from your browser's DevTools while viewing a video's comments, paste it into the workflow, and it handles pagination automatically. Each commenter's profile info and their comment are exported to your Google Sheet.

Use cases:

  • Building lead lists from commenters on viral TikTok videos
  • Identifying engaged audiences on competitor or industry content
  • Collecting user feedback and sentiment from video comments
  • Finding potential influencers or brand advocates by follower count
  • Market research by analyzing who engages with specific content

How It Works

StepWhat Happens
1. Manual triggerYou paste the fetch() request copied from TikTok DevTools
2. Parse fetch requestExtracts the URL, headers, cookies, and video ID from the pasted request
3. Pagination loopIterates through comment pages (20 per page, max 200 pages)
4. Build page URLUpdates the API URL with the current pagination cursor
5. Wait 3 secondsPauses between TikTok API calls to avoid rate limiting
6. HTTP requestFetches the current page of comments from TikTok's API
7. Extract commentersParses the response to get usernames, bios, comments, and follower counts
8. Save to Google SheetsWrites the extracted data to your spreadsheet
9. Check paginationDetermines if there are more comment pages and continues the loop

Workflow Nodes

NodeRole
Manual TriggerAccepts the pasted fetch() request from DevTools
Code (Parse Fetch)Extracts URL, headers, cookies, and aweme_id (video ID) from the fetch request
LoopIterates through comment pages (condition: hasMore and page < 200)
Code (Build URL)Constructs the API URL with the current cursor offset
Wait (3s)Delays 3 seconds between TikTok API calls
HTTP RequestSends a GET request to TikTok's comment list API
MergeCombines the HTTP response with the build context
Code (Extract Commenters)Parses TikTok response to get commenter profiles and comment data
AI Agent (Gemini Flash)Saves the extracted commenters to Google Sheets
MergeCombines save results with pagination data
Code (Prepare Loop End)Extracts hasMore and cursor for the next loop iteration

Data Exported Per Commenter

ColumnFieldDescription
AusernameTikTok username (@handle)
BnicknameDisplay name
Ctiktok_urlTikTok profile URL
Dcomment_textThe actual comment they left on the video
Ecomment_likesNumber of likes on the comment
FrepliesNumber of replies to the comment
GbioTikTok profile bio / signature
HfollowersFollower count
Icreated_atComment timestamp (ISO format)
JpageWhich page of comments this came from

Setup Instructions

  1. Add the "Export TikTok Post Commenters to a Spreadsheet" template to Needle
  2. Go to TikTok and navigate to the target video
  3. Click to view the comments section
  4. Open browser DevTools (F12) and go to the Network tab
  5. Scroll down in comments to trigger pagination
  6. Filter by "comment/list" in the Network tab
  7. Find the api/comment/list request
  8. Right-click the request, then select Copy, then Copy as fetch
  9. Paste the copied fetch() into the Manual Trigger node
  10. Update the Google Sheet URL in the AI Agent node prompt
  11. Connect your Google Sheets account via the Pipedream connector
  12. Run the workflow

Customization

What You Can ChangeHow
Google Sheet columnsUpdate the column mapping in the AI Agent prompt
Target spreadsheetUpdate the sheet URL in the AI Agent prompt
Page delayChange the Wait node duration (default: 3 seconds)
Max pagesChange the loop condition (default: page < 200)
AI modelChange the model in the AI Agent node (default: Gemini Flash)

FAQ

Q: How do I find the right network request? A: After opening DevTools and the Network tab, scroll down in the comments section of any TikTok video. Filter by "comment/list" — you should see requests to tiktok.com/api/comment/list. Pick any one and copy as fetch.

Q: Why does TikTok stop working sooner than Instagram? A: TikTok's anti-bot tokens (X-Bogus, X-Gnarly, msToken) tend to expire faster than Instagram cookies (roughly 1-2 hours vs 24 hours). If requests start failing, just re-copy a fresh fetch() from DevTools.

Q: Can I scrape replies to comments too? A: This template only scrapes top-level comments. Reply scraping would require a separate API call per comment. The replies column shows how many replies each comment has.

Q: How many comments can I scrape? A: Up to 4,000 comments (200 pages x 20 per page). Most videos have fewer comments than this. You can increase the page limit in the loop condition if needed.

Q: Can I combine this with LinkedIn enrichment? A: Yes! Use the "Scrape Instagram Commenters and Enrich with LinkedIn" template as a reference. You can replace the AI save node with an enrichment node that searches LinkedIn for each commenter before saving.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .