wikipedia api example site:stackoverflow.com - Search
About 63 results
    Kizdar net | Kizdar net | Кыздар Нет
    Upvotes78Top Answeredited Mar 18, 2022 at 16:29

    See this section in the MediaWiki API documentation, specifically involving getting the contents of the page.

    use the sandbox to test the API call.

    These are the key parameters.

    prop=revisions&rvprop=content&rvsection=0

    rvsection = 0 specifies to only return the lead section.

    See this example.

    http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=pizza

    To get the HTML, you can use similarly use action=parse

    • http://en.wikipedia.org/w/api.php?action=parse&section=0&prop=text&page=pizza

    Content Under CC-BY-SA license
    Was this helpful?
     
  1. How can I get Wikipedia content using Wikipedia's API?

    I want to get the first paragraph of a Wikipedia article. What is the API query to do so?
    ✓ See this section in the MediaWiki API documentation , specifically involving getting the contents of the page . use the sandbox to test the API call. These ar…
     
    Feedback
  2. Is there a Wikipedia API just for retrieve the content summary?

  3. Is there a Wikipedia API? - Stack Overflow

  4. Is there any API in Java to access wikipedia data

  5. html - How can I get a Wikipedia article's text using Python 3 with ...

  6. python - How to get plain text out of Wikipedia - Stack Overflow

  7. People also ask
  8. mediawiki - How to use Wikipedia API to get page statistics for all ...

  9. How to get results from the Wikipedia API with PHP?

  10. How to get Wikipedia page HTML with absolute URLs using the …

  11. php - How do I use the Wikipedia API - Stack Overflow

  12. Wikipedia API: how to retrieve multiple titles AND resolve …

  13. json - Searching Wikipedia using the API - Stack Overflow

  14. How can I retrieve Wiktionary word content? - Stack Overflow

  15. How to use wikipedia api if it exists? - Stack Overflow

  16. How can I extract all sections of a Wikipedia page in plain text?

  17. WebRequest to connect to the Wikipedia API - Stack Overflow

  18. How to get the Infobox data from Wikipedia? - Stack Overflow

  19. How to get Wikipedia content as text by API? - Stack Overflow

  20. Wikipedia API + Cross-origin requests - Stack Overflow

  21. Programmatically getting an article from WikiPedia in .NET

  22. python - Parsing a Wikipedia dump - Stack Overflow

  23. Is there any API function to query wikipedia api by website url?

  24. Wikipedia embedded in WinForms App Tutorial - Stack Overflow