Article Query Examples
Retrieve a single article by ID
This query retrieves a specific news article by its ID.
python
params = {
"id": "314",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&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": "314",
"export": "json",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&export=json&api_key=YOUR_API_KEY" -o article_314.json
Export a specific article as XML
This query retrieves a specific article and exports it as XML.
python
params = {
"id": "314",
"export": "xml",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&export=xml&api_key=YOUR_API_KEY" -o article_314.xml
Export a specific article as XLSX
This query retrieves a specific article and exports it as XLSX.
python
params = {
"id": "314",
"export": "xlsx",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&export=xlsx&api_key=YOUR_API_KEY" -o article_314.xlsx
Export a specific article as CSV
This query retrieves a specific article and exports it as CSV.
python
params = {
"id": "314",
"export": "csv",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&export=csv&api_key=YOUR_API_KEY" -o article_314.csv
Retrieve multiple specific articles
This query retrieves multiple specific articles by their IDs.
python
params = {
"id": "314,315,316",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314,315,316&api_key=YOUR_API_KEY"
Retrieve and analyze a specific article
This query retrieves a specific article with detailed analysis parameters.
python
params = {
"id": "314",
"include.analysis": "true",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&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": "314",
"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=314&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": "314",
"translate.to": "fr",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/article?id=314&translate.to=fr&api_key=YOUR_API_KEY"