Documentation for the Hyperliquid public API: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api
You can also use the API via the Hyperliquid Python SDK: https://github.com/hyperliquid-dex/hyperliquid-python-sdk
There is also a Rust SDK (although it is less maintained): https://github.com/hyperliquid-dex/hyperliquid-rust-sdk
a Typescript SDK written by a member of the community: https://github.com/nomeida/hyperliquid
CCXT also maintains integrations in multiple languages that conforms with the standard CCXT API: https://docs.ccxt.com/#/exchanges/hyperliquid
All example API calls use the Mainnet url (https://api.hyperliquid.xyz), but you can make the same requests against Testnet using the corresponding url (https://api.hyperliquid-testnet.xyz)