Sign inSign up

scieloorg/scielo-sushi-api

By scieloorg

•Updated 8 months ago

The COUNTER SUSHI API SciELO implementation - Code of Practice 5

Image
0

10K+

scieloorg/scielo-sushi-api repository overview

⁠SciELO SUSHI API

The SciELO SUSHI API is a service that provides usage data for SciELO journals. To help users utilize the API, we provide a Jupyter Notebook with examples on how to collect data for a given journal. You can find the notebook here:

Abrir no Colab

⁠Setting up Database

  • Create the procedures indicated in api/static/sql/procedures.sql

⁠Instalation and Running

Build

docker build . --tag scieloorg/scielo-sushi-api

Run

docker run -d \
    -p 6543:6543 \
    --name scielo-sushi-api \
    --env STR_CONNECTION="mysql://user:pass@localhost:port/database" \
    --env APPLICATION_URL="http://127.0.0.1:6543" \
    scieloorg/scielo-sushi-api \
    pserve /app/config.ini

Environment variables

VariableDescription
APPLICATION_URLApplication address
STR_CONNECTIONDatabase string connection

⁠Routes

URLDescription
/status or /Current status of the SciELO SUSHI API service.
/reportsReturns a list of reports supported by the SciELO SUSHI API service.
/membersReturns the list of members.
/reports/cr_j1Collection-level usage summarized by Metric_Type.
/reports/ir_a1Item Reports provide a summary of activity related to content at the item level and provide a means of evaluating the impact an item has for an institution’s patrons.
/reports/tr_j1Returns COUNTER 'Journal Requests (Excluding OA_Gold)' [TR_J1], a Standard View of Title Master Report. Reports on usage of non-Gold Open Access journal content as “Total_Item_Requests” and “Unique_Item_Requests”.
/reports/tr_j4This resource returns "Journal Requests by YOP (Excluding OA_Gold)" [TR_J4], a Standard View of Title Master Report. Breaks down the usage of non-Gold Open Access journal content by year of publication (YOP) providing counts for the metric types "Total_Item_Requests" and "Unique_Item_Requests".
⁠Parameters
NameReportsDescription
apitr_j1, and cr_j1Version of the API. It could be api=v2 for reports tr_j1 and cr_j1 or v1 for all the reports.
begin_dateallUsage start date in the form o YYYY-MM or YYYY-MM-DD.
collectionallCollection.
fmtallOutput format: tsv or json (default).
end_dateallUsage end date in the form o YYYY-MM or YYYY-MM-DD.
granularityallOptional Report Attribute. Include this parameter to allow usage to be retrieved with a granularity of 'month' (default if omitted) or 'totals'.
issnir_a1, tr_j1, and tr_j4ISSN of a Journal.
pidir_a1PID of an article.

Tag summary

Content type

Image

Digest

sha256:649c9a0f9…

Size

34.5 MB

Last updated

8 months ago

docker pull scieloorg/scielo-sushi-api