Skip to content

Source Query Examples

Getting news from a specific source

This query retrieves news articles from the CNN domain.

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

News from multiple sources

This query retrieves news articles from CNN and BBC domains.

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

Filtering by source and language

This query retrieves news articles from CNN in English.

python
params = {
    "source.domain": "cnn.com",
    "language": "en",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.domain=cnn.com&language=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": "0.5",
    "source.rank.opr.max": "0.9",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?source.rank.opr.min=0.5&source.rank.opr.max=0.9&api_key=YOUR_API_KEY"

Cross-regional media bias analysis

This query analyzes differences in climate change coverage from different countries.

python
params = {
    "topic.id": "climate_change",
    "source.country.code": "us,ru,cn",
    "sort.by": "sentiment.overall.score",
    "published_at.start": "2023-01-01",
    "published_at.end": "2023-12-31",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?topic.id=climate_change&source.country.code=us,ru,cn&sort.by=sentiment.overall.score&published_at.start=2023-01-01&published_at.end=2023-12-31&api_key=YOUR_API_KEY"

Aggregating news from highly trusted financial sources

This query collects financial news from authoritative sources with high ratings.

python
params = {
    "category.id": "2",
    "source.rank.opr.min": "0.8",
    "source.domain": "wsj.com,ft.com,bloomberg.com,reuters.com",
    "published_at.start": "2023-01-01",
    "sort.by": "published_at",
    "sort.order": "desc",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=2&source.rank.opr.min=0.8&source.domain=wsj.com,ft.com,bloomberg.com,reuters.com&published_at.start=2023-01-01&sort.by=published_at&sort.order=desc&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": "3",
    "source.domain": "nytimes.com,washingtonpost.com,foxnews.com,breitbart.com",
    "title": "election,presidency,congress",
    "published_at.start": "2023-01-01",
    "sort.by": "source.domain",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=3&source.domain=nytimes.com,washingtonpost.com,foxnews.com,breitbart.com&title=election,presidency,congress&published_at.start=2023-01-01&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": "4",
    "source.country.code": "us,gb,in,sg",
    "title": "artificial intelligence,machine learning,robotics",
    "published_at.start": "2023-01-01",
    "sort.by": "source.country.code",
    "api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=4&source.country.code=us,gb,in,sg&title=artificial%20intelligence,machine%20learning,robotics&published_at.start=2023-01-01&sort.by=source.country.code&api_key=YOUR_API_KEY"

Specialized industry source analysis

This query focuses on cryptocurrency coverage from specialized financial and technology sources.

python
params = {
    "topic.id": "cryptocurrency",
    "source.domain": "coindesk.com,cointelegraph.com,decrypt.co,theblockcrypto.com",
    "published_at.start": "2023-01-01",
    "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=cryptocurrency&source.domain=coindesk.com,cointelegraph.com,decrypt.co,theblockcrypto.com&published_at.start=2023-01-01&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"