How to Find News Articles With Images or Videos
Find articles with images, videos or a specific number of media items
Written by Beatrice Riddick
June 26, 2026
Updated October 16, 2026
How to find news articles with images or videos
Add has_image=1 to find articles with at least one image, or has_video=1 for articles with at least one video. Send both parameters when you need both types of media.
curl "https://api.apitube.io/v1/news/everything?has_image=1&api_key=YOUR_API_KEY"
You can also send your key in the X-API-Key header. Omit the flags to include articles with and without media.
How do has_image and has_video work?
has_image=1 requires one or more images; has_image=0 requires no images. The video flag works the same way: 1 requires a video and 0 requires none.
Other values return HTTP 400: ER0041 for has_image and ER0042 for has_video. Read each article’s media array to get the media URLs and types.
How to require an exact or minimum number of images
media.images.count=3 means exactly three images. For three or more, use media.images.count.min=3.
This request requires at least two images:
curl "https://api.apitube.io/v1/news/everything?media.images.count.min=2&api_key=YOUR_API_KEY"
Add a maximum to choose a range. For two to five images, inclusive:
curl "https://api.apitube.io/v1/news/everything?media.images.count.min=2&media.images.count.max=5&api_key=YOUR_API_KEY"
The video equivalents are media.videos.count, media.videos.count.min and media.videos.count.max.
How to find articles with both images and a video
Use is_media_rich=1 to require at least one image and at least one video:
curl "https://api.apitube.io/v1/news/everything?is_media_rich=1&api_key=YOUR_API_KEY"
This flag does not mean an article has many images. An article with images alone will not match.
How to filter for high-resolution images
has_hq_images=1 requires an image at least 1200 pixels wide. has_4k_images=1 raises the minimum width to 3840 pixels.
curl "https://api.apitube.io/v1/news/everything?has_hq_images=1&api_key=YOUR_API_KEY"
For these two flags, 0 leaves the resolution filter off. It does not select low-resolution images.
How to combine media filters with other parameters
An article must match every media requirement you add. In this example, has_image=1 requires an image and the sort parameters put articles with the most images first:
curl "https://api.apitube.io/v1/news/everything?has_image=1&sort.by=media.images.count&sort.order=desc&api_key=YOUR_API_KEY"
This example sorts by image count, regardless of publication date. Add a date filter if you need recent articles only.
You can also filter by source or domain or source political bias. See the News API parameters reference for the full list.
Which endpoints support the media filters?
Use these parameters on /v1/news/everything, /v1/news/top-headlines and /v1/news/count. The count endpoint lets you check how many articles match your media requirements without retrieving the articles.
Common Questions
- Does has_image=1 mean exactly one image?
- Why does media.images.count=3 return so few results?
- How do I find articles with no media?
- What does is_media_rich require?
Does has_image=1 mean exactly one image?
No. It means at least one image. Use media.images.count=1 for exactly one.
Why does media.images.count=3 return so few results?
It excludes articles with fewer or more than three images. Use media.images.count.min=3 if you want three or more.
How do I find articles with no media?
Send both has_image=0 and has_video=0. Sending only one excludes that media type but still allows the other.
What does is_media_rich require?
At least one image and at least one video in the same article.