# searchArticles

**Identifier:** `europepmc_searchArticles`

**Provider:** [Europe PMC](https://kirha.com/providers/europepmc.md)

Search Europe PMC articles with their abstracts: all of MEDLINE plus preprints and articles not yet in PubMed.

## Run it with the CLI

```bash
kirha tools run europepmc_searchArticles \
  --input '{
    "query": "<query>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "europepmc_searchArticles",
  "input": {
    "query": "<query>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "cursor": {
      "type": "string"
    },
    "dateField": {
      "default": "index",
      "enum": [
        "index",
        "publication"
      ],
      "type": "string"
    },
    "fromDate": {
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    },
    "pageSize": {
      "default": 25,
      "maximum": 25,
      "minimum": 1,
      "type": "integer"
    },
    "query": {
      "description": "Europe PMC syntax, e.g. (TITLE:rivaroxaban OR ABSTRACT:rivaroxaban)",
      "minLength": 2,
      "type": "string"
    },
    "toDate": {
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "articles": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "abstract": {
            "type": "string"
          },
          "affiliation": {
            "type": "string"
          },
          "doi": {
            "type": "string"
          },
          "firstAuthor": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "indexDate": {
            "type": "string"
          },
          "isOpenAccess": {
            "type": "boolean"
          },
          "journal": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "pmcid": {
            "type": "string"
          },
          "pmid": {
            "type": "string"
          },
          "publicationDate": {
            "type": "string"
          },
          "publicationTypes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "source",
          "title",
          "publicationTypes",
          "isOpenAccess"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "hitCount": {
      "type": "number"
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "context",
    "hitCount",
    "articles",
    "nextCursor"
  ],
  "type": "object"
}
```

## Related tools

Other Europe PMC tools that this tool refers to, or that refer to it.

- [`getArticle`](https://kirha.com/providers/europepmc/getArticle.md)

-----

[All Europe PMC tools](https://kirha.com/providers/europepmc.md) · [< Back to tools list](https://kirha.com/tools.md)