As the title says, I have the numerical Site ID, I need a way to get the corresponding GlobalId.
I know there are tables with matches
https://developer.ebay.com/DevZone/merchandising/docs/CallRef/Enums/GlobalIdList.html
https://developer.ebay.com/DevZone/merchandising/docs/Concepts/SiteIDToGlobalID.html
but I need a programmatic way to do it.
Your three options:
Hash Map implementation
SQL Table implementation
Kimono implementation
If you don't want to have local storage for the Site ID <=> Global ID mappings, as mentioned in the techcrunch article, "Kimono Is A Smarter Web Scraper That Lets You “API-ify” The Web, No Code Required,":
As Kimono's website goes onto mention: