# Metadata retrieval question

**URL:** <https://community.crossref.org/t/metadata-retrieval-question/5413>\
**Category:** Metadata Retrieval\
**Tags:** rest-api, metadata-retrieval, xml\_api, affiliation\
**Created:** [2 May 2024 20:13 UTC](https://community.crossref.org/t/metadata-retrieval-question/5413 "2024-05-02T20:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mklem](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mklem](https://community.crossref.org/u/mklem)\
**Post date:** [2 May 2024 20:13 UTC](https://community.crossref.org/t/metadata-retrieval-question/5413/1 "2024-05-02T20:13:12Z")

</div>

Hello Crossref community.

When I post xml data to crossref that contains affiliations, should I expect to see the affiliation data when I retrieve the same doi?

I am using this url to retrieve the xml:  
http s://api.crossref.org/works/{doi}/transform/application/vnd.crossref.unixsd+xml

Also, is it possible to find under which crossref schema version a doi was submitted with?

Thank you

---

<div class="post-metadata">

**Author:** ![ifarley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/ifarley/32/44_2.png) [@ifarley](https://community.crossref.org/u/ifarley)\
**Post date:** [2 May 2024 20:31 UTC](https://community.crossref.org/t/metadata-retrieval-question/5413/2 "2024-05-02T20:31:27Z")

</div>

> [@mklem](#):
>
> When I post xml data to crossref that contains affiliations, should I expect to see the affiliation data when I retrieve the same doi?

The short answer is: yes, absolutely.

The longer answer is: it depends on the timing of the retrieval. Let’s say that you register a metadata record with us with no affiliations and then come behind that initial registration later and add affiliation metadata to an existing DOI. If you then attempt to retrieve that metadata record in our REST API, there will be a lag before you see the affiliation metadata appear in the REST API. It can take us up to 24 hours to index (or, reindex in this example) a submission.

Here is an example DOI with affiliation metadata registered for its contributors: [https://api.crossref.org/works/10.1145/3240431.3240434?mailto=support@crossref.org](https://api.crossref.org/works/10.1145/3240431.3240434?mailto=support@crossref.org)

 ![Screenshot 2024-05-02 at 3.27.42 PM](https://us1.discourse-cdn.com/flex020/uploads/crossref/original/2X/4/4b25d0c432180e37c48c581bfe7d70ed803e6648.jpeg)

And, here is that DOI in our XML API: [https://doi.crossref.org/search/doi?pid=support@crossref.org&format=unixsd&doi=10.1145/3240431.3240434](https://doi.crossref.org/search/doi?pid=support@crossref.org&format=unixsd&doi=10.1145/3240431.3240434)

> Also, is it possible to find under which crossref schema version a doi was submitted with?

Unfortunately, neither the JSON output in the REST API nor the XML output in the XML API includes the XML input schema that was used for the registration.

My best,  
Isaac
