Skip to main content
POST
/
api
/
datacite
/
dois
/
search
/datacite/dois/search
curl --request POST \
  --url https://api.anysite.io/api/datacite/dois/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "query": "<string>",
  "created": "<string>",
  "published": "<string>",
  "registered": "<string>",
  "provider_id": "<string>",
  "client_id": "<string>",
  "prefix": "<string>",
  "license": "<string>",
  "language": "<string>"
}
'
import requests

url = "https://api.anysite.io/api/datacite/dois/search"

payload = {
"count": 2,
"timeout": 300,
"query": "<string>",
"created": "<string>",
"published": "<string>",
"registered": "<string>",
"provider_id": "<string>",
"client_id": "<string>",
"prefix": "<string>",
"license": "<string>",
"language": "<string>"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
query: '<string>',
created: '<string>',
published: '<string>',
registered: '<string>',
provider_id: '<string>',
client_id: '<string>',
prefix: '<string>',
license: '<string>',
language: '<string>'
})
};

fetch('https://api.anysite.io/api/datacite/dois/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/datacite/dois/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'query' => '<string>',
'created' => '<string>',
'published' => '<string>',
'registered' => '<string>',
'provider_id' => '<string>',
'client_id' => '<string>',
'prefix' => '<string>',
'license' => '<string>',
'language' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/datacite/dois/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"query\": \"<string>\",\n \"created\": \"<string>\",\n \"published\": \"<string>\",\n \"registered\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"client_id\": \"<string>\",\n \"prefix\": \"<string>\",\n \"license\": \"<string>\",\n \"language\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/datacite/dois/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"query\": \"<string>\",\n \"created\": \"<string>\",\n \"published\": \"<string>\",\n \"registered\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"client_id\": \"<string>\",\n \"prefix\": \"<string>\",\n \"license\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/datacite/dois/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"query\": \"<string>\",\n \"created\": \"<string>\",\n \"published\": \"<string>\",\n \"registered\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"client_id\": \"<string>\",\n \"prefix\": \"<string>\",\n \"license\": \"<string>\",\n \"language\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "doi": "<string>",
    "@type": "DataciteDoi",
    "prefix": "<string>",
    "suffix": "<string>",
    "titles": [],
    "creators": [],
    "contributors": [],
    "publisher": "<string>",
    "publication_year": 123,
    "resource_type": "<string>",
    "resource_type_general": "<string>",
    "schema_org_type": "<string>",
    "bibtex_type": "<string>",
    "citeproc_type": "<string>",
    "ris_type": "<string>",
    "subjects": [],
    "dates": [],
    "language": "<string>",
    "descriptions": [],
    "rights_list": [],
    "related_identifiers": [],
    "funding_references": [],
    "geo_locations": [],
    "container": {
      "@type": "DataciteContainer",
      "type": "<string>",
      "identifier": "<string>",
      "identifier_type": "<string>",
      "volume": "<string>",
      "issue": "<string>",
      "first_page": "<string>",
      "last_page": "<string>"
    },
    "identifiers": [],
    "alternate_identifiers": [],
    "sizes": [],
    "formats": [],
    "version": "<string>",
    "url": "<string>",
    "content_url": [
      "<string>"
    ],
    "schema_version": "<string>",
    "metadata_version": 123,
    "state": "<string>",
    "is_active": true,
    "view_count": 0,
    "download_count": 0,
    "citation_count": 0,
    "reference_count": 0,
    "part_count": 0,
    "part_of_count": 0,
    "version_count": 0,
    "version_of_count": 0,
    "source": "<string>",
    "created_at": "<string>",
    "registered_at": "<string>",
    "published_at": "<string>",
    "updated_at": "<string>",
    "provider_id": "<string>",
    "client_id": "<string>"
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
query
string | null
resource_type_id
enum<string> | null
Available options:
dataset,
text,
software,
publication,
image,
audiovisual,
collection,
model,
workflow,
sound,
physical-object,
event,
service,
interactive-resource,
data-paper,
peer-review,
computational-notebook,
journal-article,
book,
book-chapter,
conference-paper,
report,
dissertation,
preprint,
standard,
other
created
string | null
published
string | null
registered
string | null
provider_id
string | null
client_id
string | null
prefix
string | null
license
string | null
language
string | null
sort
enum<string> | null
Available options:
created,
-created,
published,
-published,
updated,
-updated,
relevance,
view-count,
-view-count,
citation-count,
download-count

Response

Successful Response

doi
string
required
@type
string
default:DataciteDoi
prefix
string | null
suffix
string | null
titles
object[]
creators
object[]
contributors
object[]
publisher
string | null
publication_year
integer | null
resource_type
string | null
resource_type_general
string | null
schema_org_type
string | null
bibtex_type
string | null
citeproc_type
string | null
ris_type
string | null
subjects
object[]
dates
object[]
language
string | null
descriptions
object[]
rights_list
object[]
funding_references
object[]
geo_locations
object[]
container
object | null
identifiers
object[]
alternate_identifiers
object[]
sizes
string[]
formats
string[]
version
string | null
url
string | null
content_url
string[] | null
schema_version
string | null
metadata_version
integer | null
state
string | null
is_active
boolean | null
view_count
integer
default:0
download_count
integer
default:0
citation_count
integer
default:0
reference_count
integer
default:0
part_count
integer
default:0
part_of_count
integer
default:0
version_count
integer
default:0
version_of_count
integer
default:0
source
string | null
created_at
string | null
registered_at
string | null
published_at
string | null
updated_at
string | null
provider_id
string | null
client_id
string | null