{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Images Scraper",
    "description": "Google Images search results as JSON: original image URL, thumbnail, exact pixel dimensions, title, source page and domain for every image. No browser, no API key. From $1.50 per 1,000 images.",
    "version": "0.1",
    "x-build-id": "tZMGtvXao6iRPIkVb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subimpact~google-images-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subimpact-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/subimpact~google-images-scraper/runs": {
      "post": {
        "operationId": "runs-sync-subimpact-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/subimpact~google-images-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-subimpact-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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "One or more Google Images searches, e.g. `red panda` or `mid century modern sofa`. Each query returns up to `maxImagesPerQuery` images. Maximum 50 queries per run.",
            "items": {
              "type": "string"
            }
          },
          "gl": {
            "title": "Country (gl)",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Two-letter Google country setting, which decides the result set and the regional mix of sites: us, gb, my, sg, de, au, in. `uk` is accepted and mapped to gb.",
            "default": "us"
          },
          "hl": {
            "title": "Language (hl)",
            "pattern": "^(\\s*[A-Za-z]{2,3}([-_]([A-Za-z]{2}|[0-9]{3}))?\\s*)?$",
            "type": "string",
            "description": "Google interface language: en, de, fr, ja, pt-BR, zh-CN, es-419. This is the language of the Google UI and of the titles Google returns.",
            "default": "en"
          },
          "maxImagesPerQuery": {
            "title": "Max images per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many images to return per query (1-500, default 50). Google serves about 100 images per page, so 50 costs one page per query. Google rarely serves more than a few hundred images for a query; the actor stops as soon as a page comes back empty.",
            "default": 50
          },
          "maxItems": {
            "title": "Max images per run (all queries)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Global cost ceiling: the run stops after this many image rows across all queries (default 200, max 5000). At $0.0015 per image, 200 images cost $0.30 plus proxy usage. The default single query returns 50 images, so a default run costs about $0.08.",
            "default": 200
          },
          "safeSearch": {
            "title": "SafeSearch",
            "type": "boolean",
            "description": "Send Google's SafeSearch filter (safe=active). On by default — the Store version of this Actor should not return adult images. Turn it off only if you have a reason to.",
            "default": true
          },
          "imageSize": {
            "title": "Image size",
            "enum": [
              "",
              "large",
              "medium",
              "icon"
            ],
            "type": "string",
            "description": "Google's own image-size filter. `large` returns the biggest originals (smallest short side measured: 674 px), `medium` the middle band, `icon` the small ones. Empty = any size.",
            "default": ""
          },
          "imageType": {
            "title": "Image type",
            "enum": [
              "",
              "photo",
              "clipart",
              "lineart",
              "animated"
            ],
            "type": "string",
            "description": "Google's own image-type filter: photo, clipart (logos, drawings, PNG/SVG), lineart (black-and-white drawings) or animated (mostly GIFs). Empty = any type.",
            "default": ""
          },
          "colour": {
            "title": "Colour",
            "enum": [
              "",
              "red",
              "orange",
              "yellow",
              "green",
              "teal",
              "blue",
              "purple",
              "pink",
              "white",
              "gray",
              "black",
              "brown",
              "blackandwhite",
              "transparent"
            ],
            "type": "string",
            "description": "Google's dominant-colour filter for the image itself, not for the query text. Empty = any colour.",
            "default": ""
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only images from pages Google indexed recently: day, week, month or year. Useful for news and trends. Empty = any time.",
            "default": ""
          },
          "concurrency": {
            "title": "Concurrent queries",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many queries are fetched in parallel (1-8, default 3). Pages of the same query are always fetched one after another. Higher is faster but uses more proxy sessions at once.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}