Data to AI™ / Gemini/Instagram

Instagram data in Gemini CLI and Gemini Code Assist

Feed reel, story and follower numbers from your Instagram Business account into notebooks, scheduling configs and chart scripts, straight from the terminal or VS Code.

Better answers, fewer tokens.

  • Lower AI costs for the same work
  • More accurate, reliable answers
  • Read-only
  • Uses the Instagram data you already sync
  • SOC 2 Type II certified
Gemini CLI
Connected to Dataddo

Which content format reached the most accounts per post last month?

Gemini Answer · Instagram Organic

Reels reached about 2.4x more accounts per post than single images and drew most of the shares. Carousels sat in between on both.

FormatPostsAvg ReachAvg Shares
Reels Reel Lifetime Insights 1418,240412
Carousels Carousel Post Lifetime Insights 99,860133
Images Post Lifetime Insights (Image) 117,45061

Reach is averaged per post from lifetime insights, not added up across posts or days.

source
Instagram Organic · as of Mon 06:40 UTC
covers
1-30 Sep 2026
Example answer · fictional account and figures
Instagram in Gemini

Questions Gemini can answer from your Instagram data

Instagram Organic extracts non-paid insights from Instagram Business accounts: posts, stories, reels, audience demographics and engagement.

Posting slots kept in config

Ask Gemini

Read Online Followers by Hour of Day and update config/posting-slots.yaml with our three busiest hours.

The social team's scheduler reads its posting times from a file in the repository. Gemini CLI proposes the change from real follower activity, and someone reviews the diff before it ships.

Reel benchmarks in a notebook

Ask Gemini

Save Caption, Permalink, Views, Avg Watch Time and Shares Count for every reel in Reel Lifetime Insights to data/reels.csv, then add a cell ranking them by Avg Watch Time.

An analyst working in VS Code with Gemini Code Assist gets the file and the ranking cell in one step. Permalinks make it easy to open the reels that held attention and study their first seconds.

Net follows chart for the quarterly deck

Ask Gemini

Pull Value by Follow Type from Business Follows Unfollows for this quarter and write a matplotlib script that saves charts/net-follows.png.

The chart is regenerated from the scheduled flow each quarter instead of being redrawn by hand, so the slide always uses the same definition of net follows.

Instagram datasets and the questions they answer in Gemini →
Pricing

Priced per seat.

Data to AI™ is priced per seat, like the AI assistants your team already uses, with ~25% off on annual billing. Need tailored contracts or volume pricing? Talk to us about Enterprise.

Data to AITM

Serve governed business data to Claude, ChatGPT and other AI tools over MCP.

$10.49/month

per seat

3 seats minimum

Enterprise

Flexibly deploy Dataddo in any cloud or hybrid environment.

Custom

We have a payment model that works for you

See all plans and features →
Setup

Connect Instagram to Gemini step by step

  1. 1
    Connect Gemini to Dataddo Add the Dataddo server to settings.json in Gemini CLI, restart it and run /mcp auth dataddo to sign in. Gemini Code Assist in VS Code reads the same file.
  2. 2
    Connect Instagram to Dataddo Sign in with your Instagram account in Dataddo and choose the datasets to sync, such as Business Interactions and Reel Lifetime Insights.
  3. 3
    Choose what Gemini can see Select the Instagram data Gemini may query. Access is read-only, and data you don't select stays out of reach.
Gemini setup guide →
With vs. without

Instagram in Gemini, with and without Dataddo

Without Dataddo With Dataddo Outcome for you
Reel metrics for code Someone copies reel numbers from the Instagram app into a spreadsheet, one post at a time, before a notebook can use them. Gemini CLI reads Reel Lifetime Insights through the dataddo server, with Caption and Permalink next to Avg Watch Time and Total Watch Time. Every reel in one file
Where the connection lives Exported files spread across laptops and repositories, and nobody knows which project uses which copy. Add the server to .gemini/settings.json for one project, or to ~/.gemini/settings.json in your home folder for all projects. Set up once per scope
Demographic snapshots A script filters follower demographics by date and returns nothing, because the export never had a date column. Demographic datasets have no date range; each run stores current values with a Timeframe field that Gemini can inspect before writing the filter. Filters that match the data
Approving calls An automation token with full Instagram access sits in a dotfile and runs without anyone checking it. Gemini CLI prompts before each Dataddo tool call, and you pick Always allow only for the tools you trust. You see each lookup
Token consumption Gemini spends tokens exploring raw Instagram columns, sampling rows and retrying until it understands the data. Field definitions and relations are supplied up front, so the model skips the exploration and goes straight to the answer. Fewer tokens per answer
Answer quality Prone to wrong joins, invented fields and numbers that are hard to check. Answers grounded in defined fields. In the Dataddo benchmark, 78.5% of questions were answered correctly, against 65.5% with plain CSV files. Better answers
Datasets

Instagram datasets and the questions they answer in Gemini

The Instagram datasets marketing teams use most, with their real field names. Gemini queries them by name through the Dataddo semantic layer.

Dataset Metrics and attributes Ask Gemini
Business Interactions
  • Views
  • Reach
  • Accounts Engaged
  • Total Interactions
  • Likes
  • + others
Save daily Views, Reach and Accounts Engaged for the last 90 days to a CSV for our social notebook.
Reel Lifetime Insights
  • Caption
  • Permalink
  • Avg Watch Time
  • Views
  • Reach
  • + others
Export Caption, Permalink and Avg Watch Time for every reel to a CSV in the content repo.
Story Lifetime Insights
  • Profile Visits
  • Follows
  • Views
  • Reach
  • Total Interactions
  • + others
Which stories had many more Profile Visits than Follows, as a markdown table?
Business Follows Unfollows Write Value by Follow Type for each Period Start this quarter to a CSV so a script can chart net follows.
Online Followers Return Online Followers by Hour of Day as JSON for our post scheduling config.
Business Follower Demo Country / Age / Gender Which Age and Gender combinations each hold more than ten percent of followers by Value?
Carousel Post Lifetime Insights
  • Caption
  • Saved
  • Shares
  • Reach
  • Total Interactions
  • + others
List carousel posts whose Shares exceed their Saved count, with the Caption, as a markdown table.
See all Instagram datasets, metrics and attributes on the connector page →
Benchmark

More right answers. Half the confident mistakes.

We asked 43 pre-registered questions of three real datasets - Google Search Console, HubSpot deals and Google Ads - and delivered the same rows to the same model in four ways. Only the data layer changed.

78.5%

of questions answered correctly - the best of the four delivery methods tested

2x

fewer confidently wrong answers - 14.0% of runs against 24.0% and 26.3%

2.8x

more correct answers on messy CRM data - better on 8 questions, worse on none

Answered correctly All 43 questions - higher is better
Wrong, but stated as fact Share of runs - lower is better

Same model, prompts and rows in every condition; 759 graded runs, ground truth frozen before any run. On Google Search Console alone, documented CSV files did as well as Data to AI™ - the advantage comes from messier data such as HubSpot deals.

Read the benchmark →
FAQ

Instagram and Gemini: FAQ

How do I connect Instagram to Gemini?

Sync your Instagram Business account with a Dataddo Instagram Organic source and attach it to a Google Gemini destination or AI Model. Put the dataddo server with httpUrl https://headless.dataddo.com/mcp-data under mcpServers in your Gemini settings.json, restart Gemini CLI, then run /mcp auth dataddo and sign in.

Should the Dataddo server go in the global or the project settings.json?

Either works. ~/.gemini/settings.json makes Instagram data available in every project, while .gemini/settings.json inside a repository limits it to that project. Gemini Code Assist in VS Code reads the same file.

Can Gemini CLI publish posts or reply to comments on Instagram?

No. Gemini only reads Instagram data Dataddo has already extracted, through the semantic layer, and nothing is written back to Instagram. Publishing and replies stay in the Instagram app.

Why is weekly reach from my Gemini script higher than in Instagram?

Daily Reach counts unique accounts per day, so a script that adds up seven days counts repeat viewers several times. Extract a weekly or monthly breakdown in a separate source and flow for totals that match.

Do I need a browser to connect Gemini CLI to Dataddo?

Yes, for sign-in. Gemini CLI opens the Dataddo login page in a browser on the same machine, where you enter your Dataddo email and password, with MFA if prompted. Google and Microsoft SSO are not offered there.

Can Gemini also read our Instagram ad results?

Instagram Organic covers the Insights of your Business account. Paid results come from the Facebook Ads connector, where Publisher Platform separates Instagram placements; attach that flow to an AI destination and Gemini can query it too.

How much Instagram history can a notebook built with Gemini use?

Up to 2 years, the limit of the Instagram API. A new source starts from its relative date range, so load older months once with a full data re-sync.

New from Dataddo · Data to AI™

Ask Claude or ChatGPT about your ads, analytics and CRM

“What did a new lead cost us last week, by paid channel?”

Connect 400+ sources once and get the answer right in your AI chat, without building a report. Better answers: your metrics are defined once, so the AI doesn't have to guess.