schema.orgstructured-data

Text value for Schema.org "price" property?


I'm working on a piece of structured data, in JSON-LD format (should it matter).

While looking through the price property page of Schema.org, I saw that you can also add text as price value. However, it doesn't seem to be documented anywhere what texts are allowed.

Does anyone know what texts are allowed?

I've tried to fill in random texts while using the Structured Data Testing Tool, but that gave an error that it didn't get recognised.


Solution

  • Schema.org doesn’t restrict (nor document/recommend) what kind of Text value the price property can have.

    Most prices will have a Number value, and unless you have a good reason not to use it, you should go with Number, too, following their "Usage guidelines".

    I guess possible reasons for expecting Text could be: