# Create Job — NewsCatcher

> Create a new job in Newscatcher. See the documentation

- Key: `newscatcher-create-job`
- Type: Action (Write)
- Version: 0.0.2
- App: NewsCatcher (`newscatcher`) — https://pipedream.com/apps/newscatcher.md
- This page (HTML): https://pipedream.com/apps/newscatcher/actions/create-job
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/newscatcher/actions/create-job/create-job.mjs

## Description

Create a new job in Newscatcher. [See the documentation](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/create-job)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `query` | `string` | Yes | Natural language question describing what to find. Example: AI company acquisitions |
| `schema` | `string` | No | Template string to guide record summary formatting. Use placeholder syntax with brackets to indicate desired fields: [COMPANY], [REVENUE], [TARGET], [AMOUNT], etc. Example: [ACQUIRER] acquired [TARGET] for [AMOUNT] |
| `context` | `string` | No | Additional context to focus on specific aspects of your query. Example: Focus on deal size and acquiring company details |
| `startDate` | `string` | No | Start of date range for article search (ISO 8601 format with UTC timezone). Must be within plan's allowed lookback period. Default is 5 days before current date if not specified. Example: 2026-01-30T00:00:00Z |
| `endDate` | `string` | No | End of date range for article search (ISO 8601 format with UTC timezone). Must be within plan's allowed lookback period. Default is current date if not specified. Example: 2026-02-16T00:00:00Z |
| `limit` | `integer` | No | Maximum number of records to return. If not specified, defaults to your plan limit. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "newscatcher",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "newscatcher-create-job",
  arguments: {
    query: "Query",
    schema: "Schema",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "newscatcher-create-job",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    newscatcher: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    schema: "Schema",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "newscatcher-create-job",
    "configured_props": {
      "newscatcher": { "authProvisionId": "apn_xxxxxxx" },
      "query": "Query",
      "schema": "Schema"
    }
  }'
```

---

- App: https://pipedream.com/apps/newscatcher.md · All apps: https://pipedream.com/apps
