Article Query Examples
Retrieve a single article by ID
This query retrieves a specific news article by its ID.
python
params = {
"id": "3036291250",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&api_key=YOUR_API_KEY"Export a specific article as JSON
This query retrieves a specific article and exports it as JSON.
python
params = {
"id": "3036291250",
"export": "json",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&export=json&api_key=YOUR_API_KEY" -o article_3036291250.jsonExport a specific article as XML
This query retrieves a specific article and exports it as XML.
python
params = {
"id": "3036291250",
"export": "xml",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&export=xml&api_key=YOUR_API_KEY" -o article_3036291250.xmlExport a specific article as XLSX
This query retrieves a specific article and exports it as XLSX.
python
params = {
"id": "3036291250",
"export": "xlsx",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&export=xlsx&api_key=YOUR_API_KEY" -o article_3036291250.xlsxExport a specific article as CSV
This query retrieves a specific article and exports it as CSV.
python
params = {
"id": "3036291250",
"export": "csv",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&export=csv&api_key=YOUR_API_KEY" -o article_3036291250.csvRetrieve multiple specific articles
This query retrieves multiple specific articles by their IDs.
python
params = {
"id": "3036291250,3036291468,3036291704",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250,3036291468,3036291704&api_key=YOUR_API_KEY"Retrieve and analyze a specific article
This query retrieves a specific article with detailed analysis parameters.
python
params = {
"id": "3036291250",
"include.analysis": "true",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&include.analysis=true&api_key=YOUR_API_KEY"Retrieve article with entity extraction
This query retrieves a specific article with detailed entity extraction information.
python
params = {
"id": "3036291250",
"include.entities": "true",
"entity.type": "PERSON,ORGANIZATION,LOCATION",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&include.entities=true&entity.type=PERSON,ORGANIZATION,LOCATION&api_key=YOUR_API_KEY"Retrieve article translation
This query retrieves a specific article and requests a translation to a target language.
python
params = {
"id": "3036291250",
"translate.to": "fr",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/article?id=3036291250&translate.to=fr&api_key=YOUR_API_KEY"