Possible to get license id in Java API like web limelm.pkey.getID?

Possible to get license id in Java API that is available in webAPI "limelm.pkey.getID"?

Nope. Just use the product key. The product key ID is useless for the end user and should not be trusted for any operation. Use the product key. Get it using ta.GetPKey().

Then, on your backend, you can convert the pkey to a pkey id by using the web api.

Never use the web API from within your app. If you do you will be giving everyone access to your LimeLM account.