{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Images Scraper: Full-Size URLs, Filters, Cheap",
    "description": "Scrape Google Images by keyword or pasted link: full-size image URL, source page, size and domain. Filters, dedupe, 40+ countries, no login. MCP-ready.",
    "version": "0.1",
    "x-build-id": "p9nRsj0KqrgX3G6UY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~google-images-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-google-images-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~google-images-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-google-images-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~google-images-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-google-images-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Search queries",
            "maxItems": 50,
            "type": "array",
            "description": "Keyword searches to run on Google Images (e.g. 'golden retriever puppy'). Each query is scraped on its own and returns up to 'Max images per query'. Google operators such as quotes and -minus work. Keywords only, not image or page URLs. Use this and/or 'Google Images links' below.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "googleImagesUrls": {
            "title": "Google Images links",
            "maxItems": 50,
            "type": "array",
            "description": "Optional. Paste Google Images search links (https://www.google.com/search?tbm=isch&q=...). The keyword, country, language, SafeSearch and filter codes in the link are used. Filters set in this form win over the link. Links without a keyword are skipped and listed in the run warnings.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max images per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many images to return for each search (1-500, default 100). Google serves about 450 images per search at most, so asking for more than that ends early and the run reports why. Duplicates and rows that fail your filters are not counted and not charged. Free Apify plan runs return up to 100 images per run.",
            "default": 100
          },
          "maxResultsTotal": {
            "title": "Max images in total (optional)",
            "minimum": 1,
            "maximum": 25000,
            "type": "integer",
            "description": "Optional hard limit across all searches in the run (for example 1000). Leave empty for no extra limit. Combine with the run's maximum cost setting for budget control."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code that localises the results (e.g. 'us', 'gb', 'de', 'jp'). Default 'us'. A country code only, not a country name.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Result language code (e.g. 'en', 'de', 'pt-BR'). Default 'en'. Controls language; 'Country' controls region.",
            "default": "en"
          },
          "safeSearch": {
            "title": "SafeSearch",
            "enum": [
              "off",
              "active"
            ],
            "type": "string",
            "description": "'active' hides explicit images; 'off' returns everything Google returns. Google has no middle setting. Default 'off'.",
            "default": "off"
          },
          "imageSize": {
            "title": "Image size",
            "enum": [
              "any",
              "large",
              "medium",
              "icon",
              "larger2mp",
              "larger4mp",
              "larger6mp",
              "larger8mp"
            ],
            "type": "string",
            "description": "Google's size filter. 'larger2mp' to 'larger8mp' keep images of at least 2, 4, 6 or 8 megapixels and are also checked on the returned dimensions. 'any' = no filter. Overridden by Exact size if that is set.",
            "default": "any"
          },
          "imageType": {
            "title": "Image type",
            "enum": [
              "any",
              "photo",
              "clipart",
              "lineart",
              "gif",
              "face"
            ],
            "type": "string",
            "description": "Kind of image: photo, face, clip art, line drawing, or animated GIF. Default 'any'.",
            "default": "any"
          },
          "imageColor": {
            "title": "Image colour",
            "enum": [
              "any",
              "color",
              "grayscale",
              "transparent",
              "red",
              "orange",
              "yellow",
              "green",
              "teal",
              "blue",
              "purple",
              "pink",
              "white",
              "black",
              "brown"
            ],
            "type": "string",
            "description": "'color' = full colour, 'grayscale' = black and white, 'transparent' = transparent background (PNG cut-outs), or a named dominant colour. Named colours use Google's own colour filter; colours are not re-checked on the pixels.",
            "default": "any"
          },
          "usageRights": {
            "title": "Usage rights",
            "enum": [
              "any",
              "creativeCommons",
              "commercial"
            ],
            "type": "string",
            "description": "Google's licence label: 'creativeCommons' or 'commercial' (commercial and other licences). This is Google's labelling, not legal clearance. Always check the licence on the source page before reuse.",
            "default": "any"
          },
          "fileType": {
            "title": "File type",
            "enum": [
              "any",
              "jpg",
              "png",
              "gif",
              "webp",
              "svg",
              "bmp",
              "ico"
            ],
            "type": "string",
            "description": "Only images in this file format. Also checked on the image URL's file extension where the URL has one.",
            "default": "any"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "any",
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only images Google dated within this period. Ignored when Date from / Date to is set.",
            "default": "any"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional earliest date, YYYY-MM-DD (e.g. 2026-11-01). Use with Date to for a custom range."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional latest date, YYYY-MM-DD (e.g. 2026-11-14)."
          },
          "aspectRatio": {
            "title": "Shape",
            "enum": [
              "any",
              "tall",
              "square",
              "wide",
              "panoramic"
            ],
            "type": "string",
            "description": "'tall', 'square', 'wide' or 'panoramic'. Applied by Google and re-checked on width/height (tall <0.95, square 0.8-1.25, wide >1.15, panoramic >2.0 wide-to-high).",
            "default": "any"
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images at least this wide, checked on the returned width. Leave empty for none."
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images at least this tall, checked on the returned height."
          },
          "maxWidth": {
            "title": "Maximum width (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images at most this wide."
          },
          "maxHeight": {
            "title": "Maximum height (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images at most this tall."
          },
          "exactWidth": {
            "title": "Exact width (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images exactly this wide. Needs Exact height too. Overrides Image size."
          },
          "exactHeight": {
            "title": "Exact height (px)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Only images exactly this tall. Needs Exact width too."
          },
          "includeDomains": {
            "title": "Only from these sites",
            "maxItems": 200,
            "type": "array",
            "description": "Keep only images whose source page is on one of these domains (subdomains included), e.g. ['etsy.com','wikipedia.org'].",
            "items": {
              "type": "string"
            }
          },
          "excludeDomains": {
            "title": "Skip these sites",
            "maxItems": 200,
            "type": "array",
            "description": "Drop images whose source page is on one of these domains, e.g. ['pinterest.com'].",
            "items": {
              "type": "string"
            }
          },
          "dedupeAcrossQueries": {
            "title": "Remove duplicates across searches",
            "type": "boolean",
            "description": "On by default. The same image URL is returned and charged once per run even when several searches find it. Duplicates inside one search are always removed. Turn off to get every search's full list separately.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}