Here's the timetable of the trains from Bari and Brindisi to Monopoli. For prizes and info, we suggest you to visit this website: http://www.ferrovie.it.