# Importly Metadata (`importly/importly-metadata`) Actor

Get the title, channel, duration, upload date, views, likes, tags and thumbnail of any video or audio link without downloading it: YouTube, TikTok, X, Instagram, podcasts and 1,000+ other sites. Free to try, no card required.

- **URL**: https://apify.com/importly/importly-metadata.md
- **Developed by:** [Importly](https://apify.com/importly) (community)
- **Categories:** Videos, Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Importly Metadata

Get the details of any video or audio link without downloading it: title, description, channel, duration, upload date, views, likes, comments, tags and thumbnail. Works on YouTube, TikTok, X, Instagram, podcasts and 1,000+ other sites, with one output shape for all of them.

### Why use it

Every platform needs its own scraper, each one breaks when the site changes, and sites block requests from cloud servers, so a scraper that works on your laptop fails on Apify or in production. Importly Metadata gives you one Actor for every site: send links, get clean metadata back.

[Importly](https://www.importly.io) is free to try, no card required. [Get your API key](https://www.importly.io/?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors), paste it into the input, and run.

### What you can do with it

- Show link previews (title, thumbnail, duration) when users paste a video link into your app
- Track views, likes and comments on YouTube, TikTok or Instagram videos over time with a scheduled run
- Check a link's length and whether it's live before you download or transcribe it
- Build a dataset of a channel's or a campaign's videos for analysis

### Input

| Field | What it does |
| --- | --- |
| **Links** | One or more video or audio page links |
| **Importly API key** | Your key from [importly.io](https://www.importly.io/?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors). Stored as a secret |
| **Detail** | `basic`: title, duration, thumbnail and whether it's live (fastest). `standard` (default): plus description, channel, upload date, views, likes, comments and tags. `full`: everything the source has, including every available format |
| **Timeout per link**, **Links at once** | Run settings |

Example input:

```json
{
	"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
	"apiKey": "imp_live_...",
	"detail": "standard"
}
```

### Output

One dataset item per link (`standard` detail):

```json
{
	"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
	"status": "completed",
	"jobId": "bb431f5b-fff9-48cb-9252-a760200c0c84",
	"id": "jNQXAC9IVRw",
	"title": "Me at the zoo",
	"description": "...",
	"uploader": "jawed",
	"uploader_id": "@jawed",
	"channel": "jawed",
	"channel_url": "https://www.youtube.com/channel/UC4QobU6STFB0P71PMvOGN5A",
	"upload_date": "20050424",
	"timestamp": 1114313512,
	"duration": 19,
	"view_count": 449505594,
	"like_count": 20153186,
	"comment_count": 10000000,
	"thumbnail": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
	"tags": ["me at the zoo", "jawed karim", "first youtube video"],
	"categories": ["Film & Animation"],
	"webpage_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
	"is_live": false,
	"platform": "Youtube"
}
```

Which fields exist depends on the site. A link that fails (removed, private, not a media page) gets an item with `"status": "failed"`, an `errorCode`, a plain-English `error` and a `documentationUrl`; the other links still run. A wrong API key or an empty balance stops the run with a message saying what to fix. Run it without a key and you get one item with `"status": "api_key_required"` and a link to get one.

### Pricing

The Actor is free. Each lookup is billed to your Importly credits at $0.003. Apify bills only the small platform usage of the run. See [Importly pricing](https://www.importly.io/pricing?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors).

### Building an app?

The same API key works with the [Importly REST API](https://www.importly.io/docs?utm_source=apify\&utm_medium=store\&utm_campaign=apify-actors), so your backend can fetch metadata directly. The other Importly Actors: [Importly Download](https://apify.com/importly/importly-download) and [Importly Transcript](https://apify.com/importly/importly-transcript).

Source: [github.com/importly-io/importly-integrations](https://github.com/importly-io/importly-integrations/tree/main/apify). Questions: support@importly.io.

# Actor input Schema

## `urls` (type: `array`):

Video or audio page links, one per line: YouTube, TikTok, X, Instagram, podcast episodes and 1,000+ other sites. You get one dataset item per link with its title, channel, duration, stats and thumbnail.

## `apiKey` (type: `string`):

Your Importly API key (starts with imp_live\_), needed to run. No key yet? <a href="https://www.importly.io/?utm_source=apify&utm_medium=store&utm_campaign=apify-actors" target="_blank">Sign up at importly.io</a>, free to try with no card required, then copy the key from <a href="https://www.importly.io/dashboard/api-key" target="_blank">the API key page</a>. Usage is billed to your Importly credits.

## `detail` (type: `string`):

How much to return per link. Each lookup costs $0.003.

## `timeoutSecs` (type: `integer`):

How long to wait for each link. A job that runs longer keeps going on Importly; the item gets its jobId so you can read the result later.

## `maxConcurrency` (type: `integer`):

How many links to process in parallel.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "detail": "standard",
  "timeoutSecs": 180,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

One item per link, in the order they finished.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("importly/importly-metadata").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"] }

# Run the Actor and wait for it to finish
run = client.actor("importly/importly-metadata").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ]
}' |
apify call importly/importly-metadata --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,importly/importly-metadata"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZD62OboNMvSIjhqCf/builds/IoE5M2jTRIUpSrgh1/openapi.json
