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.
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.US
to get data about the United States only.{
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
},
...
]
}
{
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
},
...
]
}
{
ok: true,
error: null,
quota: 12057,
stories: [
{
text: "Have used Capital...",
upOrDown: "up",
created: 1521684200
},
{
text: "I have moved money...",
upOrDown: null,
created: 1519466435
}
]
}
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.