It goes against Postels law, but it's much simpler and less error prone to only accept data in the representation you actually use for further processing, vs writing an ad-hoc parser and normalizer.
APIs, yes - humans, no.
APIs, yes - humans, no.