Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Many Coins on March 14, 2025, 07:13:40 PM



Title: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: Many Coins on March 14, 2025, 07:13:40 PM
Guys, hello!

We have a zoo of miners in our project, but we've only managed to find API documentation for WhatsMiner models.

We also have various Antminer models: L9, S19, T21, etc.

And, surprisingly, I haven't been able to find documentation for controlling them via API.


Our goal is to establish centralized management and monitoring.

Whoever gives good advice is a star! :)


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: tightcable on March 14, 2025, 08:04:25 PM
What firmware do you have installed on them?


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: Many Coins on March 15, 2025, 07:30:20 AM
What firmware do you have installed on them?

Native firmware, I think.

We dont change firmware.

Is it possible to do with native firmware? It's critical for my case?

That is our Antminer models:

Antminer E9       
Antminer K7       
Antminer KA3       
Antminer KS5       
Antminer KS5 Pro       
Antminer L7       
Antminer L9       
Antminer S19       
Antminer S19 Pro       
Antminer S19 XP       
Antminer S19j       
Antminer S19j Pro       
Antminer S19k Pro       
Antminer S21       
Antminer S21 Pro       
Antminer T19       
Antminer T21       
Antminer Z15 Pro

(list is'nt complete)


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: Many Coins on March 17, 2025, 07:46:56 AM
Is it true that there's absolutely no documentation available anywhere for the Antminer S19 API?

Hey guys! I've encountered an incredibly strange situation:

it seems that there's no public documentation for the API of Antminer S19 with stock firmware - I'm shocked and refuse to believe it.

Tell me, is this true or not?


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: tightcable on March 17, 2025, 03:33:45 PM
Cgminer RPC API is a good place to start (https://github.com/bitmaintech/Antminer_firmware/blob/master/sources/meta-antminer/recipes-bitmianer/cgminer/cgminer-1.0/cgminer-3.12.0_bak/API-README). Luxos has some pretty good docs on the Cgminer API as well (https://docs.luxor.tech/firmware/api/intro).

Custom firmware would help, but it may be tough to find one for some of your less popular Antminer models.

If you have someone with engineering experience it may be possible to reverse engineer the APIs used for the firmware's local UI dashboards.


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: NotFuzzyWarm on March 17, 2025, 11:43:05 PM
I take it you have never looked at the official cgminer docs in Kano's git (https://github.com/kanoi/cgminer/blob/master/API-README)? FYI - Kano is the cgminer dev who wrote the API for it and is the sole remaining active original developer for cgminer (-ck abandoned it well over 5 years ago). You will also find all other up-to-date code and docs there.

Don't know if Bitmain has added any new model-specific API calls for the S19's on up to be used with their (hacked) version of cgminer but Kano's API readme is a good place to start and does work with the S19 & S21 chips when using the official cgminer available in Kano's git.


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: mikeywith on March 18, 2025, 01:30:08 AM
You could use one of the various APIs posted by the above users, or find some maintained projects like https://github.com/anselal/antminer-monitor/tree/master/config, nothing much has changed since in regards to Antminer API, it's Cgminer that people keep forking, you can either use WebSocket or SSH to control and retrieve various data from your miners, the newer models probably have updated some the things and thus it would require some work to figure out the new features if any.

With that being said, there is really no economic incentive in doing so, for monitoring your miners, there exists free software like BTC tools  https://github.com/Sanberstav/BTCTools

For complete management (100% fully automated), there will be a lot of work involved, I would suggest using things like https://www.awesomeminer.com/signup, the base cost is $2/miner a month, and it gets cheaper the more gears you add, if you have 100 gear you will pay $1.4 / month, to develop something remotely close to awesome miner you will spend many years and tens if not hundreds of thousands of dollars, trust me, been there done that, I have a great experience in programming, spent a few months during my free time playing with different gears, but then eventually when I used AM, I was like WTF was I even doing.  :D


Title: Re: Does anyone know where to find the API documentation for Antminer S19 etc?
Post by: NotFuzzyWarm on March 19, 2025, 09:08:13 PM
Since you also are running altcoin miners using AM would make even more sense as it has coin profits automation to switch them between different coins depending on profitability or other rules you make.

Awesome Miner is of course here in the Forum (https://bitcointalk.org/index.php?topic=676942.msg7668661#msg7668661)