{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Images Scraper - Image URLs, Sizes & Sources",
    "description": "Scrape Google Images search results into rows: full-size image URL, width and height, file size, thumbnail, source page, page title, domain and credits. Size, color, type, time, usage-rights and file-type filters; related-search expansion. Independent tool, not affiliated with Google LLC.",
    "version": "0.1",
    "x-build-id": "P3Jsy6hbHa3eHcUFP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~google-images-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~google-images-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~google-images-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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",
            "type": "array",
            "description": "One Google Images search per line, e.g. `golden retriever puppy`, `modern kitchen interior`, `eiffel tower at night`.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Images URLs",
            "type": "array",
            "description": "Optional. Paste Google Images search URLs (google.com/search?q=...&tbm=isch or udm=2). The query, filters, country and language are read from each URL. Use the file/link option to import a list.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "urlsFromFile": {
            "title": "Google Images URLs from a file",
            "type": "string",
            "description": "Optional. Either paste a block of Google Images URLs (one per line) or a single link to a .txt/.csv file (or a Google Sheet share link) that lists them."
          },
          "countryCode": {
            "title": "Country (gl)",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "in",
              "sg",
              "ae",
              "za",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "pt",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "jp",
              "kr",
              "hk",
              "ph",
              "my",
              "id",
              "th",
              "vn",
              "tr",
              "il",
              "eg",
              "ng",
              "ke"
            ],
            "type": "string",
            "description": "Google country edition used for the search.",
            "default": "us"
          },
          "language": {
            "title": "Language (hl)",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "tr",
              "ja",
              "ko",
              "id",
              "th",
              "vi",
              "ar",
              "he",
              "hi"
            ],
            "type": "string",
            "description": "Interface language for the search.",
            "default": "en"
          },
          "size": {
            "title": "Image size",
            "enum": [
              "any",
              "large",
              "medium",
              "icon"
            ],
            "type": "string",
            "description": "Google's size filter.",
            "default": "any"
          },
          "color": {
            "title": "Color",
            "enum": [
              "any",
              "color",
              "gray",
              "trans",
              "red",
              "orange",
              "yellow",
              "green",
              "teal",
              "blue",
              "purple",
              "pink",
              "white",
              "gray-only",
              "black",
              "brown"
            ],
            "type": "string",
            "description": "Google's color filter - full color, black and white, transparent, or a dominant color.",
            "default": "any"
          },
          "type": {
            "title": "Image type",
            "enum": [
              "any",
              "face",
              "photo",
              "clipart",
              "lineart",
              "animated"
            ],
            "type": "string",
            "description": "Google's type filter.",
            "default": "any"
          },
          "time": {
            "title": "Time",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only images Google indexed within this window.",
            "default": "any"
          },
          "usageRights": {
            "title": "Usage rights",
            "enum": [
              "any",
              "cc",
              "commercial"
            ],
            "type": "string",
            "description": "Google's usage-rights filter (Creative Commons or commercial licences, as labelled by the source site - verify before use).",
            "default": "any"
          },
          "aspectRatio": {
            "title": "Aspect ratio",
            "enum": [
              "any",
              "square",
              "wide",
              "tall",
              "panoramic"
            ],
            "type": "string",
            "description": "Google's aspect-ratio filter.",
            "default": "any"
          },
          "fileType": {
            "title": "File type",
            "enum": [
              "any",
              "jpg",
              "png",
              "gif",
              "svg",
              "webp",
              "bmp",
              "ico"
            ],
            "type": "string",
            "description": "Google's file-type filter.",
            "default": "any"
          },
          "safeSearch": {
            "title": "SafeSearch",
            "type": "boolean",
            "description": "Keep Google's SafeSearch on (recommended for any public-facing use).",
            "default": true
          },
          "expandRelatedSearches": {
            "title": "Also run Google's related searches",
            "type": "boolean",
            "description": "After each query, run the related-search chips Google shows on the page (e.g. \"puppy\", \"wallpaper\") until the image cap is reached. The fastest way past 100 images per topic.",
            "default": false
          },
          "maxRelatedPerQuery": {
            "title": "Related searches per query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many related-search chips to follow per query when the option above is on.",
            "default": 5
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop images narrower than this. Checked against the full-size image dimensions Google reports."
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop images shorter than this."
          },
          "maxResults": {
            "title": "Maximum images",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many images across all queries (Google returns up to 100 per search)."
          },
          "monitorMode": {
            "title": "Only new images (monitor mode)",
            "type": "boolean",
            "description": "Remember every image id seen in earlier runs and output only images not seen before. Pair with a Schedule to watch a search for new images.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Key-value store that keeps the seen image ids (lowercase letters, numbers and dashes).",
            "default": "google-images-monitor"
          },
          "maxConcurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many searches run at the same time.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}