{"id":47557273,"url":"https://github.com/Bortlesboat/bitcoin-api","last_synced_at":"2026-04-13T05:01:32.292Z","repository":{"id":342391839,"uuid":"1173752310","full_name":"Bortlesboat/bitcoin-api","owner":"Bortlesboat","description":"Bitcoin fee intelligence API — stop overpaying fees. 108 endpoints, 725 tests, self-hostable, Apache 2.0. Live at bitcoinsapi.com.","archived":false,"fork":false,"pushed_at":"2026-04-01T20:37:47.000Z","size":3066,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-04T13:49:23.114Z","etag":null,"topics":["ai","ai-agents","bitcoin","bitcoin-api","bitcoin-core","bitcoin-node","cryptocurrency","docker","fastapi","fee-estimation","llm","mcp","mcp-server","mempool","model-context-protocol","python","rest-api","rpc","self-hosted"],"latest_commit_sha":null,"homepage":"https://bitcoinsapi.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bortlesboat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"Bortlesboat","custom":["https://opensats.org/projects/satoshi-api","https://bitcoinsapi.com"]}},"created_at":"2026-03-05T17:58:40.000Z","updated_at":"2026-04-01T20:37:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Bortlesboat/bitcoin-api","commit_stats":null,"previous_names":["bortlesboat/bitcoin-api"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Bortlesboat/bitcoin-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bortlesboat%2Fbitcoin-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bortlesboat%2Fbitcoin-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bortlesboat%2Fbitcoin-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bortlesboat%2Fbitcoin-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bortlesboat","download_url":"https://codeload.github.com/Bortlesboat/bitcoin-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bortlesboat%2Fbitcoin-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31740266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"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":["ai","ai-agents","bitcoin","bitcoin-api","bitcoin-core","bitcoin-node","cryptocurrency","docker","fastapi","fee-estimation","llm","mcp","mcp-server","mempool","model-context-protocol","python","rest-api","rpc","self-hosted"],"created_at":"2026-03-29T12:00:36.114Z","updated_at":"2026-04-13T05:01:32.009Z","avatar_url":"https://github.com/Bortlesboat.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n![Satoshi API](static/satoshi-api-logo.png)\n\n# Satoshi API\n\n**Stop overpaying Bitcoin fees. Know when to send.**\n\n[![CI](https://github.com/Bortlesboat/bitcoin-api/actions/workflows/ci.yml/badge.svg)](https://github.com/Bortlesboat/bitcoin-api/actions/workflows/ci.yml)\n[![PyPI](https://img.shields.io/pypi/v/satoshi-api?color=orange)](https://pypi.org/project/satoshi-api/)\n[![Downloads](https://img.shields.io/pypi/dm/satoshi-api)](https://pypi.org/project/satoshi-api/)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n[![Live API](https://img.shields.io/badge/live-bitcoinsapi.com-f7931a)](https://bitcoinsapi.com)\n[![OpenSats](https://img.shields.io/badge/Support-OpenSats-f7931a)](https://opensats.org)\n\n[Live Playground](https://bitcoinsapi.com/docs) \u0026middot; [Landing Page](https://bitcoinsapi.com) \u0026middot; [PyPI](https://pypi.org/project/satoshi-api/) \u0026middot; [MCP Server](https://github.com/Bortlesboat/bitcoin-mcp) \u0026middot; [Discord Bot](https://github.com/Bortlesboat/satoshi-discord-bot)\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**725 tests** · **~115 endpoints** · **28 routers** · **Live at [bitcoinsapi.com](https://bitcoinsapi.com)** · **Apache 2.0**\n\n\u003c/div\u003e\n\n---\n\nBad fee timing burns sats on every Bitcoin transaction. Satoshi API tells you when to send, what to pay, and whether to wait — combining multiple `estimatesmartfee` targets with real-time mempool state. Instead of just \"4 sat/vB\", you get \"Fees are low. Good time to send.\" One `pip install`, self-hostable, open source.\n\n## Install \u0026 Run\n\n```bash\npip install satoshi-api\nexport BITCOIN_RPC_USER=your_user BITCOIN_RPC_PASSWORD=your_password\nsatoshi-api\n# API:  http://localhost:9332\n# Docs: http://localhost:9332/docs\n```\n\n## Example\n\n```bash\ncurl http://localhost:9332/api/v1/fees/recommended | jq\n```\n\n```json\n{\n  \"data\": {\n    \"recommendation\": \"Fees are low. Good time to send.\",\n    \"estimates\": { \"high\": 4, \"medium\": 2, \"low\": 1 }\n  },\n  \"meta\": { \"timestamp\": \"...\", \"node_height\": 939462, \"chain\": \"main\" }\n}\n```\n\n## Core Endpoints\n\n| Category | Endpoints | Highlights |\n|----------|-----------|------------|\n| **Blocks** | 8 | Latest block, by height/hash, stats, txids, header |\n| **Transactions** | 7 | Decoded analysis, status, outspends, UTXO lookup, broadcast |\n| **Fees** | 7 | Recommendations, landscape (\"send now or wait?\"), history, mempool-blocks |\n| **Mempool** | 5 | Congestion score, fee buckets, recent entries |\n| **Mining** | 2 | Hashrate, difficulty, next block template |\n| **Network** | 4 | Peers, forks, difficulty, address validation |\n| **Streams** | 2 | Real-time blocks \u0026 fees via SSE |\n\n...and more (prices, address lookups, exchange comparison). [Full interactive docs at `/docs`](https://bitcoinsapi.com/docs).\n\n## For AI Agents\n\n**[bitcoin-mcp](https://github.com/Bortlesboat/bitcoin-mcp)** — the first Bitcoin MCP server on the official Anthropic MCP Registry — lets AI agents check fees, verify payments, and monitor addresses without human babysitting. Saves developer time: no custom Bitcoin plumbing needed.\n\n```bash\n# Install and point at your Satoshi API instance\npip install bitcoin-mcp\nSATOSHI_API_URL=https://bitcoinsapi.com bitcoin-mcp\n```\n\nOr connect to a local node directly:\n\n```json\n{\n  \"mcpServers\": {\n    \"bitcoin\": { \"command\": \"bitcoin-mcp\" }\n  }\n}\n```\n\n## Self-Hosting\n\n```bash\npip install satoshi-api\nsatoshi-api  # runs on :9332\n\n# Expose publicly (free HTTPS + DDoS protection)\ncloudflared tunnel --url http://localhost:9332\n```\n\nSee [self-hosting guide](docs/self-hosting.md) for full production setup.\n\n## Contributing\n\nIssues and PRs welcome. Run the test suite before submitting:\n\n```bash\npip install -e \".[dev]\"\npytest\n```\n\n## Roadmap\n\nSee [docs/ROADMAP.md](docs/ROADMAP.md) for the 12-month development plan — indexer expansion, multi-network support, fee prediction, SDKs, and more.\n\n## Support This Project\n\nSatoshi API is free, open-source Bitcoin infrastructure. If you find it useful, consider supporting development through [OpenSats](https://opensats.org).\n\n## Related Projects\n\n- [bitcoin-mcp](https://github.com/Bortlesboat/bitcoin-mcp) — MCP server with 49 Bitcoin tools for AI agents\n- [ChainPulse](https://github.com/Bortlesboat/chainpulse) — AI-powered Bitcoin network intelligence CLI\n- [BAIP-1](https://github.com/Bortlesboat/baip-python) — Bitcoin Agent Identity Protocol\n\n## License\n\nApache 2.0 — see [LICENSE](LICENSE).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**[Live API](https://bitcoinsapi.com/docs)** \u0026middot; **[Website](https://bitcoinsapi.com)** \u0026middot; **[PyPI](https://pypi.org/project/satoshi-api/)** \u0026middot; **[MCP Server](https://github.com/Bortlesboat/bitcoin-mcp)** \u0026middot; **[Roadmap](docs/ROADMAP.md)**\n\nBuilt by a [Bitcoin Core contributor](https://github.com/Bortlesboat). **902 tests** across the ecosystem.\n\n\u003c/div\u003e\n","funding_links":["https://github.com/sponsors/Bortlesboat","https://opensats.org/projects/satoshi-api","https://bitcoinsapi.com"],"categories":["Data Sources"],"sub_categories":["Arbitrage"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBortlesboat%2Fbitcoin-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBortlesboat%2Fbitcoin-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBortlesboat%2Fbitcoin-api/lists"}