# EXIF Extractor: Image Metadata from URLs (`fecklesspleb/image-exif-extractor`) Actor

EXIF and image metadata from image URLs: format, dimensions, colour mode, size, frames and allowlisted camera EXIF (make, model, lens, exposure, timestamps). GPS coordinates are never returned (hasGps only); no XMP, IPTC or free-text tags. Non-images free. $1 per 1,000 images. Plus $0.00005 start.

- **URL**: https://apify.com/fecklesspleb/image-exif-extractor.md
- **Developed by:** [fecklesspleb](https://apify.com/fecklesspleb) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Image EXIF and Metadata Extractor

Fetch a list of image URLs and report format, dimensions, colour mode, file size, frame count and non-sensitive EXIF (camera make/model, lens, software, timestamps, orientation, exposure settings).

### Privacy

**Privacy (allowlist):** only technical EXIF fields are returned (make/model/lens, dimensions, orientation, exposure, f-number, ISO, focal length, DateTime/DateTimeOriginal, software). GPS values are never returned (only `hasGps: true|false`). Free-text fields (ImageDescription, UserComment, XP\*, Artist, Copyright), owner/serial tags, unknown tag ids, XMP and IPTC are omitted. There is **no** input option to turn them on. Image files are not saved; only the metadata row is.

**At a glance:** $1.00 per 1,000 images ($0.001 per image with metadata extracted), plus the Apify run-start event. Non-images and failures are free.

### Output

One dataset row per URL (`status`: `ok` / `failed` / `skipped`). Successful rows include format, width/height, mode, bytes, `hasGps`, `camera` (allowlisted shorthand), `exif` (allowlisted tag map), `animated`, and `frames`.

#### Dataset fields (ok rows)

| Field | Meaning |
|---|---|
| `url` | Requested image URL. |
| `status` | `ok`, `failed`, or `skipped`. |
| `finalUrl` | URL after redirects. |
| `contentType` | Response Content-Type (may be missing). |
| `format` / `width` / `height` / `mode` / `bytes` | Basic image facts from the header (no full pixel decode for still metadata). |
| `hasGps` | `true` if a GPS IFD was present; coordinates are never returned. |
| `camera` | Shorthand of allowlisted tags (make, model, software, datetime, orientation, lens, exposure, f-number, ISO, focal length) when present. |
| `exif` | Allowlisted EXIF name→value map only. |
| `animated` / `frames` | Whether Pillow reports animation, and frame count. |
| `charged` | `true` only when the `image` event was charged. |
| `reason` | Set on failed/skipped rows. |
| `extractedAt` | UTC ISO timestamp. |

A free status row (`statusRow: true`) appears when **no** metadata row was charged. `RUN_SUMMARY` in the key-value store lists `saved`, `filtered`, `failed`, `concurrencyUsed`, and `stoppedByCostLimit` (plus `preset` with a preset and `inputSources` with a dataset or CSV source). The `keyValueStoreName` input is unused (reserved); image bytes are never written to a store.

### Pricing

- `apify-actor-start`: $0.00005, the standard Apify start event (one per GB of memory, minimum 1).
- `image`: $0.001 per image whose metadata was extracted ($1.00 per 1,000 images).

Free: non-image and HTML responses, login redirects, HTTP errors, robots and private-address blocks, files over the max size, images over the pixel limit, files that cannot be opened, rows skipped by **Max images** or the cost limit, and invalid input.

### Other URL sources (dataset, CSV, Google Sheet)

Next to **URLs** you can add:

- **Dataset with URLs** (`datasetId`): an Apify dataset, for example the output of a scraper run. Each item's `url` is used, or the first of `fileUrl`, `imageUrl`, `src`, `link` or `href` that holds a URL. Set `datasetUrlField` for another field (dots for nested fields, for example `product.image`). Lists of URLs in a field are read too.
- **CSV URL or Google Sheet URL** (`csvUrl`): a public CSV file, or a Google Sheet shared as **Anyone with the link** (no Google sign-in). A normal sheet link such as `https://docs.google.com/spreadsheets/d/<ID>/edit#gid=0` is turned into its CSV export URL. The column named `url` is used, or the first column that holds URLs; set `csvUrlColumn` to pick a header. Max 5 MB.

Up to 5,000 URLs are taken from the dataset and CSV together, and they are added to the URL list without duplicates. If the URL list is still the default sample (the python.org sample logo), the sample is ignored when a dataset or CSV is set. If a source cannot be read (not found, no access, an HTML sign-in page instead of CSV), its reason is in the status row and `RUN_SUMMARY.inputSources`, and nothing is charged for it. The CSV is fetched like any other URL: robots.txt is obeyed and private addresses are blocked.

Run it after another Actor: in that Actor's **Integrations** tab, start this Actor when a run succeeds and pass `{"datasetId": "{{resource.defaultDatasetId}}"}` as the input.

### Presets

`preset` fills fields you left at their default. A field you changed keeps your value. Each preset caps `maxImages`, so a preset run costs at most $0.01: start event $0.00005 + images × $0.001.

| `preset` | Sets | Max cost of a preset run |
|---|---|---|
| `none` (default) | nothing | (your own limits) |
| `quickSample` | `maxImages` 5 | $0.00005 + 5 × $0.001 = $0.00505 |
| `smallFilesOnly` | `maxFileSizeMb` 5, `maxImages` 9 | $0.00005 + 9 × $0.001 = $0.00905 |

Raise `maxImages` yourself when you need more; your value wins over the preset.

### Run it on a schedule

Use this when you want a regular metadata pass over a catalog of image URLs, then handed to a spreadsheet or review queue.

**Example.** Keep direct image URLs in the `urls` field and run it weekly. The Actor does not save image bytes; each successful run writes dataset rows with format, dimensions, `hasGps` (coordinates are never returned) and allowlisted EXIF. Use the webhook or dataset API below to copy those rows into a sheet. The `keyValueStoreName` input is unused. There is no cross-run skip in this Actor: each run reads and charges every image again. Charges are unchanged; see Pricing.

#### Apify Schedules

You must have run the Actor at least once before you can schedule it. In [Apify Console](https://console.apify.com), open **Schedules** and click **Create new**. Set a name (3–63 characters) and a timezone (daylight saving is supported). Under **Schedule setup**, use the visual builder or a cron expression. For example, `0 8 * * *` runs every day at 08:00 in that timezone. Click **Add**, choose this Actor or a saved task, and optionally override the input, build, timeout or memory. If you leave the input empty, the Actor's default input is used. New schedules are created disabled; check the **Next runs** preview, then click **Enable**. One schedule can include at most 10 Actors and 10 tasks.

#### Webhook or dataset hand-off

On the Actor or a task, add a webhook for the event `ACTOR.RUN.SUCCEEDED` (you can also listen for `ACTOR.RUN.FAILED`). The event data includes `actorRunId`. Fetch that run's dataset items:

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://api.apify.com/v2/actor-runs/<RUN_ID>/dataset/items?format=json"
```

Keep the token in a credential or secret, never in a URL you share publicly. The API also accepts `?token=`, but the `Authorization` header is the recommended, more secure method. `format` may be `json` (the default), `jsonl`, `csv`, `xlsx`, `xml` or `rss`.

This Actor writes metadata rows only — it does not save image files. Pull the dataset items as shown above.

#### n8n

1. Install the [Apify node](https://docs.apify.com/integrations/n8n): on self-hosted n8n, go to Settings → Community Nodes and install `@apify/n8n-nodes-apify`; on n8n Cloud, search for Apify and install the node.
2. Create an **Apify API** credential and store `<YOUR_APIFY_TOKEN>` there (OAuth2 is also available on n8n Cloud). Do not put the token in a node URL.
3. Add an Apify **Run an Actor** node, select this Actor, and set the input JSON below. To get rows in the same step, use **Run an Actor and get dataset** instead, which waits for the run to finish and returns the dataset items.
4. If an Apify Schedule starts the run, use the **On new Apify Event** trigger (event type **Succeeded**), then **Get Dataset Items** with the run's default dataset id.
5. Send the items to a sheet, folder or the next node.

Works with Apify's native n8n, Make and Zapier integrations. For a scheduled run, start it from an Apify Schedule or a Schedule Trigger in n8n, then read the run's default dataset in the next node.

Example input for a scheduled run:

```json
{
  "urls": [{"url": "https://www.python.org/static/img/python-logo.png"}]
}
```

#### Make

1. In a Make scenario, add the [Apify](https://docs.apify.com/integrations/make) app and connect with OAuth or an API token (store the token in the connection).
2. Add **Run an Actor**, select this Actor, and paste the same input JSON. Set **Run synchronously** to Yes only if the run will finish inside Make's synchronous timeout (Make's Apify app page states a 120-second maximum; Apify's Make docs say the timeout varies by plan). For longer runs, let an Apify Schedule start the Actor and use **Watch Actor Runs**, then **Get Dataset Items** with that run's default dataset id.
3. Map the items to Google Sheets, Drive, or the next module.

### FAQ

**Will GPS or personal EXIF ever appear?**\
No. Only an allowlist of technical tags is kept. GPS contributes `hasGps` only — no coordinates. Artist, Copyright, ImageDescription, UserComment, XP\*, owner/serial, unknown numeric tags, XMP and IPTC are dropped. There is no toggle to enable them.

**Which input formats work?**\
Responses whose bytes look like images pass the magic-byte check (JPEG, PNG, GIF, WebP, BMP, ICO/CUR, TIFF, and ISO-BMFF `ftyp` brands such as AVIF/HEIC). Extraction still needs Pillow to open the file. If Pillow cannot decode it (typical for HEIC without a HEIF plugin), the row fails free. Image files are not saved.

**What about animated images?**\
The row reports `animated` and `frames` from Pillow. Metadata is read from the opened image; the Actor does not emit one row per frame.

**What if a URL redirects to a login page?**\
If there was at least one redirect and the final path looks like a login page or the body has a password input, the URL fails free (tested locally via the shared login-redirect helper). HTML / non-image bodies also fail the magic-byte check and are free.

**What counts as “not an image”?**\
Empty bodies, or bodies without recognised image magic (HTML, JSON, plain text, and similar), fail free. Real image bytes are accepted even when Content-Type is missing or wrong.

**How do size and pixel limits work?**\
**Max file size** (default 25 MB, schema max 100) skips oversize downloads free (`filtered`). **Max pixels** (default 40,000,000, schema max 100,000,000) is checked from the image header before decoding pixels; oversized images fail free.

**What is the effective concurrency?**\
Input default `maxConcurrency` is 5 (hard cap 20). It is lowered automatically so parallel fetches fit roughly half of Actor memory given `maxFileSizeMb`. Decode slots are limited by Actor memory (about one slot at the 256 MB default). HTTP timeout is 30 seconds per request.

**Why was a URL not charged?**\
Only `status: ok` rows that pass `out.push` raise the `image` event. Non-images, login redirects, HTTP errors, robots/private blocks, oversize/pixel rejects, undecodable files, maxImages/cost skips, invalid input, and status rows are free. If nothing was extracted, one status row explains why.

**What does robots.txt do?**\
Every request checks robots.txt. Disallowed URLs are not fetched further, count as failed, and are free.

### Limits

- Direct image URLs only (no page crawl).
- Decompression-bomb guard (default 40 MP, maximum 100 MP), checked from the image header before decoding pixels.
- HTML/login responses rejected free.
- Max file size default 25 MB (schema maximum 100 MB). Concurrency is capped at 20 and lowered automatically to fit memory.
- robots.txt respected; private addresses blocked on the Apify platform.
- Default run memory is 256 MB (configurable from 128 MB to 2 GB in Actor settings).

**Invalid input:** if the input is not a JSON object or a field has the wrong type, the run fetches nothing and ends with one free status row (`Invalid input, nothing was fetched and no results were charged: …`). The Actor start event still applies.

### Legal

Fetch only images you are allowed to inspect. Obey robots.txt and terms. Treat `hasGps: true` as a signal that the source file may contain location data you are not shown — handle downstream exports accordingly.

# Changelog

This Actor's version history is a separate document: https://apify.com/fecklesspleb/image-exif-extractor/changelog.md

# Actor input Schema

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

Direct image URLs to inspect. GPS and personal EXIF are never returned. To read URLs from a CSV file, a public Google Sheet or an Apify dataset, use CSV URL or Dataset below.

## `maxFileSizeMb` (type: `number`):

Images larger than this are skipped with a reason and not charged.

## `maxPixels` (type: `integer`):

Reject sources whose width×height exceeds this (default 40,000,000; hard max 100,000,000). Checked from the image header before decoding pixels.

## `maxImages` (type: `integer`):

Stop after this many images. 0 = unlimited (until cost limit).

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

How many images to process in parallel. The Actor may lower this automatically so that parallel downloads fit in its memory.

## `keyValueStoreName` (type: `string`):

Unused for metadata-only runs; reserved for consistency.

## `preset` (type: `string`):

Optional shortcut. A preset only fills fields you left at their default; any field you changed keeps your value. Each preset caps the images it reads, so a preset run costs at most $0.01 (see Pricing).

## `datasetId` (type: `string`):

Optional. Read URLs from an Apify dataset, for example the output of a scraper run. Added to the URL list (the default sample URL list is ignored when a dataset or CSV is set). Up to 5,000 URLs from Dataset and CSV together.

## `datasetUrlField` (type: `string`):

Field that holds the URL in each dataset item (dots for nested fields, e.g. product.image). Empty: the first of url, fileUrl, imageUrl, src, link, href that holds a URL. Lists of URLs are read too.

## `csvUrl` (type: `string`):

Optional. A public CSV file URL, or a Google Sheet shared as 'Anyone with the link' (its normal URL is turned into the CSV export URL; no Google sign-in). Max 5 MB. Added to the URL list.

## `csvUrlColumn` (type: `string`):

Header of the column with URLs. Empty: a column named url, else the first column that holds URLs (a file without a header row works too).

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.python.org/static/img/python-logo.png"
    }
  ],
  "maxFileSizeMb": 25,
  "maxPixels": 40000000,
  "maxImages": 0,
  "maxConcurrency": 5,
  "preset": "none"
}
```

# Actor output Schema

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

Dataset of per-URL metadata rows (ok/failed/skipped) plus a free status row when nothing was extracted. Ok rows include url, status, finalUrl, contentType, format, width, height, mode, bytes, hasGps, camera, exif, animated, frames, charged, extractedAt.

## `summary` (type: `string`):

RUN_SUMMARY key-value record: urls, saved, filtered, failed, stoppedByCostLimit, concurrencyUsed.

# 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": [
        {
            "url": "https://www.python.org/static/img/python-logo.png"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fecklesspleb/image-exif-extractor").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": [{ "url": "https://www.python.org/static/img/python-logo.png" }] }

# Run the Actor and wait for it to finish
run = client.actor("fecklesspleb/image-exif-extractor").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": [
    {
      "url": "https://www.python.org/static/img/python-logo.png"
    }
  ]
}' |
apify call fecklesspleb/image-exif-extractor --silent --output-dataset

```

## MCP server setup

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

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/iMTGh5gkrxfdlbVzW/builds/I4EE2vdSrT8PrBKOP/openapi.json
