@HamidBee
I also don't have experience making APIs.
Yes they are hosted, so might cost. Btw just google, but I am sure hosting api won't be free.
Though for my current project I learnt how to make mock APIs, but they are not even near making a real API. It's just a practice when the project is in POC or prototyping.