# Instagram Caption and Hashtag Extractor from Post Links

**Use case:** 

Extract captions, hashtags and mentions from Instagram posts and reels, with likes and posting date. Useful for content research and caption analysis on posts you already have.

## Input

```json
{
  "postUrls": [
    "https://www.instagram.com/p/C2dRyXas5NP/",
    "https://www.instagram.com/p/DFvSx3ZtRS9/",
    "https://www.instagram.com/p/DJEzQzSp_ka/",
    "https://www.instagram.com/reel/DWhqiudAoQr/"
  ]
}
```

## Output

```json
{
  "ownerUsername": {
    "label": "Owner username",
    "format": "string"
  },
  "type": {
    "label": "Type",
    "format": "string"
  },
  "caption": {
    "label": "Caption",
    "format": "string"
  },
  "likes": {
    "label": "Likes",
    "format": "integer"
  },
  "comments": {
    "label": "Comments",
    "format": "integer"
  },
  "views": {
    "label": "Views",
    "format": "integer"
  },
  "postedAt": {
    "label": "Posted at",
    "format": "string"
  },
  "ownerFollowers": {
    "label": "Owner followers",
    "format": "integer"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "url": {
    "label": "Post",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Instagram Post Scraper - Likes, Comments & Views Actor is ready to run with the inputs already set for "Instagram Caption and Hashtag Extractor from Post Links". [Sign up or log in](https://console.apify.com/create-task-from-example/l5owAoIrmYoTdJgfT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Instagram Caption and Hashtag Extractor from Post Links" task

The Instagram Post Scraper - Likes, Comments & Views Actor will start running based on the input automatically. You can also change all the input fields, like instagram post or reel urls, to match your specific use case.

### 3. Receive the "Instagram Caption and Hashtag Extractor from Post Links" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as owner username, type, caption, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Instagram Caption and Hashtag Extractor from Post Links" task via API](https://apify.com/sumitr_mardy/instagram-post-scraper.md).

## About this Actor

This example demonstrates how to use [Instagram Post Scraper - Likes, Comments & Views](https://apify.com/sumitr_mardy/instagram-post-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sumitr_mardy/instagram-post-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/sumitr_mardy/instagram-post-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`).
