Python (requests)
import requests
from pprint import pprint
res = requests.post("https://api.scite.ai/tallies/aggregate", json=['10.1016/j.biopsych.2005.08.012', '10.1016/j.jad.2016.11.014'])
result = res.json()
pprint(result)curl -X POST \
'https://api.scite.ai/tallies/aggregate' \
-H 'Content-Type: application/json' \
-d '["10.1016/j.biopsych.2005.08.012", "10.1016/j.jad.2016.11.014"]'const axios = require('axios')
async function main() {
const { data: result } = await axios.post(
'https://api.scite.ai/tallies/aggregate',
[
'10.1016/j.biopsych.2005.08.012',
'10.1016/j.jad.2016.11.014'
]
)
console.log(result)
}
main()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scite.ai/tallies/aggregate",
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([
'<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.scite.ai/tallies/aggregate"
payload := strings.NewReader("[\n \"<string>\"\n]")
req, _ := http.NewRequest("POST", url, payload)
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.scite.ai/tallies/aggregate")
.header("Content-Type", "application/json")
.body("[\n \"<string>\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scite.ai/tallies/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n \"<string>\"\n]"
response = http.request(request)
puts response.read_body{
"citingPublications": 449,
"contradicting": 6,
"mentioning": 319,
"supporting": 27,
"total": 358,
"unclassified": 6
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Tallies
Get Aggregate Tally
Get the sum of multiple tallies by DOI.
Up to 100 DOIs can be requested.
POST
/
tallies
/
aggregate
Python (requests)
import requests
from pprint import pprint
res = requests.post("https://api.scite.ai/tallies/aggregate", json=['10.1016/j.biopsych.2005.08.012', '10.1016/j.jad.2016.11.014'])
result = res.json()
pprint(result)curl -X POST \
'https://api.scite.ai/tallies/aggregate' \
-H 'Content-Type: application/json' \
-d '["10.1016/j.biopsych.2005.08.012", "10.1016/j.jad.2016.11.014"]'const axios = require('axios')
async function main() {
const { data: result } = await axios.post(
'https://api.scite.ai/tallies/aggregate',
[
'10.1016/j.biopsych.2005.08.012',
'10.1016/j.jad.2016.11.014'
]
)
console.log(result)
}
main()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scite.ai/tallies/aggregate",
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([
'<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.scite.ai/tallies/aggregate"
payload := strings.NewReader("[\n \"<string>\"\n]")
req, _ := http.NewRequest("POST", url, payload)
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.scite.ai/tallies/aggregate")
.header("Content-Type", "application/json")
.body("[\n \"<string>\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scite.ai/tallies/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n \"<string>\"\n]"
response = http.request(request)
puts response.read_body{
"citingPublications": 449,
"contradicting": 6,
"mentioning": 319,
"supporting": 27,
"total": 358,
"unclassified": 6
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Headers
Set to Bearer <token> to pass token for authorization.
Body
application/json
Example:
[
"10.1016/j.biopsych.2005.08.012",
"10.1016/j.jad.2016.11.014"
]
⌘I
