Would you like to use existing SW and its rest API or are you planning to write your own Python code which gives out the cell ID location?

Anyway first check that you have enabled network based...