CINXE.COM
DOI® Resolution Documentation
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="ahrefs-site-verification" content="a4d19d13d080685e48094a2591188be35d7b5db05918a5eb84828500a14f3c5e"> <title>DOI® Resolution Documentation</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"> </script> <script type = "text/javascript" src = "https://www.gstatic.com/charts/loader.js"> </script> <script type = "text/javascript"> google.charts.load('current', { 'packages': ['corechart','line','table', 'geochart'] }); </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <link rel="stylesheet" href="/css/fontawesome-free-6.5.1/css/fontawesome.min.css"> <link rel="stylesheet" href="/css/fontawesome-free-6.5.1/css/solid.min.css"> <link rel="stylesheet" href="/css/fontawesome-free-6.5.1/css/brands.min.css"> <link rel="stylesheet" href='https://www.doi.org/css/style.css?v=sha512-IxT%2fJiVK0BF8k8aJk0ZkHiYh8CMuo6%2bgm3hUrJ%2b0lcfTQ78dHB5RPYdzgX8MxJHFc1uq1ujEXoTn3zvmkhtA3w%3d%3d' > <link rel="icon" sizes="48x48" href="/images/favicons/favicon.ico"> <link rel="icon" sizes="32x32" href="/images/favicons/favicon-32x32.png"> <link rel="icon" sizes="16x16" href="/images/favicons/favicon-16x16.png"> <link rel="apple-touch-icon-precomposed" href="/images/favicons/apple-touch-icon.png"> <link rel="apple-touch-icon-precomposed" sizes="192x192" href="/images/favicons/android-chrome-192x192.png"> <link rel="apple-touch-icon-precomposed" sizes="512x512" href="/images/favicons/android-chrome-512x512.png"> </head> <body> <header> <div class="row"> <div class="col logo"> <a href="https://www.doi.org/"><img class="header-logo" src="/images/logos/ header_logo_cropped_registered.svg" /></a> </div> </div> <div class="navigation-container"> <div class="nav"> <nav> <input type="checkbox" name="" id=""> <div class="hamburger-lines"> <span class="line line1"></span> <span class="line line2"></span> <span class="line line3"></span> </div> <ul class="menu-items"> <li> <span class='nolink'>The Foundation</span> <i class="fa-solid fa-fw fa-angle-down"></i> <ul class="submenu"> <li><a href="/the-foundation/about-us/">About Us</a> <li><a href="/the-foundation/board-and-governance/">Board & Governance</a> <li><a href="/the-foundation/sustainability/">Sustainability</a> </ul> </li> <li> <span class='nolink'>The Community</span> <i class="fa-solid fa-fw fa-angle-down"></i> <ul class="submenu"> <li><a href="/the-community/what-are-registration-agencies/">What are Registration Agencies?</a> <li><a href="/the-community/existing-registration-agencies/">Existing Registration Agencies</a> <li><a href="/the-community/who-are-the-members-and-users/">Who Are The Members and Users?</a> </ul> </li> <li> <span class='nolink'>The Identifier</span> <i class="fa-solid fa-fw fa-angle-down"></i> <ul class="submenu"> <li><a href="/the-identifier/what-is-a-doi/">What is a DOI?</a> <li><a href="/the-identifier/resources/handbook/">DOI Handbook</a> <li><a href="/the-identifier/resources/">Resources</a> </ul> </li> </ul> </nav> </div> </div> </header> <main aria-role="main"> <header class="single-header"> </header> <section class="single-top"> <div class="row"> <div class="col left" style="background-image:url()"> <div class="circle-wrapper"> <div class="circle"></div> <div class="texts"> <h1>Resources</h1> <h2>Factsheets</h2> </div> </div> </div> <div class="col right"> <div> <div class="maintext"></div> <div class="subtext"></div> </div> </div> </div> </section> <div class="page-content single"> <article> <div> <h2 id="doi-resolution-documentation">DOI® Resolution Documentation</h2> <p><a href="/the-identifier/resources/">< back to the Resources page</a></p> <p>1. <a href="#1-resolving-dois-using-the-proxy-server-system">Resolving DOIs Using the Proxy Server System</a><br> 2. <a href="#2-encoding-dois-for-use-in-uris">Encoding DOIs for Use in URIs</a><br> 3. <a href="#3-proxy-server-query-parameters">Proxy Server Query Parameters</a><br> 4. <a href="#4-which-ra">Which RA?</a><br> 5. <a href="#5-proxy-server-rest-api">Proxy Server REST API</a></p> <p><em>Note that this information, and additional information about the DOI Proxy Server System, Resolution and Numbering, can be found in the <a href="/the-identifier/resources/handbook/">DOI Handbook</a>.</em></p> <p>Users may resolve DOI names that are structured to use the DOI system Proxy Server (https://doi.org (preferred)). The resolution of the DOI name in this case depends on the use of URL syntax: the example DOI name doi:10.10.123/456 would be resolved from the address: “https://doi.org/10.123/456”. Any standard browser encountering a DOI name in this form will be able to resolve it. The proxy service (both doi.org and the earlier but no longer preferred dx.doi.org) is accessible over IPv6, and supports DNSSEC. The proxy servers respond to HTTPS (preferred) as well as HTTP requests.</p> <h3 id="1-resolving-dois-using-the-proxy-server-system">1. Resolving DOIs using the Proxy Server System</h3> <p>The DOI system uses the Handle System® to manage digital objects (see the DOI Factsheet “<a href="doi-system-and-the-handle-system">DOI System and the Handle System</a>”). At the infrastructure level, DOI names are handles.</p> <p>The DOI system Proxy Server is basically a web server that knows how to talk to the Handle System, and at this writing, most DOI® names found on the web are embedded in URLs that use the proxy server for DOI name resolution. For any HTTP request that combines the proxy’s domain name with a DOI name, for example</p> <p><a href="https://doi.org/10.1000/demo_DOI">https://doi.org/10.1000/demo_DOI</a></p> <p>the proxy will query the Handle System for the DOI name, take the URL in the handle record (or if there are multiple URLs in the handle record it will select one, and that selection is in no particular order) and send an HTTP redirect to that URL to the user’s web browser.</p> <p>Increasing numbers of DOI names include data in addition to the single default URL. This is sometimes referenced as multiple resolution. These added values are intended for use by more advanced applications which have the ability to take advantage of multiple pieces of data, e.g., the location of enhanced metadata or related documents.</p> <p>In addition to handle values of type URL, the proxy server understands values of handle value type 10320/loc. These values contain XML describing multiple redirection endpoints for the DOI name and conditions under which the proxy should use them. For further documentation see <em>DOI Handbook</em> Section 3.8.4.3, <a href="/the-identifier/resources/handbook/3_resolution/#3.8.4.3">Resolution of Multiple URLs using the 10320/loc Handle Type</a>.</p> <p>The proxy server is configured to display a “DOI Name Not Found” error page when queried for a DOI name that it cannot find.</p> <p>The DOI names 10.1000/demo_DOI and 10.1000/demo_DOI/ are both valid DOI names, but it is unlikely that a DOI name will be created with a trailing slash. If a resolution request for a DOI name with a trailing slash is received by the proxy server and that DOI name is not found, the proxy server will return an error report that includes a warning that the requested DOI name contained a trailing slash, and a link to click to resolve the same string without the slash.</p> <p>The DOI system Proxy Server is really multiple servers running at multiple locations, with the load distributed evenly across all servers. To speed resolution, the proxy servers cache handle values, with the TTL set to 24 hours. This means that if a handle value is changed, it can take up to 24 hours before the new value is returned.</p> <p>Note that the IDF also runs a proxy server for the <a href="http://shortdoi.org/">shortDOI™ Service</a> that is not part of this DOI system Proxy Server specification.</p> <h3 id="2-encoding-dois-for-use-in-uris">2. Encoding DOIs for use in URIs</h3> <p>The Handle System uses UTF-8, a Unicode implementation, and has no character set constraints. But the DOI system Proxy Server is a web server that sends redirects to web browsers using HTTP syntax, so characters in DOI names that may not be interpreted correctly by web browsers, for example ‘?’, should be avoided or encoded. A non-ASCII character in a DOI name should be converted to UTF-8, and each UTF-8 byte that isn’t ASCII should be %encoded.</p> <p>The “#” is another example. Only if you send the DOI system Proxy Server the DOI name</p> <p>10.1000/res#test</p> <p>encoded as</p> <p>https://doi.org/10.1000/res%23test</p> <p>will the proxy correctly resolve the DOI name. If it is not encoded, #test will be treated as a fragment and removed by the web browser before it gets to the proxy, which will then attempt to resolve 10.1000/res instead.</p> <p>Tables 1 and 2 summarize the encoding guidelines for DOI. URLs have the most restricted set of characters. Table 1 lists the characters that should always be hex encoded. Table 2 lists additional characters where it is recommended that characters be replaced by hex-encoding. The distinction between the lists is between practical experience with current web browsers and the more formal specification of URL syntax. In the DOI Directory all characters represent themselves.</p> <h4 id="table-1-mandatory-encoding">Table 1: Mandatory Encoding</h4> <table> <thead> <tr> <th>Character</th> <th>Encoding</th> </tr> </thead> <tbody> <tr> <td>%</td> <td>(%25)</td> </tr> <tr> <td>"</td> <td>(%22)</td> </tr> <tr> <td>#</td> <td>(%23)</td> </tr> <tr> <td>SPACE</td> <td>(%20)</td> </tr> <tr> <td>?</td> <td>(%3F)</td> </tr> </tbody> </table> <h4 id="table-2-recommended-encoding">Table 2: Recommended Encoding</h4> <table> <thead> <tr> <th>Character</th> <th>Encoding</th> </tr> </thead> <tbody> <tr> <td><</td> <td>(%3C)</td> </tr> <tr> <td>></td> <td>(%3E)</td> </tr> <tr> <td>{</td> <td>(%7B)</td> </tr> <tr> <td>}</td> <td>(%7D)</td> </tr> <tr> <td>^</td> <td>(%5E)</td> </tr> <tr> <td>[</td> <td>(%5B)</td> </tr> <tr> <td>]</td> <td>(%5D)</td> </tr> <tr> <td>`</td> <td>(%60)</td> </tr> <tr> <td>|</td> <td>(%7C)</td> </tr> <tr> <td>\</td> <td>(%5C)</td> </tr> <tr> <td>+</td> <td>(%2B)</td> </tr> </tbody> </table> <p>Note also that web browser treatment of “/./” and “/../” can be inconsistent. It is recommended that one of the slashes be percent encoded, e.g., change “/./” to “/.%2F” and “/../” to “/..%2F”.</p> <h3 id="3-proxy-server-query-parameters">3. Proxy Server query parameters</h3> <dl> <dt>noredirect</dt> <dd>Do not redirect using URL or 10320/loc values; display handle values instead.</dd> <dt>ignore_aliases</dt> <dd>Ordinarily the proxy will take a handle value of type HS\_ALIAS to be a handle that should be resolved instead of the input handle; with this parameter values of type HS\_ALIAS are ignored.</dd> <dt>auth</dt> <dd>Authoritative query. The proxy will bypass its cache and resolve the handle at an authoritative server.</dd> <dt>cert</dt> <dd>Certified query. The proxy will require an authenticated response from the handle server. Not generally needed by end users.</dd> <dt>index</dt> <dd>Only resolve the handle value at the specified index. May be repeated to resolve multiple indices.</dd> <dt>type</dt> <dd>Only resolve handle values of the specified type. May be repeated to resolve multiple types.</dd> <dt>urlappend</dt> <dd>The value of this parameter is appended to the end of the URL used for redirection.</dd> <dt>locatt=key:value</dt> <dd>For multiple redirection; specifies a key:value pair to determine the choice of redirection from 10320/loc values.</dd> <dt>action=showurls</dt> <dd>For multiple redirection; returns an XML representation of the possible redirect locations.</dd> <dt>nols=y</dt> <dd>Some libraries and other institutions use a special cookie to cause the DOI system Proxy Server to redirect users to an “appropriate copy” using a local service. For example users may be redirected to the full text of a journal article already purchased by the library, instead of a landing page indicating a fee. Users can add the “nols=y” query parameter to prevent the local service redirect.</dd> </dl> <h3 id="4-which-ra">4. Which RA?</h3> <p>Which RA? is a simple service that has been built to examine the type/value pairs returned from handle resolution and provide specific information that is available from the doi.org Proxy System. This service returns the name of the DOI Registration Agency (RA) responsible for a specific DOI, or group of DOIs. When a DOI name is appended to the string “https://doi.org/doiRA/”, a resolution (HTTP GET) of that URL will return a bit of JSON specifying the name of the RA. Resolving <a href="https://doi.org/doiRA/10.5240/B1FA-0EEC-C316-3316-3A73-L">https://doi.org/doiRA/10.5240/B1FA-0EEC-C316-3316-3A73-L</a> will return:</p> <pre tabindex="0"><code>[ { "DOI": "10.5240/B1FA-0EEC-C316-3316-3A73-L", "RA": "EIDR" } ] </code></pre><p>A full list of RA names and abbreviations can be found <a href="/the-community/existing-registration-agencies/">here</a>. Using commas in the URL string to delineate multiple DOIs will return multiple results in one request. Possible error states include “Invalid DOI”, “DOI does not exist” and “Unknown”.</p> <h3 id="5-proxy-server-rest-api">5. Proxy Server REST API</h3> <p>The DOI system Proxy Server REST API allows programmatic access to DOI name resolution using HTTP.</p> <h4 id="example-requestresponse">Example Request/Response</h4> <p>A REST API request can be made by performing a standard HTTP GET of</p> <p><code>/api/handles/<handle></code></p> <p>The API returns JSON.</p> <p>For example, https://doi.org/api/handles/10.1000/1 yields the response</p> <pre tabindex="0"><code>{ "responseCode": 1, "handle": "10.1000/1", "values": [ { "index": 100, "type": "HS_ADMIN", "data": { "format": "admin", "value": { "handle": "0.NA/10.1000", "index": 200, "permissions": "011111111111" } }, "ttl": 86400, "timestamp": "2000-04-13T15:08:57Z" }, { "index": 1, "type": "URL", "data": { "format": "string", "value": "http://www.doi.org/index.html" }, "ttl": 86400, "timestamp": "2004-09-10T19:49:59Z" } ] } </code></pre><h4 id="response-format">Response Format</h4> <p>The response is a JSON object which includes a “responseCode” (an integer referring to a Handle protocol response code), an echo of the “handle” resolved, and either a list of “values” or, in the case of an error, an optional “message” which is a string describing the error.</p> <p>Each value is a JSON object with generally 5 attributes:</p> <ul> <li>“index” : an integer</li> <li>“type” : a string</li> <li>“data” : an object, see below</li> <li>“ttl” : the time-to-live in seconds of the value, an integer (or, in the rare case of an absolute expiration time, that expiration time as an ISO8601-formatted string)</li> <li>“timestamp” : an ISO8601-formatted string</li> </ul> <p>Handle value data is an object with properties “format”, a string, and “value”.</p> <ul> <li>If “format”=“string”, “value” is a string, representing the data as a UTF-8 string.</li> <li>If “format”=“base64”, “value” is a string, with a BASE64 encoding of the data.</li> <li>If “format”=“hex”, “value” is a string, with a hex encoding of the data.</li> <li>If “format”=“admin”, “value” is an object, representing an HS_ADMIN value, with properties “handle” (a string), “index” (an integer), and “permissions” (a string, representing the bitmask of permissions).</li> <li>If “format”=“vlist”, “value” is an list of objects, representing an HS_VLIST value; each object in the list has properties “handle” (a string) and “index” (an integer).</li> <li>If “format”=“site”, “value” is an object, representing an HS_SITE value. As the structure of this object is complicated and generally of limited technical interest it is currently omitted from this documentation.</li> </ul> <h4 id="response-codes">Response Codes</h4> <ul> <li>1 : Success. (HTTP 200 OK)</li> <li>2 : Error. Something unexpected went wrong during handle resolution. (HTTP 500 Internal Server Error)</li> <li>100 : Handle Not Found. (HTTP 404 Not Found)</li> <li>200 : Values Not Found. The handle exists but has no values (or no values according to the types and indices specified). (HTTP 200 OK)</li> </ul> <h4 id="query-parameters">Query Parameters</h4> <p>This DOI system Proxy Server REST API is CORS-compliant, however, JSONP callbacks are also supported using a “callback” query parameter.</p> <p>The presence of the “pretty” query parameter instructs the server to pretty-print the JSON output.</p> <p>The “auth” query parameter instructs the proxy server to bypass its cache and query a primary handle server directly for the newest handle data.</p> <p>The “cert” query parameter instructs the proxy server to request an authenticated response from the source handle server. Not generally needed by end users.</p> <p>The “type” and “index” query parameters allow the resolution response to be restricted to specific types and indexes of interest. Multiple “type” and “index” parameters are allowed and values are returned which match any of the specified types or indexes. For example,</p> <p>For example, https://doi.org/api/handles/10.1000/1?type=URL&callback=processResponse yields the response</p> <pre tabindex="0"><code>processResponse({ "responseCode": 1, "handle": "10.1000/1", "values": [ { "index": 1, "type": "URL", "data": { "format": "string", "value": "http://www.doi.org/index.html" }, "ttl": 86400, "timestamp": "2004-09-10T19:49:59Z" } ] }); </code></pre><p>Note: The DOI system uses the Handle System and so DOIs are also resolvable using Handle clients instead of the doi.org HTTP service. See <a href="/the-identifier/resources/factsheets/doi-system-and-the-handle-system">https://www.doi.org/the-identifier/resources/factsheets/doi-system-and-the-handle-system</a> and <a href="https://www.handle.net">https://www.handle.net</a> for more information.</p> </div> </article> </div> <div class="sticky-socials"> <ul class="socials-side"> <li><a href="https://twitter.com/DOI_Foundation"><i class='fa-brands fa-fw fa-twitter'></i></a></li> <li><a href="https://www.linkedin.com/company/doi-foundation-inc/"><i class='fa-brands fa-fw fa-linkedin'></i></a></li> <li><a href="mailto:info@doi.org"><i class='fa-solid fa-fw fa-envelope'></i></a></li> </ul> </div> </main> <note aria-role="note"> <div class="page-content"> Updated July 4, 2020 </div> </note> <footer> <div class="row"> <div class="col"> <a href="https://www.doi.org/"><img class='footer-logo' src="/images/logos/ footer_logo_cropped_registered.svg" /></a> </div> <div class="col"> <ul> <li><a href="/the-identifier/resources/">Resources</a></li> <li><a href="/the-foundation/board-and-governance/">Governing Board</a></li> <li><a href="https://doi.statuspage.io/">Status page</a></li> <li><a href="mailto:info@doi.org">Email us</a></li> </ul> </div> <div class="col"> <ul> <li><a href="/the-identifier/resources/handbook">The DOI Handbook</a></li> <li><a href="https://www.iso.org/standard/81599.html">ISO 26324</a></li> <li><a href="/privacy-policy/">Privacy Policy</a></li> <li><a href="/resources/130718-trademark-policy.pdf">Trademarks (PDF)</a></li> </ul> </div> </div> <div class="row"> <div class="col copyright"> <p>Copyright © 2022 DOI Foundation. <i class='fa-brands fa-fw fa-creative-commons'></i><i class='fa-brands fa-fw fa-creative-commons-by'></i> The content of this site is licensed under a <a href='https://creativecommons.org/licenses/by/4.0/' title='Creative Commons' target='_blank'>Creative Commons Attribution 4.0 International License</a>.</p><p>DOI®, DOI.ORG®, and shortDOI® are trademarks of the DOI Foundation.</p> </div> <div class="col socials"> <ul class="socials-footer"> <li><a href="https://twitter.com/DOI_Foundation"><i class='fa-brands fa-fw fa-twitter'></i></a></li> <li><a href="https://www.linkedin.com/company/doi-foundation-inc/"><i class='fa-brands fa-fw fa-linkedin'></i></a></li> <li><a href="mailto:info@doi.org"><i class='fa-solid fa-fw fa-envelope'></i></a></li> </ul> </div> </div> </footer> <script src="/js/script.js"></script> </body> </html>