Is it possible with an API to create spot co-ordinates of the postions of certain families

For example to select all piling and tag those with the correct x and y co-ordinates

I cant believe this is not availble within the basic Revit platform and was wonderign if the API exposes this information ?