DOI prefixes are designed to be opaque. All they do is serve as a namespace that helps guarantee that somebody can generate a unique DOI (yes, I know, other approaches to this would arguably be better). In short- the prefix doesn't really tell you anything useful about the DOI. So what are you trying to do?
And have you looked at the Crossref and/or DataCite APIs?
https://api.crossref.org
https://api.datacite.org