Skip to content
Launching on 20 December 2026. Get an invitation
Guides

Social media stats in your spreadsheet, CRM or BI: APIs and webhooks explained

Author: Influmine editorial teamPublished 5 min read

APIs and webhooks let you get social media stats into spreadsheets, a CRM or BI without retyping anything. Through an API your tool asks for the numbers itself; a webhook tells you when something happens. Here is what that means in practice, what it is good for and what to watch for on security.

Why agencies still copy numbers by hand

Monday morning, five clients, four networks. Someone opens Instagram, TikTok and YouTube Studio, types views and reach into a spreadsheet, takes screenshots for the deck and finds out before the meeting that one number has changed in the meantime. Social media managers complain about this a lot: reporting takes longer than thinking about the numbers.

There are three causes, and a tool only fixes part of them:

  • Every network has its own analytics. The numbers live in separate apps with different names and different definitions. A view on one network is not the same as a view on another.
  • Numbers change over time. A video has different views after a day than after a week. A manual copy is a snapshot of one moment, and a month later nobody remembers when it was taken.
  • Not everything is available. Networks do not expose every metric through their official interfaces. Meta, for example, states that some metrics are not available for accounts with fewer than 100 followers and that account-level data is stored for 90 days. Nobody can get around that; you can only show it honestly.

What an API and a webhook are, without the jargon

An API (application programming interface) is an agreed way for one program to ask another for data. Your spreadsheet or BI tool sends a request such as "give me the views for October" and gets an answer a machine can read. Nobody retypes anything.

A webhook works the other way round. You do not ask; the system sends a message to an address you choose when an event happens: a post goes live, a comment arrives, a report is ready. Think of a doorbell. You no longer walk to the door every five minutes to check.

API = you ask. Webhook = the system tells you.

Do you need a developer? For simple things, often not. Many spreadsheet and automation tools can read data from an API address or receive a webhook through a ready-made connector. For a custom dashboard or a link to a company CRM, a developer helps.

What APIs and webhooks are good for

Reports that update themselves

Connect a BI tool (for example Looker Studio or Power BI) or a spreadsheet to the API and the report pulls the data on its own, every day at the same time. The client sees the same definitions as last month and you stop taking screenshots.

Campaign results in your CRM

Results from creator campaigns can go straight into the CRM, next to the client or the deal. Sales can see how the deliverables performed without asking anyone for an export.

Alerts for the team

A webhook for a detected anomaly or a new comment can post a message to the team chat or create a task. The team hears about the problem when it happens, not at the next report.

Your own archive

With an API you can store numbers in your own database. When a network keeps some data only for a limited time, you have your own copy with its source and date.

Security: keys, scopes and signatures

API access is like a key to the office. These rules apply to any tool:

  1. One key per purpose. The key for the spreadsheet report and the key for the CRM should be two different keys. If one leaks, you revoke only that one.
  2. Smallest scope that works. A report only needs to read numbers. Do not give it a key that can also publish.
  3. Expiry date. A key with an end date does not stay forgotten in an old script for ever.
  4. Keys do not belong in emails or shared documents. Keep them in a password manager or in the settings of the tool that uses them.
  5. Verify webhook signatures. Reliable services sign every event with a secret so your system knows the message really came from them. Meta, for example, signs webhook events with a SHA256 signature in a header and recommends validating it.
  6. No passwords for social accounts. Stats should be read through the official sign-in (OAuth), which you can revoke at any time. A tool that asks for your Instagram password puts the account at risk.

One more thing about the numbers themselves: a good API tells zero apart from "unknown". Meta's documentation says that when data is unavailable, the API returns an empty data set instead of 0. If your report shows an empty field as 0, it misleads the client.

How Influmine helps

In Influmine, the API and webhooks are under Settings → Developers (API). The steps:

  1. Create a key. Name it (for example "Reporting in Google Sheets"), choose what it may do and how long it is valid. There are three scopes: read:analytics (summary numbers per network), read:contents (posts and their metrics) and write:posts (create posts). You see the key only once and it can never do more than you can.
  2. Read numbers with their source. Every number from the API carries a label saying where it comes from (the network's official API, calculated by us and so on). What a network does not provide arrives as null with a reason, never as 0. Networks are never added together.
  3. Add a webhook. Enter an https address and pick events: post published, new comment, campaign reply sent, report ready, anomaly detected. Every event is signed, failed deliveries are retried and the delivery log shows each attempt.
Settings → Developers (API) in Influmine: an API key with scopes and the webhook list, sample data
Sample data

Posts created through the API go into the same calendar and queue as posts from the app and wait for approval by default. If you manage several creators, each has a separate workspace and a key belongs to one brand. How to set up team access is covered in managing your team and clients without sharing passwords.

What it does not do: the API cannot give you numbers a network does not provide through its official interface, and it does not fill the gaps with estimates. Webhooks are not sent to internal network addresses (localhost, 10.x, 192.168.x). The API and webhooks are part of the agency plan. Details are on the API and webhooks page, in pricing and on the agencies page.

Sources

Newsletter for creators

Tips on reading your own numbers, verified changes in network rules and product news. About every two weeks, one-click unsubscribe.

By sending you agree to receive the selected e-mails. You can withdraw consent at any time with one click in every e-mail. Privacy policy

All articles

Frequently asked questions

How do I get Instagram stats into Google Sheets automatically?

You need a tool that reads the numbers from the network's official API and passes them on through its own API or a connector. The spreadsheet then loads them on a schedule, with no manual copying.

What is the difference between an API and a webhook?

With an API you request data when you need it. A webhook is sent to you by the system the moment an event happens, for example when a post is published.

Is an API key the same as a password?

No. A key has a limited scope and expiry date, and you can revoke it without changing your password. Still treat it like a password and never send it by email.

Why are some metrics missing from my report?

Networks do not expose every metric through their official APIs and restrict some, for example for small accounts. An honest tool shows "not available", not zero.

Your next video can be a decision, not a guess.

Connect your networks, look at your own numbers and the first recommendations with evidence. If it does not help, you pay nothing.