# Instagram Engagement Rate Calculator

**Use case:** 

Enter any public Instagram username and get its engagement rate calculated the standard way: average likes plus average comments across recent posts, divided by follower count. The averages and the number of posts sampled come back alongside the rate, so you can check the maths or recompute it your own way. No login, no API key, no Business account.

## Input

```json
{
  "operation": "profile_metrics",
  "targets": [
    "natgeo",
    "humansofny"
  ],
  "platform": "instagram",
  "limit": 100,
  "options": {}
}
```

## Output

```json
{
  "platform": {
    "label": "Platform",
    "format": "string"
  },
  "username": {
    "label": "Username",
    "format": "string"
  },
  "full_name": {
    "label": "Full Name",
    "format": "string"
  },
  "followers": {
    "label": "Followers",
    "format": "integer"
  },
  "following": {
    "label": "Following",
    "format": "integer"
  },
  "posts": {
    "label": "Posts",
    "format": "integer"
  },
  "engagement_rate": {
    "label": "Engagement Rate",
    "format": "number"
  },
  "avg_likes": {
    "label": "Avg Likes",
    "format": "integer"
  },
  "avg_comments": {
    "label": "Avg Comments",
    "format": "integer"
  },
  "avg_views": {
    "label": "Avg Views",
    "format": "integer"
  },
  "total_views": {
    "label": "Total Views",
    "format": "integer"
  },
  "verified": {
    "label": "Verified",
    "format": "boolean"
  },
  "biography": {
    "label": "Biography",
    "format": "string"
  },
  "profile_url": {
    "label": "Profile Url",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Social Media Metrics Scraper - Instagram, Facebook, YouTube & X](https://apify.com/zaver.api/universal-social-media-metrics-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zaver.api/universal-social-media-metrics-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zaver.api/universal-social-media-metrics-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
