Go to example tasks

Build an image dataset for machine learning

Build an image dataset from Google Images for machine learning. Each row returns the image URL, title, source, page link, and width and height.

Try for free
Google Images API - $0.10 per 1,000 - Fast Image API
Google Images API - $0.10 per 1,000 - Fast Image APIjohnvc/google-images-api
Query
Position
Title
Image URL
+4 fields
Text
Number
Boolean
List
Object

Input

Search Queries(required):golden retriever+2
Maximum Results Per Query:50

Output fields

Query
Position
Title
Image URL
Image Width
Image Height
Source
Page Link

How it works

Sign up on Apify or log in

The Google Images API - $0.10 per 1,000 - Fast Image API Actor is ready to run with the inputs already set for "Build an image dataset for machine learning". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Build an image dataset for machine learning" task

The Google Images API - $0.10 per 1,000 - Fast Image API Actor will start running based on the input automatically. You can also change all the input fields, like search queries and maximum results per query, to match your specific use case.

Receive the "Build an image dataset for machine learning" 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 query, position, title, and more.

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 "Build an image dataset for machine learning" task via API.

Image

Integrate "Build an image dataset for machine learning" into your workflow

Connect "Build an image dataset for machine learning" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

One row per image carrying query, position, title, imageUrl, imageWidth, imageHeight, source and link. The query column labels each row with its class, golden retriever or german shepherd, so the JSON or CSV export is already a labeled index.

A queries list with one entry per class, the example uses golden retriever, german shepherd and labrador retriever, and maxResultsPerQuery, 50 here. Raise it once the small run looks right; gl and hl stay at us and en unless you set them.

The task has a run endpoint on the Apify API; post your queries list and read the dataset back as JSON, or page through it with apify-client in Python while a downloader fetches each imageUrl. Rows are saved page by page, so a stopped run keeps them.

Open the task in the Apify Console, choose Actions, then Schedule, and set 0 6 1 * * to rebuild the index on the first of each month. Turn on reuseOlderResults if a copy up to 30 days old is fine for stable classes, which makes the run faster.

Add https://mcp.apify.com/?tools=actors,docs,johnvc/google-images-api to Claude or any other MCP client and the agent can run the task from a prompt such as collect fifty images each of three dog breeds, then read back or save the rows.

Per image returned. A class with few matching pictures stops early and bills only what came back; there is no per-run or setup fee. maxResultsPerQuery values under fifty are raised to fifty, the smallest billed page; the rate is on the Actor page.

The task returns imageUrl for each full-size file plus width and height; downloading is your step, with any HTTP client. To keep only images above a size threshold, filter on imageWidth and imageHeight, as Find high-resolution images by keyword does.