{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Currency Conversion Rates Scraper",
    "description": "Extract public Google Finance currency quotes and calculate conversions. Uses direct requests and bounded visible rendering for public-page data; access boundaries are reported and never bypassed.",
    "version": "1.1",
    "x-build-id": "1gJBa0ZeGSlcyyZH7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-currency-conversion-rates-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-currency-conversion-rates-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-currency-conversion-rates-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-currency-conversion-rates-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-currency-conversion-rates-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-currency-conversion-rates-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": {
          "currencyPair": {
            "title": "Currency pair",
            "pattern": "^[A-Za-z]{3}(?:[-/]?[A-Za-z]{3})$",
            "maxLength": 7,
            "type": "string",
            "description": "Primary pair such as USD-EUR or USDEUR. When omitted, fromCurrency and toCurrency are used."
          },
          "fromCurrency": {
            "title": "From currency",
            "pattern": "^[A-Za-z]{3}$",
            "maxLength": 3,
            "type": "string",
            "description": "Three-letter source currency used when currencyPair is omitted.",
            "default": "USD"
          },
          "toCurrency": {
            "title": "To currency",
            "pattern": "^[A-Za-z]{3}$",
            "maxLength": 3,
            "type": "string",
            "description": "Three-letter destination currency used when currencyPair is omitted.",
            "default": "EUR"
          },
          "amount": {
            "title": "Amount to convert",
            "minimum": 0,
            "type": "number",
            "description": "Amount in the source currency. The Actor calculates the converted amount using the disclosed quote rate.",
            "default": 1
          },
          "currencyPairs": {
            "title": "Currency pairs",
            "maxItems": 25,
            "type": "array",
            "description": "Optional list of pairs such as GBP-EUR and USDEUR. When supplied, this list replaces the primary currencyPair.",
            "items": {
              "type": "string",
              "maxLength": 7,
              "pattern": "^[A-Za-z]{3}(?:[-/]?[A-Za-z]{3})$"
            },
            "default": []
          },
          "startUrls": {
            "title": "Google Finance quote URLs",
            "maxItems": 25,
            "type": "array",
            "description": "Optional public Google Finance currency quote URLs. Only supported Google Finance quote pages are accepted.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Quote URL",
                  "type": "string",
                  "description": "HTTPS Google Finance currency-pair quote URL.",
                  "maxLength": 2000,
                  "pattern": "^https://(?:(?:www|finance)\\.)?google\\.com/finance/(?:beta/)?quote/[A-Za-z]{3}[-/][A-Za-z]{3}(?:[?#].*)?$"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "page": {
            "title": "Starting page",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "One-based starting position within the normalized currency-pair and quote-URL list.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum quote pages",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum number of quote pages to fetch, beginning at page.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum conversions",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Global limit on valid conversion records emitted.",
            "default": 25
          },
          "maxResults": {
            "title": "Maximum conversions (legacy alias)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Backward-compatible alias for maxItems. maxItems takes precedence when both are supplied."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Compatibility field only. This Actor uses direct requests and ignores proxy settings; supplying this field does not route traffic through a proxy or bypass access controls."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}