# NanoBanana Templates Scraper · Prompts included · $1/1K (`mlg14/nanobanana-scraper`) Actor

Collect public NanoBanana image templates for prompt research, AI art inspiration and trend monitoring: prompts, image URLs, reference images, sizes, links. Filter by title keyword. $1/1K templates.

- **URL**: https://apify.com/mlg14/nanobanana-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

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

## NanoBanana Scraper

Scrape NanoBanana's public image templates, their visible prompts, and the image links shown by the site. Export the gallery to CSV or JSON for research, creative reference, cataloging, and tracking; this is a public gallery data source rather than an image generation service.

The actor starts at `https://zh-nanobanana.com/`, reads the templates currently displayed there, and follows each public template link to retrieve its prompt and full image URL. A record also contains a reference image when the gallery shows one. No account information is needed for these public pages.

### What data can you extract from NanoBanana?

Each dataset item represents one template shown in the homepage gallery. The homepage is the discovery source. The prompt and full image URL come from the linked public detail page when that page responds. The actor preserves both links so you can review the original context.

| Field | Description | Example |
| --- | --- | --- |
| `success` | Whether a visible template record was extracted | `true` |
| `operation` | Type of record returned by this actor | `"discover"` |
| `status` | Visibility state of the gallery record | `"AVAILABLE"` |
| `taskId` | Task identifier; always `null` for public gallery records | `null` |
| `billing` | Image task billing details; always `null` for public gallery records | `null` |
| `templateId` | Identifier in the linked template page URL | `"V21Ud01VSWh4TzZmMU9TSk1LeFkvUT09"` |
| `title` | Template title displayed in the gallery, usually in Chinese | `"人体内脏器官"` |
| `prompt` | Prompt displayed on the public detail page, if available | `"生成一张专业医学科普插图…"` |
| `imgUrl` | Result image URL from the detail page, or the gallery image if detail extraction fails | `"https://…/w1024_h765_….webp"` |
| `referenceImageUrl` | Input or reference image shown beside the gallery thumbnail, if present | `null` |
| `width` | Width encoded in the image URL, if present | `1024` |
| `height` | Height encoded in the image URL, if present | `765` |
| `templateUrl` | Public detail page for the template | `"https://…/template/show/…"` |
| `sourceUrl` | Gallery URL where the template was discovered | `"https://zh-nanobanana.com/"` |

The output is flat, with one row per template. A missing reference image is represented by `null`. Width and height describe the image named by `imgUrl` only when those values are encoded in its URL. They are not a claim about a downloaded file's measured pixels. A missing prompt is also `null`, so downstream imports can distinguish an unavailable detail page from an empty string.

The gallery sometimes displays a smaller preview URL while the detail page links the original image path. The actor prefers the detail image when it is available. It does not download or store the image bytes. To inspect visual content, open the image URL or retrieve it through your own downstream process while respecting the source's usage terms.

### How to scrape NanoBanana templates

1. Open the actor's input form and leave **Title keyword** empty to collect the visible gallery. Enter a Chinese word or another substring from a title if you want a narrower set.
2. Set **Maximum templates** to the number of records you need. A value of `0` means the whole currently visible homepage gallery. The limit is applied before fetching detail pages, which controls run time.
3. Start the run. The actor retrieves the homepage once and visits each selected template's public detail page. It then writes one dataset item per visible template.
4. Open the dataset and export CSV or JSON. Use `templateId` to identify a template and `templateUrl` to verify its live page. Use `imgUrl` for the corresponding public image link.

A run with the default limit is suited to a quick snapshot. For a complete visible snapshot, use `0`. If you apply a title keyword, the limit counts matching titles rather than every title on the page. A keyword that matches no current title produces an empty dataset; check the spelling and try again with the filter blank.

### Input

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `maxItems` | Integer | `40` | Maximum visible templates to return; `0` takes the full gallery. |
| `keyword` | String | Empty | Optional case-insensitive substring filter on the gallery title. |
| `proxyConfiguration` | Object | Platform proxy enabled | Connection settings for public gallery and detail pages. |

Example input for a broad snapshot:

```json
{
  "maxItems": 35,
  "keyword": ""
}
```

Example input for a targeted title search:

```json
{
  "maxItems": 20,
  "keyword": "海报"
}
```

The filter looks at displayed titles only. It does not search prompt text, image content, hidden templates, or categories from the destination editor. The site may change the order or selection of homepage templates between runs. Save the dataset from each run if you need a historical comparison.

### Output example

This item comes from a successful live run. The prompt is shortened here for readability; the dataset contains the full public text returned by the detail page.

```json
{
  "success": true,
  "operation": "discover",
  "status": "AVAILABLE",
  "taskId": null,
  "billing": null,
  "templateId": "V21Ud01VSWh4TzZmMU9TSk1LeFkvUT09",
  "title": "人体内脏器官",
  "prompt": "生成一张专业医学科普插图，展示人体主要内脏器官，包括心脏、肺、肝脏、胃、肾脏和肠道。",
  "imgUrl": "https://sh2-1256181000.cos.ap-shanghai.myqcloud.com/w_a/u_a/0/template/member-20260914/w1024_h765_gNXNDQmtVWWhqR05YcFdZT3djVmU2Zz09-76a479275ebcf6465b4f2d5176884175.webp",
  "referenceImageUrl": null,
  "width": 1024,
  "height": 765,
  "templateUrl": "https://www.aihuihua.com/template/show/V21Ud01VSWh4TzZmMU9TSk1LeFkvUT09",
  "sourceUrl": "https://zh-nanobanana.com/"
}
```

The prompt is in the language used by the public page. The actor keeps that original language and does not rewrite or translate it. The image links can point to a separate image host. That is normal for this gallery and does not mean the image was copied into the dataset.

### Use cases

- **Creative research:** Compare public prompt wording with the example image to understand how a visual concept is described. Follow the detail link to see the source page before using an idea.
- **Template inventory:** Build a searchable internal list of titles, image URLs, and source links for the templates currently featured on the homepage.
- **Campaign inspiration:** Review visible poster, product, illustration, and presentation examples. Filter titles to focus on a specific topic when the gallery uses descriptive words.
- **Change monitoring:** Run a snapshot on a schedule and compare `templateId` values across datasets to identify newly featured or removed gallery entries.
- **Reference collection:** Save result and reference image links together, then review how a listed example connects an input image to its output where the gallery provides both.
- **Localization work:** Examine the original Chinese titles and prompts as source material for a separately reviewed localization process.

These uses rely on public metadata and links. Check image and prompt rights before republication or commercial reuse. This actor supplies source links so your team can review the current page and any attached terms.

### How much does it cost to scrape NanoBanana?

The configured event price is **$0.001 per dataset item**, or **$1 per 1,000 items at the same rate**. The current homepage has a much smaller visible gallery, so 1,000 items describes a price rate, not the expected yield of one run. Run size depends on the number of templates visible when the run starts and any title filter you set.

At this event price, 30 returned templates correspond to $0.03, 40 correspond to $0.04, and 56 correspond to $0.056 in result charges. These examples count returned items; a filter with fewer matches returns and charges fewer items. Platform resource usage may also appear under the account's billing settings. Review the run's charge limit and billing display before starting a large recurring schedule.

A successful validation run requested 35 templates and returned 35 items in about 33 seconds. All 35 had a title, image URL, prompt, and detail URL. That observation is one snapshot, not a guaranteed page size or speed. The site can rotate featured templates, change access behavior, or edit content later.

### Tips for best results

Start with the whole visible gallery when you do not know which titles are present. The homepage defines the discoverable set for this actor. A narrow keyword is useful after you inspect current titles, especially because the filter does not translate between languages or infer synonyms. If a word appears in a prompt but not the title, it will not match.

Use `maxItems` to control the number of detail-page requests. The actor selects homepage entries in display order and visits their detail pages with bounded concurrency. It writes results in homepage order even though detail pages may answer at different times. A smaller limit is useful for frequent snapshots; `0` is appropriate when you want every template currently featured.

Deduplicate snapshots by `templateId` when joining multiple runs. That identifier comes from the destination detail URL. It is more stable for this purpose than the title, which may be edited or reused. Retain `sourceUrl` and `templateUrl` alongside the item so reviewers can inspect where a prompt or image came from.

If `prompt` is `null`, open `templateUrl` to check whether the detail page is currently accessible. The gallery can remain visible while a linked page times out or changes markup. The actor still returns the gallery title and preview image in that case. If width or height is `null`, the image URL did not encode both dimensions in the expected path format; the image may still be valid.

### Limits

This actor collects the **public homepage gallery**, not a searchable database of every template on the destination service. The gallery contained 56 visible template links during source inspection. That number can rise or fall. There is no supported pagination on the homepage gallery, and the current input does not accept arbitrary destination pages. The returned set is therefore bounded by what the homepage exposes.

The site's creation button leaves the gallery domain for a separate editor. The public editor page showed a logged-out session and a form routed through that separate service. This actor does not submit prompts, create image tasks, poll task status, accept reference image uploads, or provide generated images on demand. For each gallery item, `operation` is `discover`, `status` is `AVAILABLE`, and `taskId` is `null`. The `imgUrl` field identifies an already public example image.

Public template details can change or become unavailable independently of the homepage. When a detail request fails after retries, the actor keeps the gallery entry and preview link, while `prompt` remains `null`. A destination can also change its page layout, in which case prompt extraction may need an update. The actor does not infer a missing prompt from nearby text or fabricate output fields.

The current source is server-rendered HTML. Inspection found no embedded page data for the gallery, site bundle endpoint, accessible feed, or sitemap that supplied the same records. HTML structure changes are the main maintenance risk. The actor reads only the relevant gallery links and public detail pages, which keeps request volume proportional to the requested result count.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/nanobanana-scraper`

The actor returns one dataset item per public NanoBanana template: title, prompt, image URL, reference image URL, width, height and the template link. Set `maxItems` to keep results bounded, and cite `templateUrl` for any record you discuss. The prompt is source text, so confirm current page context before making claims about a template's availability or permitted reuse.

**Prompt 1:** "Get 10 public NanoBanana templates with their prompts."

```json
{
  "maxItems": 10
}
```

**Prompt 2:** "Find up to 15 NanoBanana templates with portrait in the title and return the prompts and image URLs."

```json
{
  "keyword": "portrait",
  "maxItems": 15
}
```

**Prompt 3:** "Collect up to 20 NanoBanana templates with 海报 in the title for prompt research."

```json
{
  "keyword": "海报",
  "maxItems": 20
}
```

### FAQ

#### Does this generate a new image?

No. It exports existing public templates from the gallery. `imgUrl` links to a listed image, and `taskId` is always `null`. The site's separate editor handles creation through its own account flow.

#### Do I need an account or proxies?

The public gallery and the sampled detail page were viewable without a login. The actor uses the configured platform connection settings. Network reliability varies, so occasional detail requests may be retried. A run can still return gallery fields when an individual detail page fails.

#### How fast is a run?

The observed 35-item validation run took about 33 seconds. A run fetching more detail pages may take longer, particularly if the destination slows down or retries are needed. Use a smaller `maxItems` for a faster sample.

#### Can I schedule or monitor it?

Yes. Schedule periodic runs through the platform and compare `templateId` values between datasets. Watch the item count and prompt fill rate; a sudden drop can signal a homepage or detail-page change.

#### Can I export the results to a spreadsheet?

Yes. The dataset supports common export formats, including CSV and JSON. The flat fields are designed for spreadsheet columns. Long prompts can contain Chinese punctuation, so preserve text encoding when importing a CSV file.

#### What if a field is empty?

`referenceImageUrl` is absent for templates without a displayed reference image. `prompt` can be absent if the detail page is unavailable or its content changes. `width` and `height` depend on dimensions being present in the image path. The dataset keeps the source URLs for review.

#### Is it legal to use the exported content?

The actor reads public pages, but public visibility does not grant permission for every reuse. Respect the site's terms, image rights, and applicable privacy laws. Avoid using the data to collect personal information or republish protected material without permission.

### Integrations

Use the dataset endpoint to retrieve JSON, export CSV for spreadsheets, or connect scheduled runs to a webhook and your own processing workflow. A simple workflow can compare template IDs after each snapshot, review newly listed images, and store approved references in an internal catalog. Keep the source links with each imported record so downstream users can check the live page.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `maxItems` (type: `integer`):

Stop after this many public NanoBanana templates. Example: 20. Use a small value for a quick or bounded agent run; set 0 to collect the whole visible gallery.

## `keyword` (type: `string`):

Only return templates whose title contains this text, case-insensitive. Example: portrait, or 海报 for posters. Leave empty for all titles.

## `proxyConfiguration` (type: `object`):

Connection settings for fetching the gallery and linked public detail pages.

## Actor input object example

```json
{
  "maxItems": 40,
  "keyword": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `templates` (type: `string`):

Visible image templates with prompts and image links in the default dataset.

# 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 = {
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/nanobanana-scraper").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 = { "maxItems": 40 }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/nanobanana-scraper").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 '{
  "maxItems": 40
}' |
apify call mlg14/nanobanana-scraper --silent --output-dataset

```

## MCP server setup

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

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/IgifLglgG88EbrbXe/builds/zbgguen0Z3RYMH9Rj/openapi.json
