# searchOpenalexInstitutions

**Identifier:** `openalex_searchOpenalexInstitutions`

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

Search universities, research organizations, and companies. Use returned IDs to filter works/authors by institution.

## Run it with the CLI

```bash
kirha tools run openalex_searchOpenalexInstitutions \
  --input '{}'
```

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

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": {
    "countryCode": {
      "description": "ISO 3166-1 alpha-2, e.g. US, FR",
      "type": "string"
    },
    "page": {
      "default": 1,
      "maximum": 500,
      "minimum": 1,
      "type": "number"
    },
    "perPage": {
      "default": 10,
      "maximum": 50,
      "minimum": 1,
      "type": "number"
    },
    "search": {
      "type": "string"
    },
    "sort": {
      "enum": [
        "relevance",
        "cited_by_count",
        "works_count"
      ],
      "type": "string"
    },
    "type": {
      "enum": [
        "education",
        "healthcare",
        "company",
        "nonprofit",
        "government",
        "facility",
        "archive",
        "other"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "ids": {
      "description": "Institution IDs for use with searchOpenalexWorks institutionIds filter",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "institutions": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "citedByCount": {
            "type": "number"
          },
          "country": {
            "type": "string"
          },
          "hIndex": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ror": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "worksCount": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalCount": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalCount",
    "ids",
    "institutions"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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