# Get coffee video links from Instagram

**Use case:** 

Beta example: request up to 5 public Instagram video/Reel links from the popular #coffee source, scanning up to 40 candidates. Return IDs, URLs, captions, content types and field-availability status. Results may be fewer than requested; this is not a latest or complete hashtag feed.

## Input

```json
{
  "queries": [
    {
      "hashtag": "coffee",
      "limit": 5
    }
  ],
  "maxItems": 5,
  "metricScope": "source_reported",
  "fields": [
    "id",
    "url",
    "caption",
    "contentType",
    "fieldStatus"
  ],
  "requiredFields": [
    "id",
    "url"
  ],
  "candidatesPerHashtag": 40,
  "timeoutSecs": 120,
  "allowPartial": true,
  "relevance": {
    "includeAny": [],
    "excludeAny": [],
    "localityAny": []
  }
}
```

## Output

```json
{
  "url": {
    "label": "Video URL",
    "format": "link"
  },
  "caption": {
    "label": "Caption",
    "format": "text"
  },
  "contentType": {
    "label": "Content type",
    "format": "text"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "fieldStatus": {
    "label": "Field availability",
    "format": "object"
  }
}
```

## How it works

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

The Instagram Hashtag Video Scraper & Filters — Beta Actor is ready to run with the inputs already set for "Get coffee video links from Instagram". [Sign up or log in](https://console.apify.com/create-task-from-example/TM5okutRHMVCEy9za) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get coffee video links from Instagram" task

The Instagram Hashtag Video Scraper & Filters — Beta Actor will start running based on the input automatically. You can also change all the input fields, like one hashtag and output quota, maximum unique beta output rows, and more, to match your specific use case.

### 3. Receive the "Get coffee video links from Instagram" 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 video url, caption, content type, 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 "Get coffee video links from Instagram" task via API](https://apify.com/zexorama/instagram-popular-video-selector-beta.md).

## FAQ

### What does the coffee video links task return?

The coffee video links task requests up to 5 public video/Reel records with ID, URL, caption, content type and field-availability status from up to 40 popular #coffee candidates.

### Will the coffee video links task always return 5 results?

The coffee video links task can return fewer than 5 records or none when the popular source is unavailable or too few eligible videos are found. The task does not provide a complete or latest Instagram feed.

### How much does the coffee video links task cost?

The coffee video links task costs $0.01 per start plus $0.001 per output row: $0.015 for 5 rows. Actor platform usage is included. The $0.01 start fee can apply even when a started run fails or returns zero rows.

## About this Actor

This example demonstrates how to use [Instagram Hashtag Video Scraper & Filters — Beta](https://apify.com/zexorama/instagram-popular-video-selector-beta.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zexorama/instagram-popular-video-selector-beta.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/zexorama/instagram-popular-video-selector-beta.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`).
