# Talkwalker

> Search and analyse what Talkwalker projects collect, manage topics and custom tags, export results, and start workflows from new mentions.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/talkwalker

## Actions

### Add a document

Add your own document to a project, such as a broadcast clip or an internal article, so it is analysed with the rest. Social media posts can't be added.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Document URL (`url`, text, required): The document's URL, which identifies it in the project.
- Title (`title`, text, required): The document's title.
- Content (`content`, text): The document's text.
- Published (`published`, date and time): When it was published.
- Custom tags (`tags`, list): Custom tags to give it.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "status_code": "example",
    "status_message": "example"
  }
}
```

### Add a query to a topic

Add a query line to a topic, or replace the topic's queries with it.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Topic (`topic_id`, text, required): The topic.
- Query (`query`, text, required): The Talkwalker query to add.
- Exclude matching results (`exclude`, true/false): Turn on to make this line exclude results rather than match them.
- Replace existing queries (`replace`, true/false): Turn on to replace the topic's existing queries with this one.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "category_id": "example",
    "color": "example",
    "created_ts": 1,
    "description": "example",
    "excluded_queries": [
      "example"
    ],
    "id": "example",
    "included_queries": [
      "example"
    ],
    "title": "example",
    "updated_ts": 1
  }
}
```

### Cancel an export task

Stop an export task that hasn't finished.

**Inputs**

- Export task (`task_id`, text, required): The export task.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "id": "example",
    "status": "example"
  }
}
```

### Create a collector

Create a collector to receive an export task's results, or replace one with the same ID.

**Inputs**

- Collector ID (`collector_id`, text, required): An ID for the collector: letters, digits, - and _.
- Query (`query`, text): A Talkwalker query whose new results the collector also gathers. Leave empty for a collector that only receives exports.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "collector_id": "example",
    "state": "example"
  }
}
```

### Create a topic

Add a topic to a project, with the query it matches.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Name (`title`, text, required): The topic's name.
- Query (`query`, text, required): The Talkwalker query the topic matches, such as `tesla AND "electric car"`.
- Description (`description`, text): A description of the topic.
- Group (`group_id`, text): The topic group to put it in. Leave empty for ungrouped.
- Exclude matching results (`exclude`, true/false): Turn on to make the query exclude results rather than match them.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "category_id": "example",
    "color": "example",
    "created_ts": 1,
    "description": "example",
    "excluded_queries": [
      "example"
    ],
    "id": "example",
    "included_queries": [
      "example"
    ],
    "title": "example",
    "updated_ts": 1
  }
}
```

### Delete a collector

Delete a collector and the results it holds.

**Inputs**

- Collector (`collector_id`, text, required): The collector.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "collector_id": "example",
    "state": "example"
  }
}
```

### Delete a document

Delete a document you added to a project.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Document URL (`url`, text, required): The document's URL, which identifies it in the project.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "status_code": "example",
    "status_message": "example"
  }
}
```

### Delete a topic

Delete a topic or custom filter from a project.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Topic (`topic_id`, text, required): The topic.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "category_id": "example",
    "id": "example",
    "success": true
  }
}
```

### Export a project's results

Start a task that copies a project's results for a period into a collector, to read with Read a collector.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- From (`start_date`, date, required): The first day to export.
- To (`end_date`, date, required): The day the export stops, not included.
- Collector (`collector_id`, text, required): The collector to put the results in.
- Query (`query`, text): A Talkwalker query to narrow the results.
- Topics (`topic_ids`, list): Only results matching these topics.
- Limit (`limit`, number): The most results to export. Each costs one API credit when read. At least 1.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "creation_date": "example",
    "id": "example",
    "processed": 1,
    "progress": 1,
    "ready": 1,
    "status": "example",
    "target": "example",
    "type": "example"
  }
}
```

### Get a project's breakdown

Count a project's results over time or by sentiment, language, country, theme and more, as its dashboard widgets do. Uses ten API credits.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Count by (`type`, text, required): What to count the results by. One of: `published` (Published date), `search_indexed` (Date Talkwalker found it), `sentiment`, `language`, `country`, `source_region` (Region), `source_city` (City), `gender`, `age`, `interest` (Interests), and 7 more.
- Query (`query`, text): A Talkwalker query to narrow the results, such as `tesla AND lang:en`. Leave empty for everything the project collects.
- From (`start`, date and time): For counts over time, the start of the period.
- To (`end`, date and time): For counts over time, the end of the period.
- Interval (`interval`, text): For counts over time, how long each bar is. Leave empty for Talkwalker's choice. One of: `hour`, `day`, `1w` (Week).
- Split by (`breakdown`, text): Split each count further. One of: `sentiment`, `sourcetype` (Source type), `country`, `topic`, `channel`.
- Top (`top_n`, number): For counts by a category, how many categories to return. From 1 to 100.
- Topic (`topic_id`, text): Only results matching this topic of the project.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "t": 1,
        "v": [
          1
        ],
        "val": [
          {}
        ]
      }
    ],
    "header": {
      "v": [
        "example"
      ]
    }
  }
}
```

### Get a topic

Get one topic or custom filter with its queries.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Topic (`topic_id`, text, required): The topic.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "category_id": "example",
    "category_title": "example",
    "description": "example",
    "excluded_queries": [
      "example"
    ],
    "id": "example",
    "included_queries": [
      "example"
    ],
    "title": "example",
    "type": "example"
  }
}
```

### Get an export task

Get an export task's status and progress.

**Inputs**

- Export task (`task_id`, text, required): The export task.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "creation_date": "example",
    "id": "example",
    "processed": 1,
    "progress": 1,
    "ready": 1,
    "status": "example",
    "target": "example",
    "type": "example"
  }
}
```

### Get API credits

See how many API credits the subscription has used and has left this month.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "estimate_credits_used_until_end_of_billing_period": 1,
    "monthly_total": 1,
    "next_billing_period": 1,
    "remaining_credits_monthly": 1,
    "remaining_credits_onetime": 1,
    "used_credits_monthly": 1,
    "used_credits_onetime": 1
  }
}
```

### List collectors

List the subscription's collectors, which hold results an export task or a query gathers, and its streams.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "collectors": [
      {
        "collector_id": "example",
        "state": "example"
      }
    ],
    "streams": [
      {
        "enabled": true,
        "stream_id": "example"
      }
    ]
  }
}
```

### List custom tags

List the custom tags set up in a project.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.

**Outputs**

- `data` (list): The response from Talkwalker.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "label": "example"
    }
  ]
}
```

### List dashboards and reports

List a project's dashboards, reports and alerts.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "dashboards": [
      {
        "id": "example",
        "last_update": 1,
        "title": "example"
      }
    ],
    "reports": [
      {
        "id": "example",
        "last_update": 1,
        "title": "example"
      }
    ]
  }
}
```

### List export tasks

List the subscription's recent export tasks with their status.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Talkwalker.

**Example output**

```json
{
  "data": [
    {
      "creation_date": "example",
      "id": "example",
      "processed": 1,
      "progress": 1,
      "ready": 1,
      "status": "example",
      "target": "example",
      "type": "example"
    }
  ]
}
```

### List projects

List the Talkwalker projects the API token can read.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Talkwalker.

**Example output**

```json
{
  "data": [
    {
      "account_id": "example",
      "account_name": "example",
      "id": "example",
      "name": "example"
    }
  ]
}
```

### List top influencers

List the authors or sources with the most results in a project, with their reach, engagement and sentiment.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Rank (`influencer_type`, text): Authors or sources. Leave empty for authors. One of: `author` (Authors), `source` (Sources).
- Rank by (`sort_criteria`, text): What to rank them by. Leave empty for the number of results. One of: `total` (Number of results), `positive` (Positive results), `negative` (Negative results), `neutral` (Neutral results), `reach`, `engagement`, `engagement_per_mention` (Engagement per result), `reach_per_mention` (Reach per result).
- Query (`query`, text): A Talkwalker query to narrow the results, such as `tesla AND lang:en`. Leave empty for everything the project collects.
- Topic (`topic_id`, text): Only results matching this topic of the project.
- How many (`top_n`, number): How many to return, up to 100. Leave empty for 10. From 1 to 100.

**Outputs**

- `data` (list): The response from Talkwalker.

**Example output**

```json
{
  "data": [
    {
      "details": {
        "id": "example",
        "name": "example",
        "url": "example"
      },
      "engagement": 1,
      "engagement_per_mention": 1,
      "matched_topics": [
        {
          "posts_amount": 1,
          "topic_id": "example"
        }
      ],
      "network": "example",
      "posts": 1,
      "reach": 1,
      "reach_per_mention": 1,
      "sentiment": {
        "negative": 1,
        "neutral": 1,
        "positive": 1
      }
    }
  ]
}
```

### List topics

List a project's topics and custom filters with their queries, by group.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "filter_categories": [
      {
        "description": "example",
        "id": "example",
        "query_topics": [
          {
            "color": "example",
            "created_ts": 1,
            "description": "example",
            "excluded_queries": [
              "example"
            ],
            "id": "example",
            "included_queries": [
              "example"
            ],
            "title": "example",
            "updated_ts": 1
          }
        ],
        "title": "example"
      }
    ],
    "topic_categories": [
      {
        "description": "example",
        "id": "example",
        "query_topics": [
          {
            "color": "example",
            "created_ts": 1,
            "description": "example",
            "excluded_queries": [
              "example"
            ],
            "id": "example",
            "included_queries": [
              "example"
            ],
            "title": "example",
            "updated_ts": 1
          }
        ],
        "title": "example"
      }
    ]
  }
}
```

### Read a collector

Read the results a collector holds, up to the most recent. Uses one API credit per result.

**Inputs**

- Collector (`collector_id`, text, required): The collector.
- Resume from (`resume_offset`, text): Where to start: the resume offset a previous read returned. Leave empty to read from the start.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "documents": [
      {
        "cluster_id": "example",
        "content": "example",
        "content_snippet": "example",
        "domain_url": "example",
        "engagement": 1,
        "external_id": "example",
        "external_provider": "example",
        "extra_author_attributes": {
          "gender": "example",
          "id": "example",
          "name": "example"
        },
        "extra_source_attributes": {
          "id": "example",
          "name": "example"
        },
        "host_url": "example",
        "indexed": 1,
        "lang": "example",
        "matched_profile": [
          "example"
        ],
        "parent_url": "example",
        "post_type": [
          "example"
        ],
        "published": 1,
        "reach": 1,
        "root_url": "example",
        "search_indexed": 1,
        "sentiment": 1,
        "source_type": [
          "example"
        ],
        "tags_customer": [
          "example"
        ],
        "title": "example",
        "title_snippet": "example",
        "url": "example"
      }
    ],
    "resume_offset": "example"
  }
}
```

### Search a project

Find mentions a project collected, newest, most engaging or most read first. Uses one API credit per result plus at least ten per search.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Query (`query`, text): A Talkwalker query to narrow the results, such as `tesla AND lang:en`. Leave empty for everything the project collects.
- Period (`time_range`, text): How far back to look. Leave empty for the project's full history. One of: `1d` (Last day), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days), `365d` (Last year).
- Topic (`topic_id`, text): Only results matching this topic of the project.
- Sort by (`sort_by`, text): What to sort by. Leave empty to sort by engagement. One of: `published` (Published date), `search_indexed` (Date Talkwalker found it), `engagement`, `reach`, `trending_score` (Trending score), `comment_count` (Comments), `cluster_size` (Number of similar results).
- Sort order (`sort_order`, text): Which end of the sort comes first. Leave empty for highest or newest first. One of: `desc` (Highest or newest first), `asc` (Lowest or oldest first).
- Skip (`offset`, number): How many results to skip, for paging. Offset plus results per page must stay under 10,000. From 0 to 9999.
- Results (`per_page`, number): How many results to return, up to 500. Each result costs one API credit. Leave empty for 10. From 1 to 500.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "documents": [
      {
        "cluster_id": "example",
        "content": "example",
        "content_snippet": "example",
        "domain_url": "example",
        "engagement": 1,
        "external_id": "example",
        "external_provider": "example",
        "extra_author_attributes": {
          "gender": "example",
          "id": "example",
          "name": "example"
        },
        "extra_source_attributes": {
          "id": "example",
          "name": "example"
        },
        "host_url": "example",
        "indexed": 1,
        "lang": "example",
        "matched_profile": [
          "example"
        ],
        "parent_url": "example",
        "post_type": [
          "example"
        ],
        "published": 1,
        "reach": 1,
        "root_url": "example",
        "search_indexed": 1,
        "sentiment": 1,
        "source_type": [
          "example"
        ],
        "tags_customer": [
          "example"
        ],
        "title": "example",
        "title_snippet": "example",
        "url": "example"
      }
    ],
    "total": 1
  }
}
```

### Search all of Talkwalker

Find mentions across everything Talkwalker collected in the last 30 days, up to 500. Uses one API credit per result plus at least ten per search.

**Inputs**

- Query (`query`, text, required): The Talkwalker query, such as `tesla AND lang:en`.
- Period (`time_range`, text): How far back to look. Leave empty for the project's full history. One of: `1d` (Last day), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days), `365d` (Last year).
- Sort by (`sort_by`, text): What to sort by. Leave empty to sort by engagement. One of: `published` (Published date), `search_indexed` (Date Talkwalker found it), `engagement`, `reach`, `trending_score` (Trending score), `comment_count` (Comments), `cluster_size` (Number of similar results).
- Sort order (`sort_order`, text): Which end of the sort comes first. Leave empty for highest or newest first. One of: `desc` (Highest or newest first), `asc` (Lowest or oldest first).
- Skip (`offset`, number): How many results to skip, for paging. Offset plus results per page must stay under 10,000. From 0 to 499.
- Results (`per_page`, number): How many results to return, up to 500. Each result costs one API credit. Leave empty for 10. From 1 to 500.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "documents": [
      {
        "cluster_id": "example",
        "content": "example",
        "content_snippet": "example",
        "domain_url": "example",
        "engagement": 1,
        "external_id": "example",
        "external_provider": "example",
        "extra_author_attributes": {
          "gender": "example",
          "id": "example",
          "name": "example"
        },
        "extra_source_attributes": {
          "id": "example",
          "name": "example"
        },
        "host_url": "example",
        "indexed": 1,
        "lang": "example",
        "matched_profile": [
          "example"
        ],
        "parent_url": "example",
        "post_type": [
          "example"
        ],
        "published": 1,
        "reach": 1,
        "root_url": "example",
        "search_indexed": 1,
        "sentiment": 1,
        "source_type": [
          "example"
        ],
        "tags_customer": [
          "example"
        ],
        "title": "example",
        "title_snippet": "example",
        "url": "example"
      }
    ],
    "total": 1
  }
}
```

### Summarize a project

Get Talkwalker's AI summary of the 1,000 most engaging results matching a project's query.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Query (`query`, text): A Talkwalker query to narrow the results, such as `tesla AND lang:en`. Leave empty for everything the project collects.
- Period (`time_range`, text): How far back to look. Leave empty for the project's full history. One of: `1d` (Last day), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days), `365d` (Last year).
- Topic (`topic_id`, text): Only results matching this topic of the project.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "summary": "example"
  }
}
```

### Tag a document

Add custom tags to a document in a project, or remove them.

**Inputs**

- Project (`project_id`, text, required): The Talkwalker project.
- Document URL (`url`, text, required): The document's URL, which identifies it in the project.
- Add tags (`add_tags`, list): Custom tags to add.
- Remove tags (`remove_tags`, list): Custom tags to remove.

**Outputs**

- `data` (object): The response from Talkwalker.

**Example output**

```json
{
  "data": {
    "status_code": "example",
    "status_message": "example"
  }
}
```
