Not all towns allow pet miniature pigs. Please check your zoning, if you are zoned and can answer YES, please move on. If you answer NO, please don't buy a pig. How do you check your zoning? Call your local code enforcement office.
Your grown pig is going to be about 13-16" tall. There is no tiny pig that stays tiny. Those are scams. Approximately like an old English bull dog, they are short but dense. They are going to be 50 pounds and some can be up to 75 pounds or slightly bigger. IF you don't have space for a dog the size of an English Bulldog, please rething a getting a pig. A farm hog is 750-1000 pounds, these are miniature pigs, not micro, teacup or pocket pigs.
Like a small to mid size dog, with good healthcare and nutrition your piggy will live a long happy life. Can you commit this long? They are emotional and get depressed when they lose their owners.
A pig needs to eat pig food and fresh veggies, they need room to run. They do best outdoor or indoor/outdoor. A full time inside pig is an unhappy pig.
Like a dog, your pig should visit your vet once a year. Your vet will make the best choice on vaccines. Run Fecals and offer sound medical advice. If you don't want to trim your pigs hooves, they can help. If you don't want to deworm your pig, they will help. You should arrange a vet early on, the time to find a vet is NOT when you have an emergency.
Do you have a dog? They are going to be very curious about your pig. If you have a high prey driven dog, you may want to reconsider a pig. A pig is a prey animal and a dog is a predator. They should always be supervised.