Go to Stores > Attributes > Product. Make sure:
"tags" attribute exists.
"Use in Search" and "Visible on Catalog Pages on Storefront" are set to Yes.
"Use in Product Listing" is enabled if you want it available in the API.