How to get node IDs from drupal.org? In Drupal, we can get argument values using arg() function. drupal.org uses path alias. For example https://www.drupal.org/project/elysia_cron is actually https://www.drupal.org/node/274365, the node with ID equal to 274365.

How can I get the node ID of a project page from drupal.org?
As already mentioned in the comments, you could parse the HTML from the web page and extract the node ID from a class value. 

But that's very messy, and it'll break if Drupal.org changes its markup for node pages.

A more robust approach would be to use the API, and consume the project's update feed. That feed contains the raw URL of the project node, from which you can get the ID.

I'll leave the PHP implementation to you, but the steps are as simple as:


Load a DOMDocument up with the contents of https://updates.drupal.org/release-history/MODULENAME/all.
From the root node, select the first &lt;release_link&gt; element and extract its value.
Extract the nid from that URL.


I realise that method also relies on the XML not being changed, but I think that's less likely to change than the markup on the HTML version.