Satoshi

Satoshi · Acciones GPT

Spirit of Satoshi APIs on Apify

Fetches relevant context information.

  • GET /acts/spiritofsatoshi~halving-estimator/run-sync-get-dataset-items?clean=true&format=jsonEstimateNextHalving

    Retrieves estimated date of the next Bitcoin halving and time left until then.

  • GET /acts/spiritofsatoshi~bitcoin-treasuries-retriever/run-sync-get-dataset-items?clean=true&format=jsonGetBitcoinTreasuries

    Retrieves the list of entities (companies,funds, governments) with their known bitcoin holdings.

  • GET /acts/spiritofsatoshi~news-feed-retriever/run-sync-get-dataset-items?clean=true&format=jsonGetBitcoinNews

    Retrieves the latest news in the world of Bitcoin.

  • POST /acts/spiritofsatoshi~bitcoin-merchants-locator/run-sync-get-dataset-items?clean=true&format=jsonLocateBitcoinMerchants

    Retrieves the list of merchants accepting Bitcoin in a given location.

  • POST /acts/spiritofsatoshi~market-query-retriever/run-sync-get-dataset-items?clean=true&format=jsonQueryDailyBitcoinMarketMetrics

    Retrieves SQL query results from the daily market metrics table, which covers the following metrics: price (USD), market cap (USD), dominance (%), fear and greed index.

  • POST /acts/spiritofsatoshi~network-query-retriever/run-sync-get-dataset-items?clean=true&format=jsonQueryDailyBitcoinNetworkMetrics

    Retrieves SQL query results from the daily network metrics table, which covers the following metrics: fees per day (USD), fees per day (BTC), network difficulty (hash/sec), output per day (USD), output per transaction (USD), miner revenue (BTC), miner revenue from fees (%).

  • POST /acts/spiritofsatoshi~podcast-retriever/run-sync-get-dataset-items?clean=true&format=jsonRetrievePodcastEpisodes

    Retrieves a list of Bitcoin podcast episodes based on recency and topic.

Esquema original API
{
  "openapi": "3.0.1",
  "info": {
    "title": "Spirit of Satoshi APIs on Apify",
    "description": "Fetches relevant context information.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spiritofsatoshi~halving-estimator/run-sync-get-dataset-items?clean=true&format=json": {
      "get": {
        "operationId": "EstimateNextHalving",
        "description": "Retrieves estimated date of the next Bitcoin halving and time left until then.",
        "parameters": [],
        "deprecated": false
      }
    },
    "/acts/spiritofsatoshi~bitcoin-treasuries-retriever/run-sync-get-dataset-items?clean=true&format=json": {
      "get": {
        "operationId": "GetBitcoinTreasuries",
        "description": "Retrieves the list of entities (companies,funds, governments) with their known bitcoin holdings.",
        "parameters": [],
        "deprecated": false
      }
    },
    "/acts/spiritofsatoshi~news-feed-retriever/run-sync-get-dataset-items?clean=true&format=json": {
      "get": {
        "operationId": "GetBitcoinNews",
        "description": "Retrieves the latest news in the world of Bitcoin.",
        "parameters": [],
        "deprecated": false
      }
    },
    "/acts/spiritofsatoshi~bitcoin-merchants-locator/run-sync-get-dataset-items?clean=true&format=json": {
      "post": {
        "operationId": "LocateBitcoinMerchants",
        "description": "Retrieves the list of merchants accepting Bitcoin in a given location.",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/locatorSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/spiritofsatoshi~market-query-retriever/run-sync-get-dataset-items?clean=true&format=json": {
      "post": {
        "operationId": "QueryDailyBitcoinMarketMetrics",
        "description": "Retrieves SQL query results from the daily market metrics table, which covers the following metrics: price (USD), market cap (USD), dominance (%), fear and greed index.",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/marketDataQuerySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/spiritofsatoshi~network-query-retriever/run-sync-get-dataset-items?clean=true&format=json": {
      "post": {
        "operationId": "QueryDailyBitcoinNetworkMetrics",
        "description": "Retrieves SQL query results from the daily network metrics table, which covers the following metrics: fees per day (USD), fees per day (BTC), network difficulty (hash/sec), output per day (USD), output per transaction (USD), miner revenue (BTC), miner revenue from fees (%).",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/networkDataQuerySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/spiritofsatoshi~podcast-retriever/run-sync-get-dataset-items?clean=true&format=json": {
      "post": {
        "operationId": "RetrievePodcastEpisodes",
        "description": "Retrieves a list of Bitcoin podcast episodes based on recency and topic.",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/podcastQuerySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "locatorSchema": {
        "type": "object",
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Search location",
            "type": "string",
            "description": "The location to search for merchants accepting Bitcoin."
          },
          "category": {
            "title": "Type of location",
            "enum": [
              "atm",
              "food & beverage",
              "hotel"
            ],
            "type": "string",
            "description": "The type of location."
          }
        }
      },
      "networkDataQuerySchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "SQL query for historical Bitcoin network metrics",
            "type": "string",
            "description": "SQL query to run on the `daily_network_metrics` table which has the following columns: `date` (in YYYY-MM-DD format), `fees_per_day_btc`, `fees_per_day_usd`, `network_difficulty`, `output_per_day`, `output_per_transaction`, `miner_revenue_from_fees`, `block_height`, `miner_revenue`."
          }
        }
      },
      "marketDataQuerySchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "SQL query for historical Bitcoin market metrics",
            "type": "string",
            "description": "SQL query to run on the `daily_market_metrics` table which has the following columns: `date` (in YYYY-MM-DD format), `price`, `marketcap`, `dominance`, `fear_and_greed_index`."
          }
        }
      },
      "podcastQuerySchema": {
        "type": "object",
        "required": [
          "time_horizon",
          "search_string"
        ],
        "properties": {
          "time_horizon": {
            "title": "Time horizon",
            "enum": [
              "latest",
              "recent",
              "full history"
            ],
            "type": "string",
            "description": "Time horizon for the search (`latest` = last 7 days, `recent` = last 6 months, `full history` = no limit)."
          },
          "search_string": {
            "title": "Search string",
            "type": "string",
            "description": "Search string to select relevant episodes (e.g. topic, podcast name)."
          }
        }
      }
    }
  }
}

Mempool.space APIs

Retrieves Bitcoin on-chain data

  • GET /v1/mining/blocks/fee-rates/24hGetBlockFeeRates

    Get Bitcoin block feerates for the last 24h

  • GET /blocks/tip/heightGetBlockHeight

    Get latest block height

  • GET /v1/fees/recommendedGetRecommendedFees

    Get recommmended fees for different expected confirmation times

  • GET /v1/mining/hashrate/3dGetHashrateAndDifficulty

    Get current hashrate and network difficulty

  • GET /v1/lightning/statistics/latestGetLightningStats

    Get Lightning network statistics (channel capacity is in sats)

  • GET /tx/{txid}GetTransactionDetails

    Get all the details of a transaction from its ID

  • GET /tx/{txid}/statusGetTransactionStatus

    Get the status of a transaction from its ID

  • GET /address/{address}GetAddressInformation

    Get information about a Bitcoin address

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mempool.space APIs",
    "description": "Retrieves Bitcoin on-chain data",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://mempool.space/api"
    }
  ],
  "paths": {
    "/v1/mining/blocks/fee-rates/24h": {
      "get": {
        "description": "Get Bitcoin block feerates for the last 24h",
        "operationId": "GetBlockFeeRates",
        "parameters": [],
        "deprecated": false
      }
    },
    "/blocks/tip/height": {
      "get": {
        "description": "Get latest block height",
        "operationId": "GetBlockHeight",
        "parameters": [],
        "deprecated": false
      }
    },
    "/v1/fees/recommended": {
      "get": {
        "description": "Get recommmended fees for different expected confirmation times",
        "operationId": "GetRecommendedFees",
        "parameters": [],
        "deprecated": false
      }
    },
    "/v1/mining/hashrate/3d": {
      "get": {
        "description": "Get current hashrate and network difficulty",
        "operationId": "GetHashrateAndDifficulty",
        "parameters": [],
        "deprecated": false
      }
    },
    "/v1/lightning/statistics/latest": {
      "get": {
        "description": "Get Lightning network statistics (channel capacity is in sats)",
        "operationId": "GetLightningStats",
        "parameters": [],
        "deprecated": false
      }
    },
    "/tx/{txid}": {
      "get": {
        "description": "Get all the details of a transaction from its ID",
        "operationId": "GetTransactionDetails",
        "parameters": [
          {
            "name": "txid",
            "in": "path",
            "required": true,
            "description": "ID of the transaction",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/tx/{txid}/status": {
      "get": {
        "description": "Get the status of a transaction from its ID",
        "operationId": "GetTransactionStatus",
        "parameters": [
          {
            "name": "txid",
            "in": "path",
            "required": true,
            "description": "ID of the transaction",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/address/{address}": {
      "get": {
        "description": "Get information about a Bitcoin address",
        "operationId": "GetAddressInformation",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Bitcoin address",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Spirit of Satoshi RAG API

Fetches relevant context information on Bitcoin-related topics.

  • POST /query-nakamoto-namespaceQueryKnowledgeBase

    Retrieves relevant contents from the Nakamoto knowledge base.

Esquema original API
{
  "openapi": "3.0.1",
  "info": {
    "title": "Spirit of Satoshi RAG API",
    "description": "Fetches relevant context information on Bitcoin-related topics.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://rag.spiritofsatoshi.ai"
    }
  ],
  "paths": {
    "/query-nakamoto-namespace": {
      "post": {
        "operationId": "QueryKnowledgeBase",
        "description": "Retrieves relevant contents from the Nakamoto knowledge base.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ragSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ragSchema": {
        "type": "object",
        "required": [
          "query_str"
        ],
        "properties": {
          "query_str": {
            "title": "Query string",
            "type": "string",
            "description": "The query string you want to search the vector store with."
          }
        }
      }
    }
  }
}

Bitfinex market data.

Retrieves market data from the Bitfinex crypto exchange.

  • GET /stats1/vwap:1d:tBTCUSD/lastGetBTCUSDPrice

    Gets the latest BTC price (BTCUSD 1-day VWAP)

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Bitfinex market data.",
    "description": "Retrieves market data from the Bitfinex crypto exchange.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api-pub.bitfinex.com/v2"
    }
  ],
  "paths": {
    "/stats1/vwap:1d:tBTCUSD/last": {
      "get": {
        "description": "Gets the latest BTC price (BTCUSD 1-day VWAP)",
        "operationId": "GetBTCUSDPrice",
        "parameters": [],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}