After submitting the request, the F2Pool API server will return the data with the following fields, in JSON format.
Field | Description |
---|---|
balance |
Unpaid balance |
paid |
Paid balance |
payout_history |
Payouts history |
value |
Total revenue |
value_last_day |
Revenue of last 24 hours |
stale_hashes_rejected_last_day |
Stale rejected hashes of last 24 hours |
hashes_last_day |
Hashes of last 24 hours |
hashrate |
Current hashrate |
hashrate_history |
Hashes history of last 24 hours |
worker_length |
Workers quantity |
worker_length_online |
Online workers quantity |
List Field | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
workers |
Workers data (List) | ||||||||||||||||||||||||
|
|||||||||||||||||||||||||
value_workers |
Historical income (Dictionary) | ||||||||||||||||||||||||
|
Access the API from https://api.f2pool.com via HTTP, and view the data in JSON format, as below:
curl https://api.f2pool.com/bitcoin/user
{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
"value": 0.000045036645168645,
"stale_hashes_rejected_last_day": 0,
"workers": [["minerx01", 12650560751040, 0, 0, 1084452716521979904, 2533274790395904, "2018-06-19T10:02:19.810789Z", false]],
"value_workers": {"08ddb9f4552c": 4.211575399188521691, "018": 4.211575399188521691},
"value_last_day": 0,
"hashrate_history": {
"2017-12-21T11:40:00Z": 0
},
"stale_hashes_rejected_last_hour": 0,
"paid": 0,
"hashes_last_hour": 0,
"worker_length_online": 0,
"payout_history": [["2017-11-01T00:00:00Z", "8f8fba3134ce15e9b0001e67cba93c4a2250445310b5cdada1ac676b5a19b8b9", 1.010047060000000000000000]],
"worker_length": 0,
"hashrate": 0
}
Requesting user data in different currencies requires accessing the server through a different URL. Currently, you can get data in the following currencies:
BTC - Bitcoin
https://api.f2pool.com/bitcoin/user
BCH - Bitcoin Cash
https://api.f2pool.com/bitcoin-cash/user
LTC - Litecoin
https://api.f2pool.com/litecoin/user
ETC - Ethereum Classic
https://api.f2pool.com/ethereum-classic/user
ETHW - ethw
https://api.f2pool.com/ethereumpow/user
ZEC - Zcash
https://api.f2pool.com/zec/user
ZEN - Horizen
https://api.f2pool.com/zen/user
DASH - Dash
https://api.f2pool.com/dash/user
HNS - Handshake
https://api.f2pool.com/handshake/user
KDA - Kadena
https://api.f2pool.com/kadena/user
CKB - Nervos CKB
https://api.f2pool.com/nervos/user
RVN - Ravencoin( Username )
https://api.f2pool.com/raven/user
CFX - Conflux
https://api.f2pool.com/conflux/user
ALEO TESTNET3 - Aleo Testnet3
https://api.f2pool.com/aleo-test3/user
ALEO STAGING - Aleo staging
https://api.f2pool.com/aleo-staging/user
ALEO - Aleo
https://api.f2pool.com/aleo/user
ETC+ZIL - etc+zil
https://api.f2pool.com/etc-zil/user
KAS - Kaspa
https://api.f2pool.com/kaspa/user
IRON - Iron Fish
https://api.f2pool.com/ironfish/user
SPACE - MicroVisionChain
https://api.f2pool.com/microvisionchain/user
NEXA - Nexa
https://api.f2pool.com/nexa/user
ALPH - Alph
https://api.f2pool.com/alephium/user
FB - Fractal Bitcoin
https://api.f2pool.com/fractal-bitcoin/user
SC - Siacoin
https://api.f2pool.com/siacoin-new/address
RVN - Ravencoin( Address )
https://api.f2pool.com/ravenp/address
ZIL - zil
https://api.f2pool.com/zilliqa-etc-zil/address
ETC - etc
https://api.f2pool.com/zilliqa-etc/address
An error message 404: Not Found
will be displayed when any currencies other than those listed above have been requested from the F2Pool API server, or where the parameter user/address is illegal. Please note: Anyone who has delivered frequent, repeated malicious requests to the F2Pool API server will be blacklisted or receive an error message 503: GateWay Timeout
.
Single user request:
https://api.f2pool.com/{currency}/{user}
Response:
{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
}
F2Pool API allows requesting for detailed data of a single user
or of multiple users
at one time. Below is the URL for requesting for multiple users’ data:
Multiple users request:
https://api.f2pool.com/{currency}/{user1}?multi_account={user1}&multi_account={user2}
Response:
{
user1:{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
},
user2:{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
}
}
Please note: When a one-time query of multi-user data is requested, the parameters in URL: {currency}, to which a legal currency account (or a legal address of an anonymous currency) shall be appended, otherwise the system will return: 404: Not Found
.
Historical miner hashrate data request:
https://api.f2pool.com/{currency}/{user}/{worker_name}
Response:
{
"hashrate_history": {
"2017-12-21T18:50:00Z": 22906492245,
"2017-12-21T19:00:00Z": 16950804262,
"2017-12-21T19:10:00Z": 20157713176,
...
}
}