Access Validator Stake Data

Is there a way to determine the Total SUI staked for a given validator?

I have been experimenting with the suix_getStakes RPC method but I’m not sure how to interpret those results.

The numbers do not correspond to the “Total Sui Staked” as shown on the explorer (for example: Sui Explorer).

Ideally, I’d like to get total SUI staked for a given validator, broken down by validator and delegator stake.

How does the Sui explorer get this data?

Thanks in advance…