Crypto Cypher AI

Crypto Cypher AI · GPT-Aktionen

GitHub Repository API

An API to fetch details from a GitHub repository.

  • GET /repos/{owner}/{repo}Fetches details of a specific repository.
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "GitHub Repository API",
    "description": "An API to fetch details from a GitHub repository.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.github.com",
      "description": "GitHub API server"
    }
  ],
  "paths": {
    "/repos/{owner}/{repo}": {
      "get": {
        "operationId": "getRepoDetails",
        "summary": "Fetches details of a specific repository.",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "The username of the owner of the repository.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "The name of the repository.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Repository details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Repository"
                }
              }
            }
          },
          "404": {
            "description": "Repository not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Repository": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "full_name": {
            "type": "string"
          },
          "private": {
            "type": "boolean"
          },
          "owner": {
            "type": "object",
            "properties": {
              "login": {
                "type": "string"
              },
              "id": {
                "type": "integer"
              },
              "avatar_url": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          "description": {
            "type": "string"
          },
          "fork": {
            "type": "boolean"
          },
          "url": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "pushed_at": {
            "type": "string"
          },
          "git_url": {
            "type": "string"
          },
          "ssh_url": {
            "type": "string"
          },
          "clone_url": {
            "type": "string"
          },
          "homepage": {
            "type": "string"
          },
          "stargazers_count": {
            "type": "integer"
          },
          "watchers_count": {
            "type": "integer"
          },
          "language": {
            "type": "string"
          },
          "forks_count": {
            "type": "integer"
          },
          "open_issues_count": {
            "type": "integer"
          },
          "master_branch": {
            "type": "string"
          },
          "default_branch": {
            "type": "string"
          },
          "score": {
            "type": "integer"
          }
        }
      }
    }
  }
}

Currency API

API for fetching current currency rates.

  • GET /latest/currencies/{currency}.jsonRetrieves the latest currency rates.
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Currency API",
    "description": "API for fetching current currency rates.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1",
      "description": "Main API server for Currency Data"
    }
  ],
  "paths": {
    "/latest/currencies/{currency}.json": {
      "get": {
        "operationId": "getCurrencyRates",
        "summary": "Retrieves the latest currency rates.",
        "parameters": [
          {
            "name": "currency",
            "in": "path",
            "required": true,
            "description": "The base currency code to get rates for.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An object containing currency rates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Cryptocurrency API

Interacts with cryptocurrency data from CoinCap.

  • GET /assetsRetrieves cryptocurrency assets information.
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cryptocurrency API",
    "description": "Interacts with cryptocurrency data from CoinCap.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.coincap.io/v2",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/assets": {
      "get": {
        "operationId": "getAssets",
        "summary": "Retrieves cryptocurrency assets information.",
        "responses": {
          "200": {
            "description": "An array of cryptocurrency assets",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "rank": {
                        "type": "string"
                      },
                      "symbol": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "supply": {
                        "type": "string"
                      },
                      "maxSupply": {
                        "type": "string"
                      },
                      "marketCapUsd": {
                        "type": "string"
                      },
                      "volumeUsd24Hr": {
                        "type": "string"
                      },
                      "priceUsd": {
                        "type": "string"
                      },
                      "changePercent24Hr": {
                        "type": "string"
                      },
                      "vwap24Hr": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}