{
  "openapi": "3.0.1",
  "info": {
    "title": "Investing.com Certificates Scraper: Prices & History",
    "description": "Get certificate and structured product data from Investing.com: current price and change, 52-week range, leverage, strike price, issue and maturity dates, plus daily, weekly or monthly historical prices. Look up by symbol, ISIN, name or link. 32 languages.",
    "version": "1.0",
    "x-build-id": "OWLldb8ZFtbL6Jl6s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pintostudio~investing-com-certificates/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pintostudio-investing-com-certificates",
        "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/pintostudio~investing-com-certificates/runs": {
      "post": {
        "operationId": "runs-sync-pintostudio-investing-com-certificates",
        "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/pintostudio~investing-com-certificates/run-sync": {
      "post": {
        "operationId": "run-sync-pintostudio-investing-com-certificates",
        "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": {
          "instruments": {
            "title": "Certificates to look up",
            "type": "array",
            "description": "Certificate symbols, ISIN codes, names or investing.com links. One per line.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (optional)",
            "type": "string",
            "description": "Helps when the same symbol exists in several countries. A name (united states) or a 2-letter code (US)."
          },
          "dataToGet": {
            "title": "What do you want to get?",
            "type": "array",
            "description": "Pick one or more. Options starting with MARKET do not need anything in the list above.",
            "items": {
              "type": "string",
              "enum": [
                "overview",
                "historical"
              ],
              "enumTitles": [
                "Quote & overview (price, change, 52-week range, market cap...)",
                "Historical prices (open, high, low, close, volume)"
              ]
            },
            "default": [
              "overview"
            ]
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "en-gb",
              "en-in",
              "en-ca",
              "en-au",
              "en-za",
              "en-ph",
              "en-ng",
              "de",
              "es",
              "es-mx",
              "fr",
              "it",
              "nl",
              "pt",
              "pt-br",
              "pl",
              "ru",
              "tr",
              "ar",
              "el",
              "sv",
              "fi",
              "he",
              "ja",
              "ko",
              "zh-cn",
              "zh-hk",
              "id",
              "ms",
              "th",
              "vi"
            ],
            "type": "string",
            "description": "investing.com edition to read. Names, descriptions and news come in this language.",
            "default": "en"
          },
          "currency": {
            "title": "Currency (optional)",
            "type": "string",
            "description": "Convert prices into this currency, e.g. EUR, BRL, JPY. Type 'local' for the currency of the chosen language's country. Leave empty to keep each instrument's own currency."
          },
          "historicalFrom": {
            "title": "Historical data from",
            "type": "string",
            "description": "First date for 'Historical prices'. Empty = 30 days ago."
          },
          "historicalTo": {
            "title": "Historical data to",
            "type": "string",
            "description": "Last date for 'Historical prices'. Empty = today."
          },
          "historicalInterval": {
            "title": "Interval",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "One row per day, per week or per month.",
            "default": "daily"
          },
          "historicalOrder": {
            "title": "Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Oldest first or newest first.",
            "default": "asc"
          },
          "splitHistoricalRows": {
            "title": "One row per day",
            "type": "boolean",
            "description": "Save each price row as its own dataset item (best for Excel/CSV export).",
            "default": false
          },
          "proxyType": {
            "title": "Proxy",
            "enum": [
              "ours",
              "own"
            ],
            "type": "string",
            "description": "Our proxy is included in the price, you pay nothing extra. Choose \"My own proxy\" to send the requests through your own proxy instead (its traffic is billed by your proxy provider, not by us).",
            "default": "ours"
          },
          "ownProxyUrls": {
            "title": "Your proxy URLs",
            "type": "array",
            "description": "Only used when Proxy is \"My own proxy\". One URL per line, e.g. http://user:pass@host:port. Several URLs are rotated.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}