# getCompanyNews

**Identifier:** `apollo_getCompanyNews`

**Provider:** [Apollo.io](https://kirha.com/providers/apollo.md)

Get news articles for a given list of companies including hires, investments, and contracts.

## Run it with the CLI

```bash
kirha tools run apollo_getCompanyNews \
  --input '{
    "apolloCompanyIds": [
      "<apolloCompanyIds>"
    ]
  }'
```

`--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": "apollo_getCompanyNews",
  "input": {
    "apolloCompanyIds": [
      "<apolloCompanyIds>"
    ]
  }
}'
```

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": {
    "apolloCompanyIds": {
      "description": "Apollo company IDs",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "categories": {
      "description": "News categories to filter",
      "items": {
        "enum": [
          "hires",
          "investment",
          "contract"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "publishedAfter": {
      "description": "ISO date (YYYY-MM-DD) for earliest publication date",
      "type": "string"
    }
  },
  "required": [
    "apolloCompanyIds"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "newsArticles": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "apolloCompanyIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "domain": {
            "type": "string"
          },
          "eventCategories": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "newsArticles"
  ],
  "type": "object"
}
```

## Related tools

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

- [`searchCompany`](https://kirha.com/providers/apollo/searchCompany.md)

-----

[All Apollo.io tools](https://kirha.com/providers/apollo.md) · [< Back to tools list](https://kirha.com/tools.md)