Moon Banking
Crypto friendly bank rankings
APIAdvertise
API

Getting started

Use Moon Banking data in your products and services with our API.

Requests to the API are prepaid through the Lightning Network . Each request costs $0.0001 USD ($1 per 10,000 requests).

To get access to the API, choose how much quota you want, and make a Bitcoin payment through the Lightning Network.

You may check your quota and add quota to your API key anytime.

Methods

All requests must include a x-api-key key and value in the header with your API key.

All requests should be made to the Moon Banking API endpoint at https://api.moonbanking.com/v1.

Every reqeust returns the following:

  • ok - Returns true if the request was processed successfully, false if not.
  • error - Returns an error message if an error occured. Returns null otherwise.
  • quota - Returns the number of requests remaining in your quota.
Countries
  • Endpoint: /countries
  • Method: GET
  • Optional parameters:
    • (string) countryCode - Return data about a single country with the country's two-letter country code. For example, provide US to get data about the United States only.
  • Examples:
    • https://api.moonbanking.com/v1/countries
    • https://api.moonbanking.com/v1/countries?countryCode=US
  • Sample response:
    {
      ok: true,
      error: null,
      quota: 12057,
      countries: [
        {
          countryCode: "US",
          name: "United States",
          up: 1006,
          down: 939,
          score: 4
        },
        {
          countryCode: "NZ",
          name: "New Zealand",
          up: 22,
          down: 98,
          score: -62
        },
        ...
      ]
    }
Banks
  • Endpoint: /banks
  • Method: GET
  • Required parameters:
    • (string) countryCode - Return data about banks in a particular country with the country's two-letter country code.
  • Optional parameters:
    • (string) bankKey - Return data about a single bank with the bank's bankKey. Get a bank's bankKey by first getting all banks for a particular country.
  • Examples:
    • https://api.moonbanking.com/v1/banks?countryCode=US
    • https://api.moonbanking.com/v1/banks?countryCode=US&bankKey=q9fzlQpyYHHm8yf
  • Sample response:
    {
      ok: true,
      error: null,
      quota: 12057,
      banks: [
        {
          bankKey: "q9fzlQpyYHHm8yf",
          name: "Capital One",
          up: 21,
          down: 46,
          score: -36
        },
        {
          bankKey: "6jkxE4N8gHXgDPK",
          name: "Fidelity",
          up: 39,
          down: 12,
          score: 54
        },
        ...
      ]
    }
Stories
  • Endpoint: /stories
  • Method: GET
  • Required parameters:
    • (string) bankKey - Return stories about a bank with the bank's bankKey. Get a bank's bankKey by first getting all banks for a particular country.
  • Examples:
    • https://api.moonbanking.com/v1/stories?bankKey=q9fzlQpyYHHm8yf
  • Sample response:
    {
      ok: true,
      error: null,
      quota: 12057,
      stories: [
        {
          text: "Have used Capital...",
          upOrDown: "up",
          created: 1521684200
        },
        {
          text: "I have moved money...",
          upOrDown: null,
          created: 1519466435
        }
      ]
    }

Lost API key

Did you lose your API key after you paid for quota through the Lightning Network? No problem.

In the description (or memo) of the Lightning Network invoice you paid, you will find an "orderNumber" field. It looks like this:

"orderNumber": "fjdDjsi30Awq3nf"

Enter your orderNumber below to retrieve your API key.

It costs a small fortune to run Moon Banking. Help out!
BTC: 36oXkwJTfm1QFBRU6yxAMSadYM6YN9b7tv
ETH: 0x95e45946663f69A28b7B2D8AeA248E55896fDbC7
XMR: Show QR code
public address:
Moon Banking
© 2018-2019 Ealdorman, Inc.
About  |  Terms  |  Privacy
  |  Contact support