Skip to content

Source Query Examples

Getting news from a specific source

This query retrieves news articles from The Guardian domain.

python
params = {
    "source.domain": "theguardian.com",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.domain=theguardian.com&api_key=YOUR_API_KEY"

News from multiple sources

This query retrieves news articles from The Guardian and The New York Times domains.

python
params = {
    "source.domain": "theguardian.com,nytimes.com",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.domain=theguardian.com,nytimes.com&api_key=YOUR_API_KEY"

Filtering by source and language

This query retrieves news articles from Fox News in English.

python
params = {
    "source.domain": "foxnews.com",
    "language.code": "en",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.domain=foxnews.com&language.code=en&api_key=YOUR_API_KEY"

Filtering by source rating

This query retrieves news articles with a source rating from 0.5 to 0.9.

python
params = {
    "source.rank.opr.min": "5",
    "source.rank.opr.max": "7",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.rank.opr.min=5&source.rank.opr.max=8&api_key=YOUR_API_KEY"

Cross-regional media bias analysis

This query analyzes differences in green energy coverage from different countries.

python
params = {
    "topic.id": "industry.green_energy_news",
    "source.country.code": "us,de,gb",
    "sort.by": "sentiment.overall.score",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?topic.id=industry.green_energy_news&source.country.code=us,de,gb&sort.by=sentiment.overall.score&api_key=YOUR_API_KEY"

Political news comparison across ideological spectrums

This query compares political coverage between liberal and conservative-leaning news sources.

python
params = {
    "category.id": "medtop:11000000",
    "source.domain": "nytimes.com,foxnews.com,theguardian.com",
    "title": "election,president,congress",
    "sort.by": "source.domain",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:11000000&source.domain=nytimes.com,foxnews.com,theguardian.com&title=election,president,congress&sort.by=source.domain&api_key=YOUR_API_KEY"

Regional technology coverage comparison

This query analyzes how technology innovations are covered by sources from different regions.

python
params = {
    "category.id": "medtop:13000000",
    "source.country.code": "us,gb,in,de",
    "title": "artificial intelligence,machine learning,robotics",
    "sort.by": "source.country.code",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:13000000&source.country.code=us,gb,in,de&title=artificial%20intelligence,machine%20learning,robotics&sort.by=source.country.code&api_key=YOUR_API_KEY"

Specialized industry source analysis

This query focuses on cryptocurrency coverage from specialized sources.

python
params = {
    "topic.id": "industry.crypto_news",
    "title": "Bitcoin,Ethereum,blockchain",
    "sort.by": "sentiment.overall.score",
    "sort.order": "desc",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?topic.id=industry.crypto_news&title=Bitcoin,Ethereum,blockchain&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"