Test a Bonai News API request

Enter a search term, run the request, and inspect the JSON response. Add your API key to make a live request.

Request

Add a key to run the request. Create one in pricing. get a free key

Search keyword or phrase

GET/search/articles
curl --request GET \
--url "https://api.bonai.io/news/search/articles?query=stock%20market&language=en" \
--header "api-key: YOUR_API_KEY" \
--header "api-version: 2024-01-01"
Sample response — add a key to run a live request.
JSON response
{
"success": true,
"size": 3,
"totalHits": 3,
"hitsPerPage": 25,
"page": 1,
"totalPages": 1,
"timeMs": 42,
"data": [
{
"title": "Stock markets hit record highs as earnings beat expectations",
"url": "https://www.marketwatch.com/markets-record",
"excerpt": "Major indexes closed at all-time highs after a wave of better-than-expected corporate earnings and cooling inflation data.",
"thumbnail": "https://www.marketwatch.com/images/markets-record.jpg",
"language": "en",
"paywall": false,
"contentLength": 4520,
"date": "2025-07-21T14:30:00Z",
"authors": [
"Alice Morgan"
],
"keywords": [
"Markets",
"Earnings",
"Stocks"
],
"publisher": {
"name": "MarketWatch",
"url": "https://www.marketwatch.com",
"favicon": "https://www.marketwatch.com/favicon.ico"
}
},
{
"title": "EV sales surge as charging infrastructure expands worldwide",
"url": "https://www.reuters.com/ev-sales-surge",
"excerpt": "Electric vehicle deliveries climbed sharply last quarter, supported by a rapid build-out of public charging networks.",
"thumbnail": "https://www.reuters.com/images/ev-charging.jpg",
"language": "en",
"paywall": false,
"contentLength": 3180,
"date": "2025-07-21T10:15:00Z",
"authors": [
"Tom Becker"
],
"keywords": [
"Electric Vehicles",
"Energy",
"Automotive"
],
"publisher": {
"name": "Reuters",
"url": "https://www.reuters.com",
"favicon": "https://www.reuters.com/favicon.ico"
}
},
{
"title": "Central banks signal cautious path on interest rates",
"url": "https://www.bloomberg.com/central-banks-cautious",
"excerpt": "Policymakers said further rate moves will depend on incoming data as inflation approaches target levels.",
"thumbnail": "https://www.bloomberg.com/images/central-banks.jpg",
"language": "en",
"paywall": false,
"contentLength": 2750,
"date": "2025-07-21T08:45:00Z",
"authors": [
"Sofia Lind"
],
"keywords": [
"Interest Rates",
"Central Banks",
"Economy"
],
"publisher": {
"name": "Bloomberg",
"url": "https://www.bloomberg.com",
"favicon": "https://www.bloomberg.com/favicon.ico"
}
},
{
"title": "New climate report urges faster action on emissions",
"url": "https://www.theguardian.com/climate-report",
"excerpt": "Scientists warn that current pledges fall short of the targets needed to limit global warming, calling for accelerated decarbonization.",
"thumbnail": "https://www.theguardian.com/images/climate-report.jpg",
"language": "en",
"paywall": false,
"contentLength": 5120,
"date": "2025-07-20T18:20:00Z",
"authors": [
"Priya Nair"
],
"keywords": [
"Climate",
"Environment",
"Policy"
],
"publisher": {
"name": "The Guardian",
"url": "https://www.theguardian.com",
"favicon": "https://www.theguardian.com/favicon.ico"
}
},
{
"title": "Chip shortage eases as new fabs ramp up production",
"url": "https://asia.nikkei.com/chip-shortage-eases",
"excerpt": "Semiconductor supply is improving as newly built fabrication plants come online across Asia and the United States.",
"thumbnail": "https://asia.nikkei.com/images/fabs-ramp.jpg",
"language": "en",
"paywall": true,
"contentLength": 3400,
"date": "2025-07-20T12:05:00Z",
"authors": [
"Hana Suzuki"
],
"keywords": [
"Semiconductors",
"Supply Chain",
"Technology"
],
"publisher": {
"name": "Nikkei Asia",
"url": "https://asia.nikkei.com",
"favicon": "https://asia.nikkei.com/favicon.ico"
}
},
{
"title": "Cybersecurity teams brace for new wave of ransomware attacks",
"url": "https://www.cnn.com/ransomware-wave",
"excerpt": "Security researchers warn that a new campaign is targeting critical infrastructure, prompting heightened alerts across industries.",
"thumbnail": "https://www.cnn.com/images/ransomware.jpg",
"language": "en",
"paywall": false,
"contentLength": 2980,
"date": "2025-07-20T09:30:00Z",
"authors": [
"Marcus Lee"
],
"keywords": [
"Cybersecurity",
"Ransomware",
"Security"
],
"publisher": {
"name": "CNN",
"url": "https://www.cnn.com",
"favicon": "https://www.cnn.com/favicon.ico"
}
}
]
}