{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Image Search API: CSE searchType=image JSON",
    "description": "Image queries and size, type, color or CC filters in, Google CSE searchType=image JSON out. Change one base URL before Jan 1, 2027. $0.004 per page.",
    "version": "1.0",
    "x-build-id": "OqqwEL0CL9t4ti6fu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apricot_blackberry~google-image-search-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apricot_blackberry-google-image-search-api",
        "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/apricot_blackberry~google-image-search-api/runs": {
      "post": {
        "operationId": "runs-sync-apricot_blackberry-google-image-search-api",
        "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/apricot_blackberry~google-image-search-api/run-sync": {
      "post": {
        "operationId": "run-sync-apricot_blackberry-google-image-search-api",
        "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": 500,
            "type": "array",
            "description": "Image search terms, one per line (1 to 500), as you would type them into Google Images. Each query returns up to \"Images per query\" images, one dataset row per image. Example: golden retriever puppy",
            "items": {
              "type": "string"
            }
          },
          "maxImagesPerQuery": {
            "title": "Images per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many images to return for each query, an integer from 1 to 100. Every 10 images (one result page) is billed as one image-query event ($0.004), so 10 = 1 event, 25 = 3 events. Example: 10",
            "default": 10
          },
          "imgSize": {
            "title": "Image size",
            "enum": [
              "huge",
              "icon",
              "large",
              "medium",
              "small",
              "xlarge",
              "xxlarge"
            ],
            "type": "string",
            "description": "Only images of this size class (the CSE imgSize parameter): icon, small, medium, large, xlarge, xxlarge or huge. Google Images offers fewer size steps, so small maps to medium and xlarge, xxlarge and huge map to large. Leave empty for any size. Example: large"
          },
          "imgType": {
            "title": "Image type",
            "enum": [
              "clipart",
              "face",
              "lineart",
              "stock",
              "photo",
              "animated"
            ],
            "type": "string",
            "description": "Only this kind of image (the CSE imgType parameter): clipart, face (portraits), lineart (line drawings), stock (stock photos), photo, or animated (GIFs). Leave empty for any type. Example: photo"
          },
          "imgColorType": {
            "title": "Color type",
            "enum": [
              "color",
              "gray",
              "mono",
              "trans"
            ],
            "type": "string",
            "description": "Color type (the CSE imgColorType parameter): color = full color, gray = grayscale, mono = black and white (applied as grayscale), trans = transparent background. Ignored when \"Dominant color\" is set. Leave empty for any. Example: color"
          },
          "imgDominantColor": {
            "title": "Dominant color",
            "enum": [
              "black",
              "blue",
              "brown",
              "gray",
              "green",
              "orange",
              "pink",
              "purple",
              "red",
              "teal",
              "white",
              "yellow"
            ],
            "type": "string",
            "description": "Only images dominated by this color (the CSE imgDominantColor parameter): black, blue, brown, gray, green, orange, pink, purple, red, teal, white or yellow. Leave empty for any color. Example: blue"
          },
          "rights": {
            "title": "Usage rights (Creative Commons)",
            "type": "array",
            "description": "Creative Commons license filter (the CSE rights parameter), any of cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived. Google Images has a single Creative Commons filter, so any selected value applies that filter. Always verify the license at the source page. Leave empty for no license filter. Example: [\"cc_publicdomain\"]",
            "items": {
              "type": "string",
              "enum": [
                "cc_publicdomain",
                "cc_attribute",
                "cc_sharealike",
                "cc_noncommercial",
                "cc_nonderived"
              ],
              "enumTitles": [
                "Public domain",
                "Attribution",
                "Share alike",
                "Non-commercial",
                "No derivatives"
              ]
            },
            "default": []
          },
          "fileType": {
            "title": "File type",
            "enum": [
              "jpg",
              "png",
              "gif",
              "bmp",
              "svg",
              "webp",
              "ico"
            ],
            "type": "string",
            "description": "Only images in this format (the CSE fileType parameter): jpg, png, gif, bmp, svg, webp or ico. Leave empty for any format. Example: png"
          },
          "siteSearch": {
            "title": "Restrict to site",
            "type": "string",
            "description": "Only images from pages on this one domain (the CSE siteSearch parameter). Leave empty for the whole web. Example: unsplash.com",
            "default": ""
          },
          "safe": {
            "title": "SafeSearch",
            "enum": [
              "active",
              "off"
            ],
            "type": "string",
            "description": "SafeSearch level (the CSE safe parameter): active filters explicit images (the default for images), off disables SafeSearch. Example: active",
            "default": "active"
          },
          "gl": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Two-letter country code (the CSE gl parameter) that biases results. Example: us, gb or de",
            "default": "us"
          },
          "hl": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Interface language code (the CSE hl parameter). Example: en, de or pt-BR",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}