{"id":15436167,"url":"https://github.com/michael-siek/coingecko-api","last_synced_at":"2025-10-09T12:42:33.247Z","repository":{"id":42479993,"uuid":"387029379","full_name":"michael-siek/coingecko-api","owner":"michael-siek","description":"An open-source TypeScript wrapper for the the CoinGecko API","archived":false,"fork":false,"pushed_at":"2023-06-30T00:48:40.000Z","size":155,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-09-28T15:09:08.300Z","etag":null,"topics":["bitcoin","cryptocurrency","ethereum","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-siek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-17T20:13:32.000Z","updated_at":"2025-03-05T09:23:27.000Z","dependencies_parsed_at":"2025-04-19T18:25:31.966Z","dependency_job_id":"bec155b0-dda9-4e05-954f-ced6f5a19322","html_url":"https://github.com/michael-siek/coingecko-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/michael-siek/coingecko-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-siek%2Fcoingecko-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-siek%2Fcoingecko-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-siek%2Fcoingecko-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-siek%2Fcoingecko-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-siek","download_url":"https://codeload.github.com/michael-siek/coingecko-api/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-siek%2Fcoingecko-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001435,"owners_count":26083078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","cryptocurrency","ethereum","nodejs"],"created_at":"2024-10-01T18:48:52.204Z","updated_at":"2025-10-09T12:42:33.203Z","avatar_url":"https://github.com/michael-siek.png","language":"TypeScript","readme":"# CoinGecko API TypeScript Wrapper\n\n[![GitHub contributors](https://img.shields.io/github/contributors/michael-siek/coingecko-api)](https://github.com/michael-siek/coingecko-api/graphs/contributors)\n[![npm](https://img.shields.io/npm/dt/@crypto-coffee/coingecko-api)](https://www.npmjs.com/package/@crypto-coffee/coingecko-api)\n\n\u003e An open-source TypeScript wrapper for the the CoinGecko API\n\n[Coingecko API Documentation](https://www.coingecko.com/en/api/documentation)\n\n## Installation\n\n```console\nnpm install @crypto-coffee/coingecko-api\n```\n\n## Usage Example\n\n```js\nimport CoinGeckoApi from '@crypto-coffee/coingecko-api'\n\n;(async () =\u003e {\n  try {\n    const coinGeckoApi = new CoinGeckoApi()\n    const results = await coinGeckoApi.simple({\n      ids: 'Bitcoin',\n      vs_currencies: 'usd'\n    })\n    console.log(results)\n  } catch (err) {\n    // do something with the error\n  }\n})()\n```\n\n## Endpoints\n\nWe have supplied the majority of CoinGecko's API. The available endpoints are supplied below:\n\n### `Ping`\n\n```js\nconst result = await coinGeckoApi.ping()\n```\n\n### `/simple/price`\n\n```js\n// Single id\nconst results = await coinGeckoApi.simple({\n    vs_currencies: 'usd'\n    id: 'bitcoin'\n})\n// Multiple ids\nconst results = await coinGeckoApi.simple({\n    vs_currencies: 'usd'\n    id: ['bitcoin', 'Ethereum']\n})\n```\n\n### `/simple/token_price/{id}`\n\n```js\n// single contract_address\nconst results = await coinGeckoApi.simpleTokenPrice({\n    'binance-smart-chain', {\n    contract_addresses: '0x00',\n    vs_currencies: 'usd'\n    }\n})\n// Multiple contract_addresses\nconst results = await coinGeckoApi.simpleTokenPrice({\n    'binance-smart-chain', {\n    contract_addresses: ['0x00', '0x001'],\n    vs_currencies: 'usd'\n    }\n})\n```\n\n### `/simple/supported_vs_currencies`\n\n```js\nconst results = await coinGeckoApi.supportedCurrencies()\n```\n\n### `​/coins​/list`\n\n```js\nconst results = await coinGeckoApi.coinList()\n```\n\n### `​/coins​/markets`\n\n```js\nconst results = await coinGeckoApi.coinMarkets({ vs_currency: 'usd' })\n```\n\n### `​/coins​/{id}`\n\n```js\nconst results = await coinGeckoApi.coinMarkets({ id: 'bitcoin' })\n```\n\n### `​/coins​/{id}​/tickers`\n\n```js\nconst results = await coinGeckoApi.coinTickers('bitcoin', {\n  exchange_ids: 'binance'\n})\n\nconst { data, request } = await coinGeckoApi.coinTickers('bitcoin', {\n  exchange_ids: 'binance'\n})\n```\n\n### `​/coins​/{id}​/history`\n\n```js\nconst results = await coinGeckoApi.coinHistory('bitcoin', '30-12-2017', {\n  localization: false\n})\nconst results = await coinGeckoApi.coinHistory('bitcoin', '30-12-2017')\n```\n\n### `​/coins​/{id}​/market_chart`\n\n```js\nconst results = await coinGeckoApi.coinMarketChart('bitcoin', {\n  vs_currency: 'usd',\n  days: '1'\n})\n```\n\n### `​/coins​/{id}​/market_chart​/range`\n\n```js\nconst results = await coinGeckoApi.coinMarketChartRange('bitcoin', {\n  vs_currency: 'usd',\n  from: '1392577232',\n  to: '1422577232'\n})\n```\n\n### `​/coins​/{id}​/ohlc`\n\n```js\nconst results = await coinGeckoApi.coinOHLC('bitcoin', {\n  vs_currency: 'usd',\n  days: 7\n})\n```\n\n​\n\n### `/coins​/{id}​/contract​/{contract_address}`\n\n```js\nconst results = await coinGeckoApi.contractInformation(\n  'binance-smart-chain',\n  '0x00'\n)\n```\n\n### `/coins​/{id}​/contract​/{contract_address}​/market_chart​/`\n\n```js\nconst results = await coinGeckoApi.contractMarketChart(\n  'binance-smart-chain',\n  '0x00',\n  {\n    vs_currency: 'usd',\n    days: '1'\n  }\n)\n```\n\n### `/coins​/{id}​/contract​/{contract_address}​/market_chart​/range`\n\n```js\nconst results = await coinGeckoApi.contractMarketChartRange(\n  'binance-smart-chain',\n  '0x00',\n  {\n    vs_currency: 'usd',\n    from: '1619881896',\n    to: '1619968296'\n  }\n)\n```\n\n### `/asset_platforms`\n\n```js\nconst results = await coinGeckoApi.assetPlatforms()\n```\n\n### `/coins​/categories​/list`\n\n```js\nconst results = await coinGeckoApi.categoriesList()\n```\n\n### `/coins​/categories`\n\n```js\nconst results = await coinGeckoApi.categoriesListMarketData()\n```\n\n### `/exchanges`\n\n```js\nconst results = await coinGeckoApi.exchangesList()\n```\n\n### `/exchanges​/list`\n\n```js\nconst results = await coinGeckoApi.exchangesList()\n```\n\n### `/exchanges​/{id}`\n\n```js\nconst results = await coinGeckoApi.exchangesById('binance')\n```\n\n### `/exchanges​/{id}​/tickers`\n\n```js\nconst results = await coinGeckoApi.exchangeTickers('binance')\n```\n\n### `/exchanges​/{id}​/volume_chart`\n\n```js\nconst results = await coinGeckoApi.exchangesVolumeChart('binance', 1)\n```\n\n### Contributions\n\nThis package is maintained by [Zidious](https://github.com/Zidious)(Gabe) and [Michael](https://github.com/michael-siek). If any of the endpoints that are supplied by CoinGecko and are not in this package please only an issue and we will get them added as soon as possible.\n\n:coffee: :coffee:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-siek%2Fcoingecko-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-siek%2Fcoingecko-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-siek%2Fcoingecko-api/lists"}