4

In my earlier question How to get node IDs from drupal.org?, I can get the XML data of a node by going to https://www.drupal.org/api-d7/node/274365.xml where 274365 is the node id of a particular page. In similar way I can access all the node in drupal.org Website.

Now I want the same kind of XML data for a node pages in https://api.drupal.org.

For example what is the XML data page for https://api.drupal.org/api/drupal/includes!module.inc/group/hooks/7 ?

  • I highly doubt an XML version of every page on Drupal.org exists - what leads you to believe it does? Or are you just hoping? – Clive Apr 9 '15 at 8:44
  • I believe that every page in drupal.org has a XML version. But I don't know about api.drupal.org. – user46121 Apr 9 '15 at 8:47
  • Does it? Where? – Clive Apr 9 '15 at 8:50
  • Just by replacing the node ID. I got these information from the link you shared drupal.org/api . – user46121 Apr 9 '15 at 9:03
  • 1
    Hah, I should really read everything I link to ;) Cheers for the info, that's useful to know. I'm not sure api.drupal.org has anything similar, but let's hope it does... – Clive Apr 9 '15 at 9:19
1

I was curious about this, too. Below is a dump of the API in JSON format. Unfortunately I don't think the same is available in XML format, or that the query can be further refined to, say, retrieve only a list of hooks.

URL structure:

api/(project)/full_list/(branch)?limit=M&page=N

https://api.drupal.org/api/drupal/full_list/7?limit=20&page=0

Source: Issue# 2369135: Public API into api.drupal.org?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy