# Retriving citation entries with proper format

**URL:** <https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145>\
**Category:** Metadata Retrieval\
**Tags:** rest-api, references, crmds, citation, content\_negotiation\
**Created:** [28 November 2022 07:41 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145 "2022-11-28T07:41:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![koushikphy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/koushikphy/32/832_2.png) [@koushikphy](https://community.crossref.org/u/koushikphy)\
**Post date:** [28 November 2022 07:41 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145/1 "2022-11-28T07:41:31Z")

</div>

I am trying to retrive this doi `10.1021/acs.jpca.2c01209`, which gives the tile section as

> Accurate Calculation of Rate Constant and Isotope Effect for the F $\mathplus$ H$\less$sub$\greater$2$\less$/sub$\greater$ Reaction by the Coupled 3D Time-Dependent Wave Packet Method on the Newly Constructed $\less$i$\greater$Ab Initio$\less$/i$\greater$ Ground Potential Energy Surface

But the actual title of the paper is

> Accurate Calculation of Rate Constant and Isotope Effect for the F + H2 Reaction by the Coupled 3D Time-Dependent Wave Packet Method on the Newly Constructed _Ab Initio_ Ground Potential Energy Surface

i.e. the special characters, superscript, subscript get messed up in the retrieved data. Is there a way to get the citation from the APIs that is in Latex format?

---

<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:** [28 November 2022 16:46 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145/2 "2022-11-28T16:46:20Z")

</div>

Hi @koushikphy ,

Thanks for your message, and welcome to the community forum.

We don’t modify the metadata records registered with us in the JSON output in our REST API, but the content negotiation service can give you the citation in a number of different formats. I’ve selected apa, but there are many others here: [https://citation.crosscite.org/](https://citation.crosscite.org/)

 ![Screenshot 2022-11-28 at 10.44.36 AM](https://us1.discourse-cdn.com/flex020/uploads/crossref/original/1X/61c499d019a3786bf49e3ac6c05bc7de1b09523b.png)

How does this work for you?  
`Naskar, K., Ghosh, S., & Adhikari, S. (2022). Accurate Calculation of Rate Constant and Isotope Effect for the F + H2 Reaction by the Coupled 3D Time-Dependent Wave Packet Method on the Newly Constructed Ab Initio Ground Potential Energy Surface. In The Journal of Physical Chemistry A (Vol. 126, Issue 21, pp. 3311–3328). American Chemical Society (ACS). https://doi.org/10.1021/acs.jpca.2c01209`

Warm regards,  
Isaac

---

<div class="post-metadata">

**Author:** ![koushikphy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/koushikphy/32/832_2.png) [@koushikphy](https://community.crossref.org/u/koushikphy)\
**Post date:** [28 November 2022 17:19 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145/3 "2022-11-28T17:19:22Z")

</div>

Thanks a lot. Thats was very helpful. So I found three ways to query a bibtex information

```bash
curl -LH "Accept: text/x-bibliography; style=bibtex" https://doi.org/10.1021/acs.jpca.2c01209

```

Gives bibtex format with proper title format

```bash
 @article{2022, title={Accurate Calculation of Rate Constant and Isotope Effect for the F + H2 Reaction by the Coupled 3D Time-Dependent Wave Packet Method on the Newly Constructed Ab Initio Ground Potential Energy Surface}, volume={126}, ISSN={1520-5215}, url={http://dx.doi.org/10.1021/acs.jpca.2c01209}, DOI={10.1021/acs.jpca.2c01209}, number={21}, journal={The Journal of Physical Chemistry A}, publisher={American Chemical Society (ACS)}, author={Naskar, Koushik and Ghosh, Sandip and Adhikari, Satrajit}, year={2022}, month={May}, pages={3311–3328} }

```

But this method

```bash
curl -LH "Accept: application/x-bibtex" https://doi.org/10.1021/acs.jpca.2c01209

```

and this

```bash
curl http://api.crossref.org/works/https://doi.org/10.1021/acs.jpca.2c01209/transform/application/
x-bibtex

```

gives the bibtex in the following fomat where the title is not properly formatted

```bash
@article{Naskar_2022,
        doi = {10.1021/acs.jpca.2c01209},
        url = {https://doi.org/10.1021%2Facs.jpca.2c01209},
        year = 2022,
        month = {may},
        publisher = {American Chemical Society ({ACS})},
        volume = {126},
        number = {21},
        pages = {3311--3328},
        author = {Koushik Naskar and Sandip Ghosh and Satrajit Adhikari},
        title = {Accurate Calculation of Rate Constant and Isotope Effect for the F $\mathplus$ H$\less$sub$\greater$2$\less$/sub$\greater$ Reaction by the Coupled 3D Time-Dependent Wave Packet Method on the Newly Constructed $\less$i$\greater$Ab Initio$\less$/i$\greater$ Ground Potential Energy Surface},
        journal = {The Journal of Physical Chemistry A}

```

I think I will use the first one as that one gives proer fomatted title. Is there any advantages/ disadvantages to using one over the others?

---

<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:** [28 November 2022 17:33 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145/4 "2022-11-28T17:33:00Z")

</div>

Very happy to help! There aren’t advantages/disadvantages to any of these methods. I’d suggesting using the one that fits your workflow best.

I should also mention that our search interface - [search.crossref.org](http://search.crossref.org) - will also produce these citations for you.

 ![Screenshot 2022-11-28 at 11.29.18 AM](https://us1.discourse-cdn.com/flex020/uploads/crossref/original/1X/cffd2c91bfd60755629c3a51781f324f6f1fa0e6.png)

selecting cite will launch this screen:

 ![Screenshot 2022-11-28 at 11.28.58 AM](https://us1.discourse-cdn.com/flex020/uploads/crossref/original/1X/72cb042107e1dcacdea4c3415482c0cbf90cb24a.jpeg)

Looks like the BibTeX here is also pulling the raw title into the citation. That’s not the case for the other citation styles, so we should fix that. I’ll open an internal ticket about that, but it won’t be a quick fix.

My best,  
Isaac

---

<div class="post-metadata">

**Author:** ![koushikphy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.crossref.org/koushikphy/32/832_2.png) [@koushikphy](https://community.crossref.org/u/koushikphy)\
**Post date:** [29 November 2022 04:32 UTC](https://community.crossref.org/t/retriving-citation-entries-with-proper-format/3145/5 "2022-11-29T04:32:50Z")

</div>

Actually I’m using a script to get bibtex for all the reference so I need an API endpoint to work with and it seems the crossref API is much faster than querying the `dx.doi.org` endpoint
