{"id":21440693,"url":"https://github.com/sdediego/blockchain-api-client","last_synced_at":"2026-05-19T00:35:44.956Z","repository":{"id":98953256,"uuid":"125724149","full_name":"sdediego/blockchain-api-client","owner":"sdediego","description":"Bitcoin blockchain API client module","archived":false,"fork":false,"pushed_at":"2018-11-08T20:58:09.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T00:34:41.590Z","etag":null,"topics":["api-client","bitcoin","bitcoin-market","bitcoin-pools","blockchain","blockchain-analytics","blockchain-api","cryptocurrency","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdediego.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-03-18T12:46:56.000Z","updated_at":"2021-05-01T06:27:19.000Z","dependencies_parsed_at":"2023-03-24T13:31:59.550Z","dependency_job_id":null,"html_url":"https://github.com/sdediego/blockchain-api-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdediego/blockchain-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdediego","download_url":"https://codeload.github.com/sdediego/blockchain-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33196186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-client","bitcoin","bitcoin-market","bitcoin-pools","blockchain","blockchain-analytics","blockchain-api","cryptocurrency","python"],"created_at":"2024-11-23T01:17:43.763Z","updated_at":"2026-05-19T00:35:44.951Z","avatar_url":"https://github.com/sdediego.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blockchain-api-client\n\nPowered by [![Blockchain]()](https://blockchain.info/api)\n\nClient written in Python 3 for Blockchain API service:\n\n### Features\n\n  - Get Bitcoin blockchain charts data\n  - Get Bitcoin blockchain statistical data\n  - Get Bitcoin mining pools data\n\nYou can also:\n\n  - Persist data via JSON format file pipeline\n  - Persist data via [MongoDB][mongoDB] pipeline\n  - Persist data via [PostgreSQL][postgreSQL] pipeline\n  - Automatize data fetching with jobs scheduler\n  - Deploy to [Heroku cloud platform][heroku]\n\n### Getting Started\n\nThese instructions will get you a copy of the project on your local system.\n\n#### Prerequisites\n\nBlockchain API Client uses a number of open source projects to work properly:\n\n* [apscheduler] - Advanced Python Scheduler\n* [configparser] - Configuration file parser\n* [psycopg2] - PostgreSQL adapter fo Python\n* [pymongo] - Python driver for MongoDB\n* [python-dotenv] - .env file management\n* [requests] - HTTP for Humans\n\nAnd of course Blockchain API Client itself is open source with a [public repository][blockchain-api-client] on GitHub.\n\n#### Installation\n\n#### Quick Start\n\nA step by step series of examples:\n\nGet historical price for Bitcoin in json format\n```python\nfrom blockchain.api import BlockchainAPIClient\napi = BlockchainAPIClient('charts')\nresponse = api.call(chart='market-price', timespan='all')\n```\n\nGet market capitalization for Bitcoin in json format\n```python\nfrom blockchain.api import BlockchainAPIClient\napi = BlockchainAPIClient('charts')\nresponse = api.call(chart='market-cap', timespan='all')\n```\n\nGet Bitcoin blockchain statistics in json format\n```python\nfrom blockchain.api import BlockchainAPIClient\napi = BlockchainAPIClient('stats')\nresponse = api.call()\n```\n\nGet Bitcoin minig pools info in json format\n```python\nfrom blockchain.api import BlockchainAPIClient\napi = BlockchainAPIClient('pools')\nresponse = api.call(timespan='5days')\n```\n\nPersist data in JSON file\n```python\nfrom blockchain.pipelines import JSONFileWriterPipeline\nfile = JSONFileWriterPipeline.config()\nfile.write(response)\n```\n\nPersist (save/update) data with MongoDB\n```python\nfrom blockchain.pipelines import MongoDBPipeline\nmongo = MongoDBPipeline.config()\nmongo.open_connection()\nmongo.persist_data(response)\nmongo.close_connection()\n```\n\nFor a complete description of available parameters please check [Blockchain API documentation][official docs]\n\nLicense\n----\n\nMIT\n\n\n**Free Software, Hell Yeah!**\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.)\n\n[apscheduler]: \u003chttps://github.com/agronholm/apscheduler\u003e\n[blockchain-api-client]: \u003chttps://github.com/sdediego/blockchain-api-client\u003e\n[configparser]: \u003chttps://github.com/python/cpython/blob/3.5/Lib/configparser.py\u003e\n[heroku]: \u003chttps://www.heroku.com\u003e\n[mongoDB]: \u003chttps://www.mongodb.com\u003e\n[postgreSQL]: \u003chttps://www.postgresql.org/\u003e\n[psycopg2]: \u003chttp://initd.org/psycopg/\u003e\n[pymongo]: \u003chttps://github.com/mongodb/mongo-python-driver\u003e\n[python-dotenv]: \u003chttps://github.com/theskumar/python-dotenv\u003e\n[requests]: \u003chttps://github.com/requests/requests\u003e\n[official docs]: \u003chttps://blockchain.info/api/charts_api\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdediego%2Fblockchain-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdediego%2Fblockchain-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdediego%2Fblockchain-api-client/lists"}