Aggregate Webz News
aggregate_webz_newsCount news mentions instead of returning posts (GET /seg_api/news).
Aggregates people and companies mentioned in news around a topic. Example: people and companies mentioned around trump in the past week.
This is news only. Person and company counts are not meaningful on blogs or forums. It returns buckets with counts, not articles. Each underlying field request costs 1 credit. A response has at most 10 buckets. Returned from_offset values paginate through up to 100 buckets.
q is the same boolean language as search. A space means AND. days is the crawl lookback. Named site lists are q clauses, for example custom_sites_list:hot_sites. Default 7 is the past week. The maximum is 31. Older windows are reset to 3 days by the API; the supported maximum is 31 days.
field is the bucket. persons is people. organizations is companies. Default is both, as two requests. Any other segmentation field is allowed: thread.site, thread.site_suffix, thread.site_full, thread.site_section, thread.site_type, thread.country, thread.url, author, language, site_category, published, locations, persons, person.positive, person.negative, person.neutral, organizations, organization.positive, organization.negative, organization.neutral, trading_symbol.ticker, trading_symbol.exchange, thread.licensing_agency, sentiment, category, topic, rating, trust.bias, trust.category, trust.source.type. topic, sentiment, and the entity fields count meaningfully on news only.
Separate segmentation arguments: include_syndicated=true includes syndicated copies (default false). webz_reporter=true includes Webz Reporter posts (default false); this is a separate argument, not a q filter. from_offset paginates beyond the first 10 buckets.
Examples:
q=trump days=7
q=trump field=organizations days=7
q="climate change" field=persons language:english days=7
Reference documentation: Segmentation: https://docs.webz.io/docs/webz/news-blogs-forums-segmentation
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "aggregate_webz_news"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Boolean query with field:value filters. A space means AND; AND, OR and NOT are uppercase. A leading minus also means NOT (tesla -car). Quoted phrases and filter values may contain spaces, for example author:"jane doe". Examples: language:english site:cnn.com country:US. Language values are lowercase full names (hebrew); country values are ISO-2 (GB). Numeric comparisons use > or <, for example domain_rank:<1000. size, sort and days are separate tool arguments. | |
| days | No | Lookback in days. Default 7 is the past week. Maximum 31. | |
| field | No | Buckets to count. persons is people, organizations is companies. Default persons,organizations runs both. Comma separated. | persons,organizations |
| from_offset | No | Returned pagination offset for non-crawled sorts. | |
| webz_reporter | No | When true, include Webz Reporter posts. Default false. This is its own argument. webz_reporter:true inside q does not include those posts. | |
| include_syndicated | No | When true, include syndicated copies. Default false. |