Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
How to get plain html content with images from wikipedia API

I am trying to get html content with all images from wikipeida using wikipeida's official API. Currently, The api i use only return html content

This is what i am Using

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=google&format=json&origin=*

Thanks in advance ๐Ÿ™

about 4 years ago ยท Santiago Gelvez
1 answers
Answer question

0

You can get text and images using the following query example

https://en.wikipedia.org/w/api.php?action=parse&prop=text|images&page=google&format=json&origin=*

Then for each image, you can get the url, which can be used to download the image. For example

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3ASemi-protection-shackle.svg&iiprop=url

Another example to get urls for all images on a page

https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&rawcontinue=1&titles=google&generator=images&iiprop=url
about 4 years ago ยท Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!