Or are you kidding?
Minecraft costs money. Different on each device.
If it says it's free, it's a crazy or cracked version. Better keep your hands off it before catching any viruses.
And where can I buy the best that I have the right version?
Always in the associated shop pages of the official manufacturer.
On the PC this would be under: https://www.minecraft.net/...net/en-us/
In Playstation, Xbox, Switch, etc. In the respective console stores.
Thank you