## TL;DR

The Diffbot Article API returns ALL images in an article by default in the images array - each with dimensions, a primary flag, and the URL. If your code only surfaces one image, check that you are iterating the full array and not just reading the first element or a summary field.

## Fix

1. The Diffbot Article API returns ALL images in an article by default in the images array - each with dimensions, a primary flag, and the URL.
   Expected: You get the expected result; the problem is gone.

## When to use

- You are dealing with this situation.
- The symptom matches: Diffbot Article API returns every image in the images array - iterate it instead of reading the first.

## When NOT to use

- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported per the linked source. Source: Stack Overflow question: https://stackoverflow.com/questions/25896697.

## Variant phrasings

### Diffbot Article API returns every image in the images array - iterate it instead of reading the first

## Why it happens

Stack Overflow (Diffbot API: How can I get multiple images using Diffbot in node.js?, answered): the Article API grabs all images in an article by default - they come back in the images array with pixelHeight, pixelWidth, diffbotUri, primary flag, and url. If you are only seeing one image, you are probably reading the wrong field or a truncated response, not hitting an API limit - the array holds every image Diffbot extracted from the article.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.

## Source

Stack Overflow question: https://stackoverflow.com/questions/25896697