> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Context.dev: Contextdev Post News Search

> Search current and past news about one company by name, domain, or ticker, filtered by date, language, or publisher. Context.dev Contextdev Post News Search.

Search current and past news about one company by name, domain, or ticker, filtered by date, language, or publisher.

> [!NOTE]
>
> Tool ID: `contextdev_post_news_search`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_post_news_search',
  {
    "searchBy": {
      "type": "natural_language",
      "query": "software companies hiring engineers"
    }
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run contextdev_post_news_search --input '{
  "searchBy": {
    "type": "natural_language",
    "query": "software companies hiring engineers"
  }
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": [
      {
        "id": "id_123",
        "story_id": "story_123",
        "url": "https://example.com/resource",
        "title": "VP of Engineering",
        "description": "Example description",
        "language": "en",
        "authors": [
          "example"
        ],
        "image_url": "https://example.com",
        "published_at": "2026-01-15T12:00:00Z",
        "type": "editorial",
        "source": {
          "name": "Example",
          "domain": "example.com",
          "direct": true
        },
        "match": {
          "level": "primary",
          "confidence": 0.95
        }
      }
    ],
    "has_more": true,
    "next_cursor": "cursor_123",
    "meta": {
      "count": 123
    },
    "request_id": "123e4567-e89b-42d3-a456-426614174000"
  }
}
```

Use `deepline describe contextdev_post_news_search --json` for the latest machine-readable contract.

## Input reference

Find news about a company by name, domain, ticker, or ISIN, or search all news with a natural-language query. Filter articles and continue through results with a cursor.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.searchBy` | `object` | Yes | — | What to search for: a specific company, or a natural-language query across all news. |
| `payload.filterBy` | `object` | No | — | Optional result filters. Use at most one of sourceDomain, sourceCountry, articleLanguage, or articleType. A date range may accompany that category. date.from must not exceed date.to. |
| `payload.sortBy` | `object` | No | — | Result ordering. Defaults to newest for entity searches. Natural-language searches are always ordered by relevance. |
| `payload.limit` | `integer` | No | `10` | Maximum results to return. Defaults to 10. Minimum: 1. Maximum: 100. |
| `payload.cursor` | `string` | No | — | Opaque next\_cursor from the previous response, or null for the first page. Maximum length: 300. |
| `payload.tags` | `array` | No | — | Labels for filtering usage in the dashboard. Maximum items: 20. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe contextdev_post_news_search --json`.

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.data` | `array` | Yes | — | — |
| `result.data.data[].id` | `string` | Yes | — | — |
| `result.data.data[].story_id` | `string` | Yes | — | — |
| `result.data.data[].url` | `string` | Yes | — | Format: `uri`. |
| `result.data.data[].title` | `string` | Yes | — | — |
| `result.data.data[].description` | `string \| null` | Yes | — | — |
| `result.data.data[].language` | `string \| null` | Yes | — | — |
| `result.data.data[].authors` | `array` | Yes | — | — |
| `result.data.data[].image_url` | `string \| null` | Yes | — | — |
| `result.data.data[].published_at` | `string \| null` | Yes | — | Format: `date-time`. |
| `result.data.data[].type` | `"editorial" \| "press_release" \| "regulatory_filing" \| "advisory"` | Yes | — | Allowed: `editorial`, `press_release`, `regulatory_filing`, `advisory`. |
| `result.data.data[].source` | `object` | Yes | — | — |
| `result.data.data[].source.name` | `string` | Yes | — | — |
| `result.data.data[].source.domain` | `string` | Yes | — | — |
| `result.data.data[].source.direct` | `boolean` | Yes | — | — |
| `result.data.data[].match` | `object \| null` | Yes | — | — |
| `result.data.data[].match.level` | `"primary" \| "secondary"` | Yes | — | Allowed: `primary`, `secondary`. |
| `result.data.data[].match.confidence` | `number \| null` | Yes | — | Minimum: 0. Maximum: 1. |
| `result.data.has_more` | `boolean` | Yes | — | — |
| `result.data.next_cursor` | `string \| null` | Yes | — | — |
| `result.data.meta` | `object` | Yes | — | — |
| `result.data.meta.count` | `integer` | Yes | — | Minimum: 0. |
| `result.data.key_metadata` | `object` | No | — | — |
| `result.data.request_id` | `string` | Yes | — | Format: `uuid`. |
| `result.meta` | `object` | No | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "story_id": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "language": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "authors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "image_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "published_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "editorial",
                    "press_release",
                    "regulatory_filing",
                    "advisory"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "direct": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "name",
                    "domain",
                    "direct"
                  ],
                  "additionalProperties": false
                },
                "match": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "level": {
                      "type": "string",
                      "enum": [
                        "primary",
                        "secondary"
                      ]
                    },
                    "confidence": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "required": [
                    "level",
                    "confidence"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "story_id",
                "url",
                "title",
                "description",
                "language",
                "authors",
                "image_url",
                "published_at",
                "type",
                "source",
                "match"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "meta": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "count"
            ],
            "additionalProperties": false
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor",
          "meta",
          "request_id"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.01` per pricing unit.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.