# Retrieve doi from title and author

**URL:** <https://community.crossref.org/t/retrieve-doi-from-title-and-author/12533>\
**Category:** Metadata Retrieval\
**Tags:** rest-api, metadata-retrieval\
**Created:** [4 November 2024 20:37 UTC](https://community.crossref.org/t/retrieve-doi-from-title-and-author/12533 "2024-11-04T20:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinJOsborne](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MartinJOsborne](https://community.crossref.org/u/MartinJOsborne)\
**Post date:** [4 November 2024 20:37 UTC](https://community.crossref.org/t/retrieve-doi-from-title-and-author/12533/1 "2024-11-04T20:37:00Z")

</div>

I would like to retrieve the doi for items for which I know the title, author, and year of publication. If I do  
`https://api.crossref.org/works?query.bibliographic="' . $title . ', ' . $author . ' ' . $year . '"&rows=1`  
I get a vast amount of information. All I want is the doi. Searches of your documentation and googling suggest that there is no way to do that, although that is hard to believe. Is it really not possible?

---

<div class="post-metadata">

**Author:** ![Shayn](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/shayn/32/57_2.png) [@Shayn](https://community.crossref.org/u/Shayn)\
**Post date:** [4 November 2024 21:09 UTC](https://community.crossref.org/t/retrieve-doi-from-title-and-author/12533/2 "2024-11-04T21:09:59Z")

</div>

Hi Martin,

If you add “&select=DOI” to the end of any query, the results list will just include the DOI for each record.

For example:  
[https://api.crossref.org/works?query.bibliographic=Carberry,%20J.%20(2008).%20Toward%20a%20Unified%20Theory%20of%20High-Energy%20Metaphysics:%20Silly%20String%20Theory.%20Journal%20of%20Psychoceramics,%205(11),%201â€“3.&select=DOI](https://api.crossref.org/works?query.bibliographic=Carberry,%20J.%20(2008).%20Toward%20a%20Unified%20Theory%20of%20High-Energy%20Metaphysics:%20Silly%20String%20Theory.%20Journal%20of%20Psychoceramics,%205(11),%201%C3%A2%E2%82%AC%E2%80%9C3.&select=DOI)

It won’t return a single DOI, because the results are ordered by relevance score. For that reason, I wouldn’t actually suggest that you limit the results to only the DOI, without a way to identify whether you’re getting back the publication that you’re actually querying for.

You can add additional select parameters as needed, for example, title, container-title, and authors, which will give you a clearer sense of the matching item. Compare this to the above:

[https://api.crossref.org/works?query.bibliographic=Carberry,%20J.%20(2013).%20Is%20Psychoceramics%20All%20It%20Is%20Cracked%20Up%20To%20Be?%20Annals%20of%20Psychoceramics%20B,%202013,%209–14.&select=DOI,title,container-title,author](https://api.crossref.org/works?query.bibliographic=Carberry,%20J.%20(2013).%20Is%20Psychoceramics%20All%20It%20Is%20Cracked%20Up%20To%20Be?%20Annals%20of%20Psychoceramics%20B,%202013,%209%E2%80%9314.&select=DOI,title,container-title,author)

I hope that helps clarify. Please let us know if you have any other questions.

-Shayn

---

<div class="post-metadata">

**Author:** ![MartinJOsborne](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MartinJOsborne](https://community.crossref.org/u/MartinJOsborne)\
**Post date:** [5 November 2024 01:19 UTC](https://community.crossref.org/t/retrieve-doi-from-title-and-author/12533/3 "2024-11-05T01:19:10Z")

</div>

Wonderful — thank you! Now I see there is documentation at  
[https://api.crossref.org/swagger-ui/index.html#/Works/get\_works](https://api.crossref.org/swagger-ui/index.html#/Works/get_works)  
(I had previously looked at that page, but had not clicked on the “Works” tab — I guess I didn’t understand what “Endpoints that expose works related data” means. Wouldn’t it be clearer to say something nontechnical like “Queries that return publication information”?)
