How to use API to add points?

I want to add points on OSM using API. Is it possible? If it does, can you give me an example?

For example if i want to add this point

name: Musen & Elefanten
city: Gotham City
address: Vestergade 21
longitude: 12.5699
latitude: 55.6774
category: pub

i can add it using OSM website… how to do the same through API?

crossposting: https://help.openstreetmap.org/questions/37258/how-to-use-api-to-add-points-to-osm

You should first start to learn something about Tags :wink: