{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto",
    "description": "Best, most accurate, unlimited crypto currency market rates and updates in seconds",
    "version": "0.0",
    "x-build-id": "kjqgoaXEtpbb2VeCo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maged120~crypto/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maged120-crypto",
        "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/maged120~crypto/runs": {
      "post": {
        "operationId": "runs-sync-maged120-crypto",
        "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/maged120~crypto/run-sync": {
      "post": {
        "operationId": "run-sync-maged120-crypto",
        "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": {
          "start": {
            "title": "Start Index",
            "minimum": 1,
            "type": "integer",
            "description": "Starting index for pagination (default: 1)"
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Number of cryptocurrencies to fetch (default: 100)"
          },
          "sort_by": {
            "title": "Sort By",
            "enum": [
              "trending_1h",
              "trending_6h",
              "trending_24h",
              "trending_7d",
              "rank",
              "gainer_loser_1h",
              "gainer_loser_6h",
              "gainer_loser_24h",
              "gainer_loser_7d",
              "most_visited_1h",
              "most_visited_6h",
              "most_visited_24h",
              "most_visited_7d",
              "date_added"
            ],
            "type": "string",
            "description": "Field to sort results by"
          },
          "sort_type": {
            "title": "Sort Type",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction"
          },
          "convert": {
            "title": "Convert Currencies",
            "type": "array",
            "description": "List of currencies to convert prices to",
            "items": {
              "type": "string"
            }
          },
          "audited": {
            "title": "Audited Only",
            "type": "boolean",
            "description": "Filter for audited cryptocurrencies only"
          },
          "tag_slugs": {
            "title": "Tag Slugs",
            "type": "string",
            "description": "List of tag slugs to filter by"
          },
          "aux": {
            "title": "Additional Fields",
            "type": "array",
            "description": "Additional fields to include in response",
            "items": {
              "type": "string",
              "enum": [
                "ath",
                "atl",
                "high24h",
                "low24h",
                "num_market_pairs",
                "cmc_rank",
                "date_added",
                "max_supply",
                "circulating_supply",
                "total_supply",
                "volume_7d",
                "volume_30d",
                "self_reported_circulating_supply",
                "self_reported_market_cap"
              ]
            }
          },
          "market_cap_range": {
            "title": "Market Cap Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for market cap filtering (e.g., '10~20' for billions)"
          },
          "fdv_range": {
            "title": "FDV Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for fully diluted valuation filtering (e.g., '10~20' for billions)"
          },
          "percent_change_24h_range": {
            "title": "24h Change Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for 24h price change percentage (e.g., '10~20')"
          },
          "volume_24h_range": {
            "title": "24h Volume Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for 24h trading volume (e.g., '10~20' for millions)"
          },
          "volume_change_24h_range": {
            "title": "24h Volume Change Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for 24h volume change percentage (e.g., '20~30')"
          },
          "age_range": {
            "title": "Age Range",
            "pattern": "^\\d+~\\d+$",
            "type": "string",
            "description": "Range for cryptocurrency age in days (e.g., '2880~4320')"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}