9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
59 lines
1.8 KiB
Markdown
59 lines
1.8 KiB
Markdown
# Reuters
|
|
|
|
**Mode**: 🔐 Browser · **Domain**: `reuters.com`
|
|
|
|
The Reuters search API sits behind a Datadome anti-bot challenge for direct
|
|
fetches, so commands run inside a logged-in `www.reuters.com` tab via the
|
|
Browser Bridge.
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli reuters search` | Search Reuters articles (`articles-by-search-v2` API) |
|
|
| `opencli reuters article-detail` | Fetch full article body + metadata for a Reuters URL |
|
|
|
|
## Usage Examples
|
|
|
|
```bash
|
|
# Search the latest Reuters articles
|
|
opencli reuters search "tariff" --limit 10
|
|
|
|
# Round-trip from search → detail using the `url` column
|
|
opencli reuters article-detail "https://www.reuters.com/world/..."
|
|
|
|
# JSON output
|
|
opencli reuters search "tariff" -f json
|
|
```
|
|
|
|
## Columns
|
|
|
|
`reuters search`:
|
|
`rank`, `title`, `date`, `section`, `section_path`, `authors`, `url`
|
|
|
|
`reuters article-detail`:
|
|
`title`, `date`, `section`, `section_path`, `authors`, `description`,
|
|
`word_count`, `url`, `body`
|
|
|
|
`--limit` accepts integers in `[1, 40]`. Out-of-range values raise
|
|
`ArgumentError` (no silent clamp).
|
|
|
|
## Prerequisites
|
|
|
|
- Chrome running with at least one tab on `www.reuters.com`
|
|
- Any Datadome / "verify you are human" prompt completed (the search API will
|
|
return a non-JSON HTML page until the challenge is solved)
|
|
- [Browser Bridge extension](/guide/browser-bridge) installed
|
|
|
|
## Error Behaviour
|
|
|
|
| Condition | Error |
|
|
|-----------|-------|
|
|
| In-page `fetch()` threw | `CommandExecutionError` |
|
|
| HTTP 401/403 or Datadome/paywall/challenge page | `AuthRequiredError` |
|
|
| Other HTTP non-2xx / malformed body | `CommandExecutionError` |
|
|
| API returned `articles: []` | `EmptyResultError` |
|
|
| `--limit` out of `[1, 40]` | `ArgumentError` |
|
|
| `article-detail` URL not on `reuters.com` | `ArgumentError` |
|
|
| Article page rendered no body text | `EmptyResultError` |
|