{
  "openapi": "3.0.1",
  "info": {
    "title": "Cheapest Bing Images Scraper | $0.25/1K Searches",
    "description": "Scrape Bing Images results: titles, source pages, thumbnails and original image URLs with dimensions and filters. Many images per page. $0.25 per 1k requests, run usage included.",
    "version": "0.1",
    "x-build-id": "0m9TztqdBNu1TXcsC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/litescrape~bing-images/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-litescrape-bing-images",
        "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/litescrape~bing-images/runs": {
      "post": {
        "operationId": "runs-sync-litescrape-bing-images",
        "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/litescrape~bing-images/run-sync": {
      "post": {
        "operationId": "run-sync-litescrape-bing-images",
        "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": {
          "q": {
            "title": "Q",
            "minLength": 1,
            "maxLength": 2048,
            "type": "string",
            "description": "Image search query, from 1 through 2,048 characters after trimming. Control characters are rejected."
          },
          "count": {
            "title": "Count",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum images to return, from 1 through 100. Defaults to 35.\n\nBing may return fewer images. Follow the pagination link to retrieve another batch."
          },
          "mkt": {
            "title": "Mkt",
            "pattern": "^[a-zA-Z]{2}-[a-zA-Z]{2}$",
            "type": "string",
            "description": "Optional language-country market, such as en-US. Cannot be combined with cc."
          },
          "age": {
            "title": "Age",
            "enum": [
              "lt1440",
              "lt10080",
              "lt43200",
              "lt525600"
            ],
            "type": "string",
            "description": "Bing date filter: lt1440 (past 24 hours), lt10080 (past week), lt43200 (past month) or lt525600 (past year)."
          },
          "aspect": {
            "title": "Aspect",
            "enum": [
              "square",
              "wide",
              "tall"
            ],
            "type": "string",
            "description": "Filter to square, wide or tall images."
          },
          "cc": {
            "title": "Cc",
            "pattern": "^[a-zA-Z]{2}$",
            "type": "string",
            "description": "Optional two-letter country code. Cannot be combined with mkt."
          },
          "color2": {
            "title": "Color2",
            "enum": [
              "color",
              "bw",
              "FGcls_RED",
              "FGcls_ORANGE",
              "FGcls_YELLOW",
              "FGcls_GREEN",
              "FGcls_TEAL",
              "FGcls_BLUE",
              "FGcls_PURPLE",
              "FGcls_PINK",
              "FGcls_BROWN",
              "FGcls_BLACK",
              "FGcls_GRAY",
              "FGcls_WHITE"
            ],
            "type": "string",
            "description": "Use color for any color, bw for black and white, or a dominant color: FGcls_RED, FGcls_ORANGE, FGcls_YELLOW, FGcls_GREEN, FGcls_TEAL, FGcls_BLUE, FGcls_PURPLE, FGcls_PINK, FGcls_BROWN, FGcls_BLACK, FGcls_GRAY or FGcls_WHITE."
          },
          "face": {
            "title": "Face",
            "enum": [
              "face",
              "portrait"
            ],
            "type": "string",
            "description": "Use face for just faces or portrait for head-and-shoulders images."
          },
          "first": {
            "title": "First",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "One-based Bing result offset, from 1 through 10,000.\n\nPrefer litescrape_pagination.next when returned. Bing may reorder or repeat images between requests."
          },
          "imagesize": {
            "title": "Imagesize",
            "enum": [
              "small",
              "medium",
              "large",
              "wallpaper"
            ],
            "type": "string",
            "description": "Bing image size bucket: small, medium, large or wallpaper (extra large)."
          },
          "license": {
            "title": "License",
            "enum": [
              "L1",
              "L2",
              "L3",
              "L4",
              "L5",
              "L6",
              "L7",
              "L2_L3",
              "L2_L3_L4",
              "L2_L3_L5_L6",
              "L2_L3_L4_L5_L6_L7",
              "creativecommons"
            ],
            "type": "string",
            "description": "Use creativecommons for all Creative Commons results, L1 for public domain, or native license categories L2 through L7. Bing also supports grouped categories.\n\nL2_L3_L4_L5_L6_L7: free to share and use. L2_L3_L4: free to share and use commercially. L2_L3_L5_L6: free to modify, share and use. L2_L3: free to modify, share and use commercially. Bing classifies usage rights; confirm the license on the source page before reusing an image."
          },
          "photo": {
            "title": "Photo",
            "enum": [
              "photo",
              "clipart",
              "linedrawing",
              "animatedgif",
              "transparent"
            ],
            "type": "string",
            "description": "Photographs, clipart, line drawings, animated GIFs or images with transparent backgrounds."
          },
          "qft": {
            "title": "Qft",
            "maxLength": 2048,
            "type": "string",
            "description": "Optional native Bing Images qft filter expression, up to 2,048 characters without control characters.\n\nNamed image filters override the same category in qft and preserve unrelated categories. Without named filters, qft is passed through unchanged. Filter matching and availability are controlled by Bing."
          },
          "safeSearch": {
            "title": "SafeSearch",
            "enum": [
              "off",
              "moderate",
              "strict"
            ],
            "type": "string",
            "description": "Bing content filter: off, moderate, or strict. Case-insensitive; defaults to moderate.\n\nBing may enforce stricter filtering for some markets."
          },
          "timeout": {
            "title": "Timeout",
            "maximum": 90,
            "type": "number",
            "description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget."
          },
          "requests": {
            "title": "Batch requests",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Optional list of parameter objects. Top-level API fields are shared defaults; each object overrides them. Maximum 1,000 inputs.",
            "items": {
              "type": "object"
            }
          },
          "maxRequests": {
            "title": "Maximum paid requests",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Run-wide cap on successful API requests, including continuation pages. 1,000 requests cost $0.25.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum dataset rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap exported rows. An in-flight response can still be saved and billed in full. Complete JSON responses remain in storage.",
            "default": 1000
          },
          "maxPagesPerInput": {
            "title": "Maximum pages per input",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "1 returns the first page only. Additional pages follow source continuation links when available; every successful page is a paid request.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Upper concurrency bound. The service may apply a lower limit for capacity or trial quotas.",
            "default": 2
          },
          "includeArtifacts": {
            "title": "Include source artifacts",
            "type": "boolean",
            "description": "Copy available raw source artifacts to this run. Availability varies by endpoint; unavailable artifacts do not invalidate a saved JSON response.",
            "default": false
          },
          "datasetOutput": {
            "title": "Export dataset",
            "type": "boolean",
            "description": "Enable dataset rows and recoverable per-request storage. Leave off for the cheapest JSON output. Pagination and artifacts also enable this workflow.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}