There are many flights from big International Airports Indonesia to the EU, US.
For Latam do you mean Peruvian airlines or you want to travel to Peru using Latam Airlines.
The big International Airports in Indonesia that could accomodate Jumbo Jets needed for a long haul are Sukarno Hatta (CGK), Denpasar Bali (DPS), and Surabaya (SUB)
To find the best and least expensive options is to search them using the flight search engines:
A few to name:
https://www.skyscanner.net (this is the best imho)
KAYAK is a travel search engine that searches hundreds of other travel sites at once. Our helpful tools & features find you the information you need to make the right decisions on flights, hotels, car hires and holiday packages.
www.kayak.co.uk
The best flight to one destination does not necessarily mean the cheapest option. You will also need to consider the whole duration time, transit time, your luggae allowances, etc. You might find the cheapest one but it could happen you will will need a transit time of 6-9 hours, or it could also happen an overnight in another country.