{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Image Search Scraper",
    "description": "Collect public Google Image Search result cards, image URLs, thumbnails, titles, and source links.",
    "version": "1.0",
    "x-build-id": "U5vAjJ7toQX5loMJY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-image-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-image-search-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/googleapi~google-image-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-image-search-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/googleapi~google-image-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-image-search-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": "Queries",
            "maxItems": 50,
            "type": "array",
            "description": "Search phrases converted to public Google Image Search URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "default": []
          },
          "query": {
            "title": "Query (alias)",
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search phrase."
          },
          "searchQuery": {
            "title": "Search query (alias)",
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search phrase."
          },
          "startUrls": {
            "title": "Google Image Search URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Approved public HTTPS Google /search URLs containing tbm=isch or udm=2.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Public URL",
                  "description": "Approved public Google Image Search URL.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2000
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "sourceUrls": {
            "title": "Source URLs (alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility alias for approved public Google Image Search URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "urls": {
            "title": "URLs (legacy alias)",
            "maxItems": 50,
            "type": "array",
            "description": "Legacy alias for approved public Google Image Search URLs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "url": {
            "title": "URL (single alias)",
            "maxLength": 2000,
            "type": "string",
            "description": "Compatibility alias for one approved public Google Image Search URL."
          },
          "maxItems": {
            "title": "Maximum images",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Global maximum number of normal image records emitted.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Bounded number of public image-search pages to inspect per source.",
            "default": 1
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based image-search page used when constructing pagination offsets."
          },
          "maxImages": {
            "title": "Maximum images per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum image cards retained from each public page.",
            "default": 50
          },
          "includeOriginalImageUrl": {
            "title": "Prefer original image URL",
            "type": "boolean",
            "description": "Prefer a direct image URL exposed in Google result metadata when available. It may be a resized rendition and is not guaranteed to be the source's original file; the thumbnail is the fallback.",
            "default": true
          },
          "includeThumbnail": {
            "title": "Include thumbnail URL",
            "type": "boolean",
            "description": "Keep the public Google thumbnail URL when available.",
            "default": true
          },
          "includeSourcePage": {
            "title": "Include source page",
            "type": "boolean",
            "description": "Keep the public source page URL and source label when exposed.",
            "default": true
          },
          "includeAlt": {
            "title": "Include alt text",
            "type": "boolean",
            "description": "Keep the public image title as alt text.",
            "default": true
          },
          "timeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Bounded timeout for each public Google Image Search request.",
            "default": 30000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds, alias)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Compatibility alias for timeoutMs."
          },
          "timeoutSecs": {
            "title": "Timeout (seconds, legacy alias)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Legacy compatibility alias for requestTimeoutSecs."
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Delay between public requests; pages are processed sequentially.",
            "default": 250
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Finite retries for ordinary network failures.",
            "default": 2
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 100000,
            "maximum": 10000000,
            "type": "integer",
            "description": "Bound the amount of untrusted HTML retained per response.",
            "default": 4000000
          },
          "userAgent": {
            "title": "User agent",
            "maxLength": 300,
            "type": "string",
            "description": "Optional ordinary browser user-agent string; it is not used for evasion."
          },
          "acceptLanguage": {
            "title": "Accept-Language",
            "maxLength": 120,
            "type": "string",
            "description": "Optional language preference for the public request.",
            "default": "en-US,en;q=0.8"
          },
          "locale": {
            "title": "Locale",
            "maxLength": 20,
            "type": "string",
            "description": "hl query value used for generated Google Image Search URLs.",
            "default": "en"
          },
          "safeSearch": {
            "title": "SafeSearch",
            "type": "boolean",
            "description": "Add Google's active SafeSearch parameter to generated URLs.",
            "default": true
          },
          "renderJavaScript": {
            "title": "Render JavaScript fallback",
            "type": "boolean",
            "description": "Use a standard Playwright browser when direct public HTML is a JavaScript or detected access-boundary shell. CAPTCHA and access-control challenges stop the run; they are not solved or bypassed.",
            "default": true
          },
          "browserWaitMs": {
            "title": "Browser wait (ms)",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "Bounded post-navigation wait for rendered public content.",
            "default": 2500
          },
          "browserScrolls": {
            "title": "Browser scrolls",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Bounded ordinary page scrolls used to reveal public image cards.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings are wired to the standard Playwright fallback; direct HTTP remains direct. Credentials are not logged."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "One-based starting page or offset page for paginated sources.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}