News search
curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/news/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authors": "<string>",
"channels": "<string>",
"content_types": "<string>",
"cusips": "<string>",
"date": "<string>",
"dateFrom": "<string>",
"dateTo": "<string>",
"displayOutput": "headline",
"format": "<string>",
"importance": "<string>",
"importanceRank": 123,
"isin": "<string>",
"page": 0,
"pageSize": 15,
"primaryTickers": "<string>",
"publishedSince": 123,
"region": "<string>",
"sort": "<string>",
"tickers": "<string>",
"topic_group_by": "or",
"topics": "<string>",
"updatedSince": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/news/search"
payload = {
"authors": "<string>",
"channels": "<string>",
"content_types": "<string>",
"cusips": "<string>",
"date": "<string>",
"dateFrom": "<string>",
"dateTo": "<string>",
"displayOutput": "headline",
"format": "<string>",
"importance": "<string>",
"importanceRank": 123,
"isin": "<string>",
"page": 0,
"pageSize": 15,
"primaryTickers": "<string>",
"publishedSince": 123,
"region": "<string>",
"sort": "<string>",
"tickers": "<string>",
"topic_group_by": "or",
"topics": "<string>",
"updatedSince": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authors: '<string>',
channels: '<string>',
content_types: '<string>',
cusips: '<string>',
date: '<string>',
dateFrom: '<string>',
dateTo: '<string>',
displayOutput: 'headline',
format: '<string>',
importance: '<string>',
importanceRank: 123,
isin: '<string>',
page: 0,
pageSize: 15,
primaryTickers: '<string>',
publishedSince: 123,
region: '<string>',
sort: '<string>',
tickers: '<string>',
topic_group_by: 'or',
topics: '<string>',
updatedSince: 123
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/news/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/benzinga/news/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'authors' => '<string>',
'channels' => '<string>',
'content_types' => '<string>',
'cusips' => '<string>',
'date' => '<string>',
'dateFrom' => '<string>',
'dateTo' => '<string>',
'displayOutput' => 'headline',
'format' => '<string>',
'importance' => '<string>',
'importanceRank' => 123,
'isin' => '<string>',
'page' => 0,
'pageSize' => 15,
'primaryTickers' => '<string>',
'publishedSince' => 123,
'region' => '<string>',
'sort' => '<string>',
'tickers' => '<string>',
'topic_group_by' => 'or',
'topics' => '<string>',
'updatedSince' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/benzinga/news/search"
payload := strings.NewReader("{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/benzinga/news/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/news/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}"
response = http.request(request)
puts response.read_bodyBenzinga
News search
Use for what was reported about a company or subject, and when. Scope it to tickers or a date range: unscoped it returns the whole newswire. For the analyst reaction to a story use calendar/ratings.
POST
https://api.aisa.one
/
apis
/
v1
/
benzinga
/
news
/
search
News search
curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/news/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authors": "<string>",
"channels": "<string>",
"content_types": "<string>",
"cusips": "<string>",
"date": "<string>",
"dateFrom": "<string>",
"dateTo": "<string>",
"displayOutput": "headline",
"format": "<string>",
"importance": "<string>",
"importanceRank": 123,
"isin": "<string>",
"page": 0,
"pageSize": 15,
"primaryTickers": "<string>",
"publishedSince": 123,
"region": "<string>",
"sort": "<string>",
"tickers": "<string>",
"topic_group_by": "or",
"topics": "<string>",
"updatedSince": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/news/search"
payload = {
"authors": "<string>",
"channels": "<string>",
"content_types": "<string>",
"cusips": "<string>",
"date": "<string>",
"dateFrom": "<string>",
"dateTo": "<string>",
"displayOutput": "headline",
"format": "<string>",
"importance": "<string>",
"importanceRank": 123,
"isin": "<string>",
"page": 0,
"pageSize": 15,
"primaryTickers": "<string>",
"publishedSince": 123,
"region": "<string>",
"sort": "<string>",
"tickers": "<string>",
"topic_group_by": "or",
"topics": "<string>",
"updatedSince": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authors: '<string>',
channels: '<string>',
content_types: '<string>',
cusips: '<string>',
date: '<string>',
dateFrom: '<string>',
dateTo: '<string>',
displayOutput: 'headline',
format: '<string>',
importance: '<string>',
importanceRank: 123,
isin: '<string>',
page: 0,
pageSize: 15,
primaryTickers: '<string>',
publishedSince: 123,
region: '<string>',
sort: '<string>',
tickers: '<string>',
topic_group_by: 'or',
topics: '<string>',
updatedSince: 123
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/news/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/benzinga/news/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'authors' => '<string>',
'channels' => '<string>',
'content_types' => '<string>',
'cusips' => '<string>',
'date' => '<string>',
'dateFrom' => '<string>',
'dateTo' => '<string>',
'displayOutput' => 'headline',
'format' => '<string>',
'importance' => '<string>',
'importanceRank' => 123,
'isin' => '<string>',
'page' => 0,
'pageSize' => 15,
'primaryTickers' => '<string>',
'publishedSince' => 123,
'region' => '<string>',
'sort' => '<string>',
'tickers' => '<string>',
'topic_group_by' => 'or',
'topics' => '<string>',
'updatedSince' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/benzinga/news/search"
payload := strings.NewReader("{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/benzinga/news/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/news/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authors\": \"<string>\",\n \"channels\": \"<string>\",\n \"content_types\": \"<string>\",\n \"cusips\": \"<string>\",\n \"date\": \"<string>\",\n \"dateFrom\": \"<string>\",\n \"dateTo\": \"<string>\",\n \"displayOutput\": \"headline\",\n \"format\": \"<string>\",\n \"importance\": \"<string>\",\n \"importanceRank\": 123,\n \"isin\": \"<string>\",\n \"page\": 0,\n \"pageSize\": 15,\n \"primaryTickers\": \"<string>\",\n \"publishedSince\": 123,\n \"region\": \"<string>\",\n \"sort\": \"<string>\",\n \"tickers\": \"<string>\",\n \"topic_group_by\": \"or\",\n \"topics\": \"<string>\",\n \"updatedSince\": 123\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/benzinga/news/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/benzinga/news/search
{
"operationId": "benzinga.news.search",
"method": "POST",
"path": "/apis/v1/benzinga/news/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"properties": {
"authors": {
"description": "Comma-separated authors. Set it to restrict to a particular desk or writer.",
"type": "string"
},
"channels": {
"description": "Comma-separated Benzinga channels to restrict to, for example Earnings or Analyst Ratings.",
"type": "string"
},
"content_types": {
"description": "Comma-separated content types. Set it when you need to keep the feed to a specific content type.",
"type": "string"
},
"cusips": {
"description": "Comma-separated CUSIPs, maximum 50; requires a license agreement. Use only when the caller supplies CUSIPs.",
"type": "string"
},
"date": {
"description": "A single day to query, yyyy-mm-dd. Use it instead of dateFrom and dateTo when the caller names one date.",
"type": "string"
},
"dateFrom": {
"description": "Earliest publication date, yyyy-mm-dd. Set it whenever the caller asks about a period rather than a single day.",
"type": "string"
},
"dateTo": {
"description": "Latest publication date, yyyy-mm-dd. Pair it with dateFrom to bound a period.",
"type": "string"
},
"displayOutput": {
"default": "headline",
"description": "How much of each story to return: headline only, abstract (headline plus teaser) or full body text. Set full only when you need to quote the story.\n\nProvider reference: allowed values [\"full\", \"abstract\", \"headline\"]; default \"headline\".",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"full",
"abstract",
"headline"
]
}
},
"format": {
"description": "Desired response format. Set text only when you want plain text rather than the default JSON structures.\n\nProvider reference: allowed values [\"text\"].",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"text"
]
}
},
"importance": {
"description": "Importance level filter. Set it when the caller only wants the market-moving stories.",
"type": "string"
},
"importanceRank": {
"description": "Importance rank from 1 to 5. Set a low number to keep only the highest-ranked stories.\n\nProvider reference: minimum 1; maximum 5.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 5,
"min": 1
}
},
"isin": {
"description": "Comma-separated ISINs, maximum 50. Use it when the caller identifies companies by ISIN rather than ticker.",
"type": "string"
},
"page": {
"default": 0,
"description": "Page offset, limited to 0-100000. Increase it to read past the first page of results rather than widening the date range.\n\nProvider reference: maximum 100000; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 100000
}
},
"pageSize": {
"default": 15,
"description": "Stories to return, maximum 100. Raise it when you want a full day of coverage in one call.\n\nProvider reference: maximum 100; default 15.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 100
}
},
"primaryTickers": {
"description": "Comma-separated primary ticker symbols. Use it instead of tickers when you want only stories whose primary subject is that company.",
"type": "string"
},
"publishedSince": {
"description": "Unix timestamp in UTC; set it to pull and sort by stories published since that moment.",
"type": "number"
},
"region": {
"description": "Region filter, for example 'ca' or 'canada' for Canadian content. Set it when the caller scopes the question to a market.",
"type": "string"
},
"sort": {
"description": "Sort order as field:direction. Use created:asc to read a period forwards, or updated:desc when tracking edits.\n\nProvider reference: allowed values [\"id:asc\", \"id:desc\", \"created:asc\", \"created:desc\", \"updated:asc\", \"updated:desc\"].",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"id:asc",
"id:desc",
"created:asc",
"created:desc",
"updated:asc",
"updated:desc"
]
}
},
"tickers": {
"description": "Comma-separated ticker symbols, maximum 50. Set this whenever the caller names a company.",
"type": "string"
},
"topic_group_by": {
"default": "or",
"description": "Logical operator for the topics query. Set and when every topic must appear, or leave as or to match any.\n\nProvider reference: allowed values [\"and\", \"or\"]; default \"or\".",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"and",
"or"
]
}
},
"topics": {
"description": "Comma-separated words or phrases matched against title, tags and body in that order of priority. Use it when the caller asks about a subject rather than a company.",
"type": "string"
},
"updatedSince": {
"description": "Unix timestamp in UTC; set it to your last sync time to pull only stories updated since then.",
"type": "number"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.003 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Matching stories, most recent first, with the channels and tickers each was filed under.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
id | string | Story id. |
title | string | Headline. |
teaser | string | Teaser, when displayOutput includes it. |
created | string | Publication timestamp. |
url | string | Canonical story URL. |
stocks | object[] | Tickers the story is filed against. |
channels | object[] | Channels the story ran in. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.