$npx -y skills add brave/brave-search-skills --skill news-searchUSE FOR news search. Returns news articles with title, URL, description, age, thumbnail. Supports freshness and date range filtering, SafeSearch filter and Goggles for custom ranking.
| 1 | # News Search |
| 2 | |
| 3 | > **Requires API Key**: Get one at https://api.search.brave.com |
| 4 | > |
| 5 | > **Plan**: Included in the **Search** plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe |
| 6 | |
| 7 | ## Quick Start (cURL) |
| 8 | |
| 9 | ### Basic Search |
| 10 | ```bash |
| 11 | curl -s "https://api.search.brave.com/res/v1/news/search?q=space+exploration" \ |
| 12 | -H "Accept: application/json" \ |
| 13 | -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" |
| 14 | ``` |
| 15 | |
| 16 | ### Recent News (Past 24 Hours) |
| 17 | ```bash |
| 18 | curl -s "https://api.search.brave.com/res/v1/news/search" \ |
| 19 | -H "Accept: application/json" \ |
| 20 | -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \ |
| 21 | -G \ |
| 22 | --data-urlencode "q=cybersecurity" \ |
| 23 | --data-urlencode "country=US" \ |
| 24 | --data-urlencode "freshness=pd" \ |
| 25 | --data-urlencode "count=20" |
| 26 | ``` |
| 27 | |
| 28 | ### Date Range Filter |
| 29 | ```bash |
| 30 | curl -s "https://api.search.brave.com/res/v1/news/search" \ |
| 31 | -H "Accept: application/json" \ |
| 32 | -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \ |
| 33 | -G \ |
| 34 | --data-urlencode "q=climate summit" \ |
| 35 | --data-urlencode "freshness=2026-01-01to2026-01-31" |
| 36 | ``` |
| 37 | |
| 38 | ## Endpoint |
| 39 | |
| 40 | ```http |
| 41 | GET https://api.search.brave.com/res/v1/news/search |
| 42 | POST https://api.search.brave.com/res/v1/news/search |
| 43 | ``` |
| 44 | |
| 45 | **Authentication**: `X-Subscription-Token: <API_KEY>` header |
| 46 | |
| 47 | **Note**: Both GET and POST are supported. POST is useful for long queries or complex Goggles. |
| 48 | |
| 49 | ## Parameters |
| 50 | |
| 51 | | Parameter | Type | Required | Default | Description | |
| 52 | |--|--|--|--|--| |
| 53 | | `q` | string | **Yes** | - | Search query (1-400 chars, max 50 words) | |
| 54 | | `country` | string | No | `US` | Search country (2-letter country code or `ALL`) | |
| 55 | | `search_lang` | string | No | `en` | Language preference (2+ char language code) | |
| 56 | | `ui_lang` | string | No | `en-US` | UI language (e.g., "en-US") | |
| 57 | | `count` | int | No | `20` | Number of results (1-50) | |
| 58 | | `offset` | int | No | `0` | Page offset (0-9) | |
| 59 | | `safesearch` | string | No | `strict` | Adult content filter (`off`/`moderate`/`strict`) | |
| 60 | | `freshness` | string | No | - | Time filter (`pd`/`pw`/`pm`/`py` or date range) | |
| 61 | | `spellcheck` | bool | No | `true` | Auto-correct query | |
| 62 | | `extra_snippets` | bool | No | - | Up to 5 additional excerpts per result | |
| 63 | | `goggles` | string or array | No | - | Custom ranking filter (URL or inline; repeat param for multiple) | |
| 64 | | `operators` | bool | No | `true` | Apply search operators | |
| 65 | | `include_fetch_metadata` | bool | No | `false` | Include fetch timestamps in results | |
| 66 | |
| 67 | ### Freshness Values |
| 68 | |
| 69 | | Value | Description | |
| 70 | |--|--| |
| 71 | | `pd` | Past day (24 hours) - ideal for breaking news | |
| 72 | | `pw` | Past week (7 days) | |
| 73 | | `pm` | Past month (31 days) | |
| 74 | | `py` | Past year (365 days) | |
| 75 | | `YYYY-MM-DDtoYYYY-MM-DD` | Custom date range | |
| 76 | |
| 77 | ## Response Format |
| 78 | |
| 79 | ```json |
| 80 | { |
| 81 | "type": "news", |
| 82 | "query": { |
| 83 | "original": "space exploration" |
| 84 | }, |
| 85 | "results": [ |
| 86 | { |
| 87 | "type": "news_result", |
| 88 | "title": "New Developments in Space Exploration", |
| 89 | "url": "https://news.example.com/space-exploration", |
| 90 | "description": "Recent missions have advanced our understanding of...", |
| 91 | "age": "2 hours ago", |
| 92 | "page_age": "2026-01-15T14:30:00", |
| 93 | "page_fetched": "2026-01-15T15:00:00Z", |
| 94 | "meta_url": { |
| 95 | "scheme": "https", |
| 96 | "netloc": "news.example.com", |
| 97 | "hostname": "news.example.com", |
| 98 | "favicon": "https://imgs.search.brave.com/favicon/news.example.com", |
| 99 | "path": "/space-exploration" |
| 100 | }, |
| 101 | "thumbnail": { |
| 102 | "src": "https://imgs.search.brave.com/..." |
| 103 | } |
| 104 | } |
| 105 | ] |
| 106 | } |
| 107 | ``` |
| 108 | |
| 109 | ## Response Fields |
| 110 | |
| 111 | | Field | Type | Description | |
| 112 | |--|--|--| |
| 113 | | `type` | string | Always `"news"` | |
| 114 | | `query.original` | string | The original search query | |
| 115 | | `query.altered` | string? | Spellcheck-corrected query (if changed) | |
| 116 | | `query.cleaned` | string? | Cleaned/normalized query from spellchecker | |
| 117 | | `query.spellcheck_off` | bool? | Whether spellcheck was disabled | |
| 118 | | `query.show_strict_warning` | bool? | True if strict safesearch blocked results | |
| 119 | | `query.search_operators` | object? | Applied search operators | |
| 120 | | `query.search_operators.applied` | bool | Whether operators were applied | |
| 121 | | `query.search_operators.cleaned_query` | string? | Query after operator processing | |
| 122 | | `query.search_operators.sites` | list[str]? | Domains from `site:` operators | |
| 123 | | `results[].type` | string | Always `"news_result"` | |
| 124 | | `results[].title` | string | Article title | |
| 125 | | `results[].url` | string | Source URL of the article | |
| 126 | | `results[].description` | string? | Article description/summary | |
| 127 | | `results[].age` | string? | Human-readable age (e.g. "2 hours ago") | |
| 128 | | `results[].page_age` | string? | Publication date from source (ISO datetime) | |
| 129 | | `results[].page_fetched` | string? | When page was last fetched (ISO datetime) | |
| 130 | | `results[].fetched_content_timestamp` | int? | Fetch timestamp (only |