Hi,
If you use the WordPress function get_post_meta()
, it will return a string for all values retrieved from the database. So the number
field also is a string when printing in Rest.
After getting the value from Rest API, you can use JS or PHP function to change the data type (string to number).