# getOpenalexAuthorWorks

**Identifier:** `openalex_getOpenalexAuthorWorks`

**Provider:** [OpenAlex](https://kirha.com/providers/openalex.md)

List all works by a specific author.

## Run it with the CLI

```bash
kirha tools run openalex_getOpenalexAuthorWorks \
  --input '{
    "authorId": "A5023888391"
  }'
```

`--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": "openalex_getOpenalexAuthorWorks",
  "input": {
    "authorId": "A5023888391"
  }
}'
```

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": {
    "authorId": {
      "description": "OpenAlex author ID, e.g. A5023888391",
      "type": "string"
    },
    "fromDate": {
      "description": "YYYY-MM-DD",
      "type": "string"
    },
    "isOa": {
      "type": "boolean"
    },
    "page": {
      "default": 1,
      "maximum": 500,
      "minimum": 1,
      "type": "number"
    },
    "perPage": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "sort": {
      "default": "publication_date",
      "enum": [
        "cited_by_count",
        "publication_date",
        "publication_date_asc"
      ],
      "type": "string"
    },
    "toDate": {
      "description": "YYYY-MM-DD",
      "type": "string"
    },
    "type": {
      "enum": [
        "article",
        "preprint",
        "book",
        "book-chapter",
        "dissertation",
        "dataset",
        "review",
        "report",
        "letter",
        "editorial",
        "grant",
        "software"
      ],
      "type": "string"
    }
  },
  "required": [
    "authorId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "ids": {
      "description": "Work IDs for use with getOpenalexWork",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalWorks": {
      "type": "number"
    },
    "works": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "abstract": {
            "description": "Capped at 4000 chars; getOpenalexWork returns the full text",
            "type": "string"
          },
          "authorCount": {
            "description": "OpenAlex lists return at most 100 authorships, so capped at 100",
            "type": "number"
          },
          "authors": {
            "description": "First 5 authors; getOpenalexWork returns up to 300",
            "items": {
              "additionalProperties": false,
              "properties": {
                "countries": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "id": {
                  "description": "For use with getOpenalexAuthor or getOpenalexAuthorWorks",
                  "type": "string"
                },
                "institutions": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "isCorresponding": {
                  "type": "boolean"
                },
                "name": {
                  "type": "string"
                },
                "orcid": {
                  "type": "string"
                },
                "position": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "citedByCount": {
            "type": "number"
          },
          "doi": {
            "type": "string"
          },
          "fwci": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "isOa": {
            "type": "boolean"
          },
          "isRetracted": {
            "type": "boolean"
          },
          "keywords": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "language": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "oaStatus": {
            "type": "string"
          },
          "oaUrl": {
            "type": "string"
          },
          "pdfUrl": {
            "type": "string"
          },
          "publicationDate": {
            "type": "string"
          },
          "publicationYear": {
            "type": "number"
          },
          "referencedWorksCount": {
            "type": "number"
          },
          "sourceName": {
            "type": "string"
          },
          "sourceType": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "topicDomain": {
            "type": "string"
          },
          "topicField": {
            "type": "string"
          },
          "topicName": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "totalWorks",
    "ids",
    "works"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getOpenalexWorksCited`](https://kirha.com/providers/openalex/getOpenalexWorksCited.md)
- [`getOpenalexAuthor`](https://kirha.com/providers/openalex/getOpenalexAuthor.md)
- [`searchOpenalexWorks`](https://kirha.com/providers/openalex/searchOpenalexWorks.md)
- [`getOpenalexWork`](https://kirha.com/providers/openalex/getOpenalexWork.md)

-----

[All OpenAlex tools](https://kirha.com/providers/openalex.md) · [< Back to tools list](https://kirha.com/tools.md)