{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Fear & Greed Index + Market Sentiment",
    "description": "Crypto market sentiment for agents and alerts: Fear & Greed Index with full history since 2018 (daily/weekly/monthly, moving averages, streaks, percentile), global market cap, BTC/ETH/stablecoin dominance, DeFi stats, trending coins and per-coin sentiment votes from CoinGecko. One call, no API key.",
    "version": "0.1",
    "x-build-id": "GoUgcwnWA48CsOHLq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~crypto-sentiment/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-crypto-sentiment",
        "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/yadroo~crypto-sentiment/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-crypto-sentiment",
        "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/yadroo~crypto-sentiment/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-crypto-sentiment",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "daily",
              "summary",
              "history",
              "coins"
            ],
            "type": "string",
            "description": "daily = backward-compatible default: one row per day (newest first), the first row also carries global market cap, dominance and trending coins. summary = a single decision-ready row for alerts/dashboards. history = long-range Fear & Greed series for backtests. coins = community sentiment for specific coins.",
            "default": "daily"
          },
          "days": {
            "title": "History days",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many latest days to return in daily/history modes (index exists since 2018-02-01, ~3100 days). Ignored when from/to is set.",
            "default": 30
          },
          "from": {
            "title": "From (YYYY-MM-DD)",
            "type": "string",
            "description": "Start date (UTC) for daily/history modes; overrides days."
          },
          "to": {
            "title": "To (YYYY-MM-DD)",
            "type": "string",
            "description": "End date (UTC, inclusive). Empty = today."
          },
          "aggregate": {
            "title": "Aggregation (history mode)",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "history mode only: bucket the series and return avg/min/max/open/close per period.",
            "default": "daily"
          },
          "includeGlobal": {
            "title": "Include global market stats",
            "type": "boolean",
            "description": "daily/summary: total market cap, 24h volume, BTC/ETH/stablecoin dominance, active coins & markets (CoinGecko /global).",
            "default": true
          },
          "includeTrending": {
            "title": "Include trending coins",
            "type": "boolean",
            "description": "daily/summary: CoinGecko top-15 trending searches with rank, price and 24h change. coins mode: sets isTrending per coin.",
            "default": true
          },
          "includeDefi": {
            "title": "Include DeFi stats",
            "type": "boolean",
            "description": "daily/summary: DeFi market cap, DeFi dominance, DeFi/ETH ratio, 24h DeFi volume (CoinGecko).",
            "default": false
          },
          "coinIds": {
            "title": "CoinGecko coin ids",
            "type": "array",
            "description": "coins mode: CoinGecko ids (slugs like bitcoin, ethereum, solana, aerodrome-finance — not tickers). Max 30 per run (free-tier rate limit).",
            "items": {
              "type": "string"
            }
          },
          "vsCurrency": {
            "title": "Quote currency",
            "enum": [
              "btc",
              "eth",
              "ltc",
              "bch",
              "bnb",
              "eos",
              "xrp",
              "xlm",
              "link",
              "dot",
              "yfi",
              "sol",
              "usd",
              "aed",
              "ars",
              "aud",
              "bdt",
              "bhd",
              "bmd",
              "brl",
              "cad",
              "chf",
              "clp",
              "cny",
              "czk",
              "dkk",
              "eur",
              "gbp",
              "gel",
              "hkd",
              "huf",
              "idr",
              "ils",
              "inr",
              "jpy",
              "krw",
              "kwd",
              "lkr",
              "mmk",
              "mxn",
              "myr",
              "ngn",
              "nok",
              "nzd",
              "php",
              "pkr",
              "pln",
              "rub",
              "sar",
              "sek",
              "sgd",
              "thb",
              "try",
              "twd",
              "uah",
              "vef",
              "vnd",
              "zar",
              "xdr",
              "xag",
              "xau",
              "bits",
              "sats"
            ],
            "type": "string",
            "description": "Currency for market cap, volume and coin prices. Must be one of CoinGecko's supported vs_currencies.",
            "default": "usd"
          },
          "coingeckoApiKey": {
            "title": "CoinGecko API key (optional)",
            "type": "string",
            "description": "Optional Demo (CG-...) or Pro key. Without a key the actor paces CoinGecko calls at ~1 per 2.5 s and retries on 429; with a key it runs faster. Never required."
          },
          "fields": {
            "title": "Fields to output",
            "type": "array",
            "description": "Return only these fields. See README Output tables for names.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}