<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: slurpsyrup</title>
    <description>The latest articles on DEV Community by slurpsyrup (@slurpsyrup).</description>
    <link>https://dev.to/slurpsyrup</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277518%2F349d72ec-ad82-4dcd-8594-b6b97abcb81f.png</url>
      <title>DEV Community: slurpsyrup</title>
      <link>https://dev.to/slurpsyrup</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/slurpsyrup"/>
    <language>en</language>
    <item>
      <title>Pull YouTube transcripts, Meta ads and TikTok stats into Claude Code, Cursor and n8n</title>
      <dc:creator>slurpsyrup</dc:creator>
      <pubDate>Wed, 02 Dec 2026 04:34:29 +0000</pubDate>
      <link>https://dev.to/slurpsyrup/pull-youtube-transcripts-meta-ads-and-tiktok-stats-into-claude-code-cursor-and-n8n-eg2</link>
      <guid>https://dev.to/slurpsyrup/pull-youtube-transcripts-meta-ads-and-tiktok-stats-into-claude-code-cursor-and-n8n-eg2</guid>
      <description>&lt;p&gt;Out of the box, an agent can't browse the Meta Ad Library or watch a YouTube video. If you ask it what ads a brand is running or what a video says, you get a guess. What you want is a URL that returns JSON, with no scraper to maintain.&lt;/p&gt;

&lt;p&gt;This post shows how to wire that up for YouTube transcripts, Meta Ad Library ads, and TikTok and Instagram profile stats. It works from the shell, from an MCP client such as Claude Code or Cursor, and from n8n. You don't run a browser or a proxy on your side. You need one API key.&lt;/p&gt;

&lt;p&gt;I work on the API I'm using here, Fetchproof, so weigh my opinions accordingly. The code is all plain HTTP, though, and the same pattern should work against any API you prefer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get a key
&lt;/h2&gt;

&lt;p&gt;Sign up at &lt;a href="https://fetchproof.com" rel="noopener noreferrer"&gt;fetchproof.com&lt;/a&gt;. New accounts get 100 free credits with no card. Most calls cost 1 credit. The key goes in an &lt;code&gt;x-api-key&lt;/code&gt; header, and keys start with &lt;code&gt;fp_&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;FETCHPROOF_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;fp_your_key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1. A YouTube transcript
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://api.fetchproof.com/v1/youtube/video/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&amp;amp;language=en"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"x-api-key: $FETCHPROOF_API_KEY"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.transcript_only_text'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response also has a &lt;code&gt;transcript&lt;/code&gt; array with &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;startMs&lt;/code&gt; and &lt;code&gt;startTimeText&lt;/code&gt; per segment (trimmed from the API reference example):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"credits_charged"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"videoId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dQw4w9WgXcQ"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"transcript"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"♪ We're no strangers to love ♪"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"startMs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"18640"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"endMs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"21880"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"startTimeText"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0:18"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"language"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A video with no transcript costs 0 credits, so looping over a channel's uploads doesn't bill you for the gaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Ads from the Meta Ad Library
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://api.fetchproof.com/v1/facebook/adLibrary/company/ads?companyName=Nike&amp;amp;country=US&amp;amp;status=ACTIVE"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"x-api-key: $FETCHPROOF_API_KEY"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.results | length'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each ad in &lt;code&gt;results&lt;/code&gt; has the page name, start date, platforms, and a &lt;code&gt;snapshot&lt;/code&gt; with the body text, CTA, link and creative. If a name matches the wrong page, find the exact page with &lt;code&gt;GET /v1/facebook/adLibrary/search/companies?query=...&lt;/code&gt; and pass &lt;code&gt;pageId&lt;/code&gt; instead of &lt;code&gt;companyName&lt;/code&gt;. Pagination uses a &lt;code&gt;cursor&lt;/code&gt; field.&lt;/p&gt;

&lt;p&gt;The thing I look at first is how long an ad has been running. Brands turn off ads that lose money, so an ad that's been live for three months is probably working. Sorting by that is more useful than any engagement number the library shows.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. TikTok and Instagram profile stats
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://api.fetchproof.com/v1/tiktok/profile?handle=nasa"&lt;/span&gt; -H &lt;span class="s2"&gt;"x-api-key: $FETCHPROOF_API_KEY"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.stats'&lt;/span&gt;
curl -s &lt;span class="s2"&gt;"https://api.fetchproof.com/v1/instagram/profile?handle=natgeo"&lt;/span&gt; -H &lt;span class="s2"&gt;"x-api-key: $FETCHPROOF_API_KEY"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.data.user | {full_name, followers: .edge_followed_by.count}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;TikTok's &lt;code&gt;stats&lt;/code&gt; has &lt;code&gt;followerCount&lt;/code&gt;, &lt;code&gt;heartCount&lt;/code&gt; and &lt;code&gt;videoCount&lt;/code&gt;. Instagram's profile comes back in the shape Instagram's own web app uses, so followers are under &lt;code&gt;edge_followed_by.count&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two limits you should know about before you build on this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Instagram doesn't expose likes or view counts to signed-out visitors. &lt;code&gt;GET /v2/instagram/user/posts&lt;/code&gt; gives you the latest 12 posts with captions, dates and format, which is enough for a cadence audit but not for engagement rates.&lt;/li&gt;
&lt;li&gt;TikTok keyword search (&lt;code&gt;/v1/tiktok/search/keyword&lt;/code&gt;) accepts &lt;code&gt;date_posted&lt;/code&gt;, &lt;code&gt;sort_by&lt;/code&gt; and &lt;code&gt;region&lt;/code&gt; but ignores them. Filter on the &lt;code&gt;create_time_utc&lt;/code&gt; field yourself.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Using it from Claude Code or Cursor
&lt;/h2&gt;

&lt;p&gt;The same endpoints are available as MCP tools. The names come from the URL paths: &lt;code&gt;youtube_video_transcript&lt;/code&gt;, &lt;code&gt;facebook_adLibrary_company_ads&lt;/code&gt;, &lt;code&gt;tiktok_profile&lt;/code&gt;, &lt;code&gt;instagram_profile&lt;/code&gt; and one per published operation.&lt;/p&gt;

&lt;p&gt;Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add fetchproof -e &lt;span class="nv"&gt;FETCHPROOF_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;fp_your_key -- npx -y @fetchproof/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cursor (&lt;code&gt;.cursor/mcp.json&lt;/code&gt;) or Claude Desktop (&lt;code&gt;claude_desktop_config.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"fetchproof"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"@fetchproof/mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"FETCHPROOF_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fp_your_key"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's also a hosted endpoint at &lt;code&gt;https://api.fetchproof.com/mcp&lt;/code&gt; for clients that speak streamable HTTP. Send the key as &lt;code&gt;x-api-key&lt;/code&gt; or &lt;code&gt;Authorization: Bearer&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;With that in place you can write "get the transcript for this video and list the claims it makes" or "what has Nike been running for more than 90 days?" and the agent calls the right tool. One thing worth knowing: there are 133 operations, which is a lot of tool descriptions for a model to carry. If your client lets you limit the tool list, enable only the ones you use.&lt;/p&gt;

&lt;p&gt;If you'd rather not wire tools at all, there are four ready-made skills for Claude Code, Codex and Cursor in &lt;a href="https://github.com/fetchproof/skill" rel="noopener noreferrer"&gt;fetchproof/skill&lt;/a&gt;. They call the same API, run as a single Python script, and stop at a credit cap you set.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using it from n8n
&lt;/h2&gt;

&lt;p&gt;You don't need a community node. An HTTP Request node does it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Method: GET&lt;/li&gt;
&lt;li&gt;URL: &lt;code&gt;https://api.fetchproof.com/v1/youtube/video/transcript&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Authentication: Generic Credential Type → Header Auth (name &lt;code&gt;x-api-key&lt;/code&gt;, value your key)&lt;/li&gt;
&lt;li&gt;Send Query Parameters: &lt;code&gt;url&lt;/code&gt; = &lt;code&gt;{{ $json.url }}&lt;/code&gt;, &lt;code&gt;language&lt;/code&gt; = &lt;code&gt;en&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Settings → On Error: Continue (regular output), so one bad URL doesn't stop a batch&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I put four complete workflows on GitHub, MIT licensed, each one a JSON file you can import: &lt;a href="https://github.com/fetchproof/n8n-templates" rel="noopener noreferrer"&gt;fetchproof/n8n-templates&lt;/a&gt;. They cover YouTube transcript plus metadata, a weekly Meta Ad Library competitor monitor sorted by days running, a TikTok keyword search ranked by views per follower, and an Instagram creator audit. I imported all four into a fresh n8n install to check that they load.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Most calls are 1 credit. Errors, blocked or timed-out requests, invalid requests and cache hits are free, and credits don't expire. After the 100 free credits, a pack is $27 for 25,000 credits. There's no subscription. Every operation lists its cost in the OpenAPI spec at &lt;code&gt;https://api.fetchproof.com/openapi.json&lt;/code&gt;, so you can check a call before you make it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Grab the 100 free credits at &lt;a href="https://fetchproof.com" rel="noopener noreferrer"&gt;fetchproof.com&lt;/a&gt;, run the transcript curl above, and see whether the response shape suits what you're building. If it doesn't, say what's missing in the comments.&lt;/p&gt;

</description>
      <category>api</category>
      <category>mcp</category>
      <category>n8n</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
