{"_id":"@apiverve/bitcoin","_rev":"3-4e42ec78a7bc1aa17e27b0171bcfa3e3","name":"@apiverve/bitcoin","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.13":{"name":"@apiverve/bitcoin","version":"1.1.13","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/bitcoin@1.1.13","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/bitcoin?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/bitcoin-api/issues"},"dist":{"shasum":"84ce26704305ee9be6e92e6a9aaf1bf353b2d87e","tarball":"https://registry.npmjs.org/@apiverve/bitcoin/-/bitcoin-1.1.13.tgz","fileCount":5,"integrity":"sha512-rP6gIfr7pR96P+7l6WD82LeIX7U3GQ1Ym9bHTDi6mYrP4TWWgSoMbxc978R8vCCBlQwV+zfIjRFuyGMCI51aAA==","signatures":[{"sig":"MEQCIFvhqHDk3+rAbniyGlJjN9RCT3rHtGCRH+D5YlovkAgkAiBiiZTGmHW1OwzQn2+KGNyTgY0znTAeY8i94zNKJ+LFUQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16368},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"ce2f1b5152a99be2e642b636c2eb1d1a27177511","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/bitcoin-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/bitcoin_1.1.13_1771017837719_0.8617792152160104","host":"s3://npm-registry-packages-npm-production"}},"1.1.14":{"name":"@apiverve/bitcoin","version":"1.1.14","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/bitcoin@1.1.14","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/bitcoin?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/bitcoin-api/issues"},"dist":{"shasum":"7f82cf9b6f59b4e37268ce920787ca74c322301f","tarball":"https://registry.npmjs.org/@apiverve/bitcoin/-/bitcoin-1.1.14.tgz","fileCount":5,"integrity":"sha512-RIApB82nBwF+qoAWWetoPTHse9maYQ+Yndb7iETPryvxcRnmhqzN0qO9v6XFE0635rc5wW/SBv7ENGjE7Yth3Q==","signatures":[{"sig":"MEUCIHMwvE0ABSPR9gPaKdbg25LyBtygQbxQQxWX1dz31VY5AiEAjH2E8BoKnNMSULQUHji0ArEGNAAYXUpLLPX04Jk8HfE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16077},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"2f35257ac4df6e979213a38ff3974fd82a1cf5b1","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/bitcoin-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/bitcoin_1.1.14_1771235811314_0.3884381542716895","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@apiverve/bitcoin","version":"1.2.0","description":"Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.","main":"index.js","types":"index.d.ts","sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"test":"mocha","example":"node examples/basic.js"},"repository":{"type":"git","url":"git+https://github.com/apiverve/bitcoin-api.git","directory":"npm"},"keywords":["bitcoin price","bitcoin price api","btc price","btc price api","bitcoin market cap"],"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","bugs":{"url":"https://github.com/apiverve/bitcoin-api/issues"},"homepage":"https://bitcoin.apiverve.com?utm_source=npm&utm_medium=homepage","devDependencies":{"mocha":"^11.0.1","chai":"^5.1.2","dotenv":"^16.4.7"},"dependencies":{"axios":"1.13.2","form-data":"^4.0.1"},"gitHead":"2878cdb345f00af84126a08bcc1be2b68ae96fec","_id":"@apiverve/bitcoin@1.2.0","_nodeVersion":"24.15.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-QIfSOboyd9TeVGLic1pahtHn3R+KX818oTya8lktln9Tsj0EpnyaqSK8sRR2E+w3D8WhZHnhIq+VrOZ5FBpVvg==","shasum":"ea771e81364e65efb13dba290bd7d078ffbf8d7b","tarball":"https://registry.npmjs.org/@apiverve/bitcoin/-/bitcoin-1.2.0.tgz","fileCount":5,"unpackedSize":17236,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGHRrZEDXECJsgmuO/2dpBzl+pmol4UQ67ghzDNns7PwAiEA5mVxXRAXNC9RkVi7iT3RsjsyyhckF1b8T9/Sg3xBWME="}]},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"directories":{},"maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bitcoin_1.2.0_1784148422480_0.7177168867647266"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-13T21:23:57.660Z","modified":"2026-07-15T20:47:02.742Z","1.1.13":"2026-02-13T21:23:57.890Z","1.1.14":"2026-02-16T09:56:51.448Z","1.2.0":"2026-07-15T20:47:02.597Z"},"bugs":{"url":"https://github.com/apiverve/bitcoin-api/issues"},"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","homepage":"https://bitcoin.apiverve.com?utm_source=npm&utm_medium=homepage","keywords":["bitcoin price","bitcoin price api","btc price","btc price api","bitcoin market cap"],"repository":{"type":"git","url":"git+https://github.com/apiverve/bitcoin-api.git","directory":"npm"},"description":"Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"readme":"# Bitcoin Price API\r\n\r\nBitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n[![npm version](https://img.shields.io/npm/v/@apiverve/bitcoin.svg)](https://www.npmjs.com/package/@apiverve/bitcoin)\r\n\r\nThis is a Javascript Wrapper for the [Bitcoin Price API](https://bitcoin.apiverve.com?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Installation\r\n\r\nUsing npm:\r\n```shell\r\nnpm install @apiverve/bitcoin\r\n```\r\n\r\nUsing yarn:\r\n```shell\r\nyarn add @apiverve/bitcoin\r\n```\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the Bitcoin Price API client, you have to setup your account and obtain your API Key.\r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Quick Start\r\n\r\n[Get started with the Quick Start Guide](https://docs.apiverve.com/quickstart?utm_source=npm&utm_medium=readme)\r\n\r\nThe Bitcoin Price API documentation is found here: [https://docs.apiverve.com/ref/bitcoin](https://docs.apiverve.com/ref/bitcoin?utm_source=npm&utm_medium=readme).\r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```javascript\r\nconst bitcoinAPI = require('@apiverve/bitcoin');\r\nconst api = new bitcoinAPI({\r\n    api_key: '[YOUR_API_KEY]'\r\n});\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n---\r\n\r\n### Perform Request\r\n\r\nUsing the API is simple. All you have to do is make a request. The API will return a response with the data you requested.\r\n\r\n```javascript\r\nvar query = {\n  currency: \"USD\",\n  hourly: false\n};\r\n\r\napi.execute(query, function (error, data) {\r\n    if (error) {\r\n        return console.error(error);\r\n    } else {\r\n        console.log(data);\r\n    }\r\n});\r\n```\r\n\r\n---\r\n\r\n### Using Promises\r\n\r\nYou can also use promises to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nvar query = {\n  currency: \"USD\",\n  hourly: false\n};\r\n\r\napi.execute(query)\r\n    .then(data => {\r\n        console.log(data);\r\n    })\r\n    .catch(error => {\r\n        console.error(error);\r\n    });\r\n```\r\n\r\n---\r\n\r\n### Using Async/Await\r\n\r\nYou can also use async/await to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nasync function makeRequest() {\r\n    var query = {\n  currency: \"USD\",\n  hourly: false\n};\r\n\r\n    try {\r\n        const data = await api.execute(query);\r\n        console.log(data);\r\n    } catch (error) {\r\n        console.error(error);\r\n    }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Example Response\r\n\r\n```json\r\n{\n  \"status\": \"ok\",\n  \"error\": null,\n  \"data\": {\n    \"currency\": \"USD\",\n    \"price\": 97250.43,\n    \"marketCap\": 1928000000000,\n    \"volume24h\": 35420000000,\n    \"change24h\": -1.52,\n    \"lastUpdated\": \"2026-02-07T12:00:00.000Z\",\n    \"high24h\": 98750.21,\n    \"low24h\": 96125.88,\n    \"changeDirection\": \"down\",\n    \"formatted\": {\n      \"price\": \"$97,250.43\",\n      \"marketCap\": \"$1.93T\",\n      \"volume\": \"$35.42B\",\n      \"priceWords\": \"ninety-seven thousand two hundred fifty dollars\"\n    }\n  }\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## Updates\r\n\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms?utm_source=npm&utm_medium=readme), [Privacy Policy](https://apiverve.com/privacy?utm_source=npm&utm_medium=readme), and [Refund Policy](https://apiverve.com/refund?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2026 APIVerve, and EvlarSoft LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","readmeFilename":"README.md"}