• Description

    Retrieve number of diseases for a given source and snapshot.

  • URL (PATH)


  • Method


  • Auth required

    Yes (token)

  • Request parameters
    Parameter Description
    source *required
    example: source=wikipedia
    Name of the information source.
    version *required
    [alphanumeric with format “aaaa-mm-dd”]
    example: token=eyJhbGciOiJI...
    Date of information source extraction, in "yyyy-mm-dd" format.
    token *required
    example: token=eyJhbGciOiJI...
    Access key that allows the query to be executed.
  • Example request
                                             GET http://disnet.ctb.upm.es/api/disnet/query/diseaseCount?source=pubmed&version=2018-04-03&token=eyJhbGciOiJI...
  • Success response (application/json)
                                                "token": "eyJhbGciOiJI...",
                                                "authorized": true,
                                                "authorizationMessage": "Authorized!",
                                                "responseCode": "200",
                                                "responseMessage": "OK",
                                                "errorsFound": [],
                                                "count": 2355
  • Error response (application/json)

    Common errors