Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8854657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:56:03+00:00 2026-06-14T13:56:03+00:00

Is there a direct API call where I can get titles from a wikipedia

  • 0

Is there a direct API call where I can get titles from a wikipedia page.

For e.g. from http://en.wikipedia.org/wiki/Chicago, I want to retrieve the following:

1 History
 1.1 Rapid growth and development
 1.2 20th and 21st centuries
2 Geography
 2.1 Topography
 2.2 Climate
3 Cityscape
 3.1 Architecture
so on ———–

I have looked at http://www.mediawiki.org/wiki/API:Lists/All, but couldn’t find an action which gives me above list from a wiki page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:56:04+00:00Added an answer on June 14, 2026 at 1:56 pm

    What you want is not a list of pages, so it’s not on the page you linked to. But it is possible to retrieve the list of section titles of some page. To do that, you use action=parse with prop=sections.

    For example, http://en.wikipedia.org/w/api.php?format=xml&action=parse&prop=sections&page=Chicago returns

    <api>
        <parse title="Chicago">
            <sections>
                <s toclevel="1" level="2" line="History" number="1" index="1" fromtitle="Chicago" byteoffset="8123" anchor="History"/>
                <s toclevel="2" level="3" line="Rapid growth and development" number="1.1" index="2" fromtitle="Chicago" byteoffset="12922" anchor="Rapid_growth_and_development"/>
                <s toclevel="2" level="3" line="20th and 21st centuries" number="1.2" index="3" fromtitle="Chicago" byteoffset="21558" anchor="20th_and_21st_centuries"/>
                <s toclevel="1" level="2" line="Geography" number="2" index="4" fromtitle="Chicago" byteoffset="28176" anchor="Geography"/>
                …
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to generate docs for REST api direct from a
Is there a direct API to get the currently logged in user's name with
Is there any GUI API that can be used together with DirectX other than
Is there a direct programmatic way to get a fill_parent View's pixel height and
Is there any formula to direct finding D.O.B from put Year,month and day's in
Is there any way to get direct URL to a JSF bean action method?
Is there any way I can direct display PDF files in modal boxes? I
I'm using the new Wi-Fi Direct API from google on Android 4.0 and in
http://code.google.com/apis/libraries/devguide.html I don't want to use Google's API key to load the various JS
I was wondering if there is an API that allows for direct communication between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.