{
  "openapi": "3.0.1",
  "info": {
    "title": "Flickr Scraper",
    "description": "This actor scrapes photos and videos from the https://www.flickr.com website.",
    "version": "0.0",
    "x-build-id": "7gOyad7If1DaSJkbu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/web.harvester~flickr-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-web.harvester-flickr-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/web.harvester~flickr-scraper/runs": {
      "post": {
        "operationId": "runs-sync-web.harvester-flickr-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/web.harvester~flickr-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-web.harvester-flickr-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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "This is not affected by the other search options (except the desiredMediaCount).<br><br>Valid url example: https://www.flickr.com/search/?text=cat&[otherParam=otherValue]",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "desiredMediaCount": {
            "title": "Desired media count (per query)",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Desired media count per query max 4000 due to limitations of flickr, can be overcome by using date ranges (minDate and maxDate)",
            "default": 100
          },
          "sortType": {
            "title": "Sort type",
            "enum": [
              "RELEVANCE",
              "DATE_UPLOADED",
              "DATE_TAKEN",
              "INTERESTING"
            ],
            "type": "string",
            "description": "",
            "default": "RELEVANCE"
          },
          "licenseType": {
            "title": "License type",
            "enum": [
              "ALL",
              "ALL_CREATIVE_COMMONS",
              "COMMERCIAL_USE_ALLOWED",
              "MODIFICATION_ALLOWED",
              "COMMERCIAL_USE_AND_MODIFICATION_ALLOWED",
              "NO_KNOWN_COPYRIGHT_RESTRICTIONS",
              "UNITED_STATES_GOVERNMENT_WORK"
            ],
            "type": "string",
            "description": "",
            "default": "ALL"
          },
          "mediaMinSize": {
            "title": "Minimum media size",
            "enum": [
              "SMALL",
              "MEDIUM",
              "LARGE"
            ],
            "type": "string",
            "description": "",
            "default": "SMALL"
          },
          "includePhotos": {
            "title": "Include photos",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "includeScreenshots": {
            "title": "Include screenshots",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "includeIllustrations": {
            "title": "Include illustrations/art",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "includeVirtualPhotography": {
            "title": "Include virtual photography",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "includeVideos": {
            "title": "Include videos",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "landscape": {
            "title": "Landscape orientation",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "portrait": {
            "title": "Portrait orientation",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "square": {
            "title": "Square orientation",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "panorama": {
            "title": "Panorama orientation",
            "type": "boolean",
            "description": "",
            "default": true
          },
          "shallowDepthOfField": {
            "title": "Shallow depth of field",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "minimalism": {
            "title": "Minimalism",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "blackAndWhite": {
            "title": "Black and white",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "pattern": {
            "title": "Pattern",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "dateSearchType": {
            "title": "Date search type",
            "enum": [
              "DATE_TAKEN",
              "DATE_UPLOADED"
            ],
            "type": "string",
            "description": "",
            "default": "DATE_TAKEN"
          },
          "minDate": {
            "title": "Min date",
            "pattern": "(\\d{4}-\\d{2}-\\d{2}|(\\d+)\\s?\\S+)",
            "type": "string",
            "description": ""
          },
          "maxDate": {
            "title": "Max date",
            "pattern": "(\\d{4}-\\d{2}-\\d{2}|(\\d+)\\s?\\S+)",
            "type": "string",
            "description": ""
          },
          "red": {
            "title": "Red",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "darkOrange": {
            "title": "Dark orange",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "orange": {
            "title": "Orange",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "palePink": {
            "title": "Pale pink",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "lemonYellow": {
            "title": "Lemon yellow",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "schoolBusYellow": {
            "title": "School bus yellow",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "green": {
            "title": "Green",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "darkLimeGreen": {
            "title": "Dark lime green",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "cyan": {
            "title": "Cyan",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "blue": {
            "title": "Blue",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "violet": {
            "title": "Violet",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "pink": {
            "title": "Pink",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "white": {
            "title": "White",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "gray": {
            "title": "Gray",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "black": {
            "title": "Black",
            "type": "boolean",
            "description": "",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "This is required if you want to use Apify Proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}