{
  "openapi": "3.0.1",
  "info": {
    "title": "Morpho Scraper",
    "description": "Apify Actor for scraping Morpho market and vault listings, current state, asset metadata, warnings, and optional historical snapshots.",
    "version": "0.1",
    "x-build-id": "A6HyNq9XrAEF9wfVM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felt~morpho-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felt-morpho-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/felt~morpho-scraper/runs": {
      "post": {
        "operationId": "runs-sync-felt-morpho-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/felt~morpho-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-felt-morpho-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": {
          "includeMarkets": {
            "title": "Include Markets",
            "type": "boolean",
            "description": "Fetch paginated Morpho market listings.",
            "default": true
          },
          "includeVaults": {
            "title": "Include Vaults",
            "type": "boolean",
            "description": "Fetch paginated Morpho Vault V1 listings.",
            "default": true
          },
          "includeMarketHistory": {
            "title": "Include Market History",
            "type": "boolean",
            "description": "Fetch per-market historicalState after listing markets, or directly for marketUniqueKeys in history-only runs.",
            "default": true
          },
          "includeVaultHistory": {
            "title": "Include Vault History",
            "type": "boolean",
            "description": "Fetch per-vault historicalState after listing vaults, or directly for vaultAddresses in history-only runs.",
            "default": true
          },
          "chainIds": {
            "title": "Chain IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Morpho chain IDs to include in list queries.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "8453",
                "747474",
                "999",
                "42161",
                "137",
                "130",
                "10",
                "480",
                "143",
                "988",
                "4217"
              ],
              "enumTitles": [
                "Ethereum (1)",
                "Base (8453)",
                "Katana (747474)",
                "HyperEVM (999)",
                "Arbitrum One (42161)",
                "Polygon (137)",
                "Unichain (130)",
                "OP Mainnet (10)",
                "World Chain (480)",
                "Monad (143)",
                "Stable (988)",
                "Tempo Mainnet (4217)"
              ]
            },
            "default": [
              "1"
            ]
          },
          "listedOnly": {
            "title": "Listed Only",
            "type": "boolean",
            "description": "Limit markets/vaults to listed entities.",
            "default": true
          },
          "maxMarkets": {
            "title": "Max Markets",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of market records to read from markets(...).",
            "default": 100
          },
          "maxVaults": {
            "title": "Max Vaults",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of vault records to read from vaults(...).",
            "default": 100
          },
          "pageSize": {
            "title": "Page Size",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Page size for markets and vaults.",
            "default": 50
          },
          "marketOrderBy": {
            "title": "Market Order By",
            "enum": [
              "UniqueKey",
              "SupplyAssetsUsd",
              "BorrowAssetsUsd",
              "Utilization",
              "SupplyApy",
              "NetSupplyApy",
              "BorrowApy",
              "NetBorrowApy",
              "Lltv"
            ],
            "type": "string",
            "description": "Morpho MarketOrderBy value for markets(...).",
            "default": "SupplyAssetsUsd"
          },
          "vaultOrderBy": {
            "title": "Vault Order By",
            "enum": [
              "Address",
              "TotalAssetsUsd",
              "TotalAssets",
              "TotalSupply",
              "Apy",
              "NetApy",
              "Name",
              "Curator",
              "AvgApy",
              "AvgNetApy",
              "DailyApy",
              "DailyNetApy"
            ],
            "type": "string",
            "description": "Morpho VaultOrderBy value for vaults(...).",
            "default": "TotalAssetsUsd"
          },
          "orderDirection": {
            "title": "Order Direction",
            "enum": [
              "Asc",
              "Desc"
            ],
            "type": "string",
            "description": "Sort direction for market and vault list queries.",
            "default": "Desc"
          },
          "minMarketSupplyUsd": {
            "title": "Min Market Supply USD",
            "type": "number",
            "description": "Optional lower bound for market state supplyAssetsUsd.",
            "default": 0
          },
          "minVaultTotalAssetsUsd": {
            "title": "Min Vault Total Assets USD",
            "type": "number",
            "description": "Optional lower bound for vault state totalAssetsUsd.",
            "default": 0
          },
          "marketUniqueKeys": {
            "title": "Market Unique Keys",
            "type": "array",
            "description": "Optional list of market unique keys to filter market list queries or drive market-history-only runs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "vaultAddresses": {
            "title": "Vault Addresses",
            "type": "array",
            "description": "Optional list of vault addresses to filter vault list queries or drive vault-history-only runs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "historyFromDate": {
            "title": "History From Date",
            "type": "string",
            "description": "Optional start date for historicalState queries in YYYY-MM-DD format.",
            "default": ""
          },
          "historyToDate": {
            "title": "History To Date",
            "type": "string",
            "description": "Optional end date for historicalState queries in YYYY-MM-DD format. Defaults to current time.",
            "default": ""
          },
          "historyDays": {
            "title": "History Days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Fallback lookback window used when historyFromDate is empty.",
            "default": 30
          },
          "historyInterval": {
            "title": "History Interval",
            "enum": [
              "HOUR",
              "DAY",
              "WEEK",
              "MONTH",
              "QUARTER",
              "YEAR"
            ],
            "type": "string",
            "description": "Morpho TimeseriesInterval for historicalState queries.",
            "default": "DAY"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}