79399646

Date: 2025-01-30 11:04:23
Score: 1
Natty:
Report link

This is the url I used to get the info I needed. The key, I think, is the chaining of '&prop=extracts|pageimages|info' in the request.

$url='https://en.wikipedia.org/w/api.php?action=query&format=json&prop=extracts|pageimages|info&inprop=url&exintro=1&explaintext=1&exsentences=5&piprop=original&pageids=' . $item->id;
$x=json_decode(file_get_contents($url), true);  
dump($x);   
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user1106252