{
  "openapi": "3.0.1",
  "info": {
    "title": "Solana DeFi Scraper: TVL, Fees, Revenue & Yields",
    "description": "Export every Solana DeFi protocol from DefiLlama: Solana TVL, 1d/7d change, fees, revenue, DEX volume, top yield pools, category, links. Also Ethereum, Base, BSC & more. Free public API, no key.",
    "version": "0.1",
    "x-build-id": "l293bhzzOAWDkGWuh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/confidential_marina~defillama-solana-protocols-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-confidential_marina-defillama-solana-protocols-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/confidential_marina~defillama-solana-protocols-scraper/runs": {
      "post": {
        "operationId": "runs-sync-confidential_marina-defillama-solana-protocols-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/confidential_marina~defillama-solana-protocols-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-confidential_marina-defillama-solana-protocols-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": {
          "chain": {
            "title": "Chain",
            "enum": [
              "Solana",
              "Ethereum",
              "Base",
              "Arbitrum",
              "BSC",
              "Hyperliquid L1",
              "Tron",
              "Sui",
              "Avalanche",
              "Polygon",
              "Sonic",
              "Aptos"
            ],
            "type": "string",
            "description": "Blockchain to export. TVL, fees, revenue, DEX volume and yields are all reported for this chain only.",
            "default": "Solana"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "tvl",
              "fees24h",
              "fees30d",
              "revenue24h",
              "revenue30d",
              "dexVolume24h",
              "tvlChange1d",
              "tvlChange7d"
            ],
            "type": "string",
            "description": "Ranking of the output (descending). Fee/revenue sorts automatically enable fees; the DEX sort enables DEX volume.",
            "default": "tvl"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum protocols to output (after filters and sorting). Solana has ~550 tracked protocols.",
            "default": 100
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Only include these DefiLlama categories (case-insensitive), e.g. Dexs, Lending, Liquid Staking, Derivatives, Yield, Launchpad, RWA, Bridge, CDP, Prediction Market. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "excludeCex": {
            "title": "Exclude centralized exchanges (CEX)",
            "type": "boolean",
            "description": "Skip CEX wallets (Binance, OKX, Bybit …) that DefiLlama tracks as reserves, so the list is DeFi only.",
            "default": true
          },
          "search": {
            "title": "Name search (optional)",
            "type": "string",
            "description": "Only protocols whose name or slug contains this text, e.g. jupiter, raydium, kamino."
          },
          "minTvlUsd": {
            "title": "Minimum TVL on chain (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop protocols with less TVL on the selected chain. Note: fee-only protocols (no TVL) are removed when this is above 0.",
            "default": 0
          },
          "includeFees": {
            "title": "Include fees & revenue",
            "type": "boolean",
            "description": "Add chain-level fees and revenue (24h / 7d / 30d / 1y / all-time, with % change) from DefiLlama's fees dashboard.",
            "default": true
          },
          "includeDexVolume": {
            "title": "Include DEX volume",
            "type": "boolean",
            "description": "Add DEX trading volume (24h / 7d / 30d, with % change) for DEX protocols on the selected chain.",
            "default": true
          },
          "includeFeeOnlyProtocols": {
            "title": "Include fee-only protocols",
            "type": "boolean",
            "description": "Also output protocols that earn fees or volume on the chain but have no TVL listing there (e.g. pump.fun, Axiom, trading bots, wallets).",
            "default": true
          },
          "includeYields": {
            "title": "Include yield pools",
            "type": "boolean",
            "description": "Attach each protocol's yield pools on the chain from DefiLlama Yields: pool count, pooled TVL, max APY and the top pools by TVL (APY, base/reward APY, IL risk, stablecoin flag).",
            "default": false
          },
          "maxYieldPoolsPerProtocol": {
            "title": "Top yield pools per protocol",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many of each protocol's largest pools to list in topYieldPools (only when yield pools are included).",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}