Different .id for API and Terminal.

This may be a silly beginner question and i cant seem to find the answer online. So why “.id” when taken from API sometimes is different from Terminal?

For example :
API : *100000B
Terminal : 8

I get it if the API show “*8”, but why instead “*100000B”?