Expose historical project usage statistics via the API
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3560293. -->
Reported by: [andileco](https://www.drupal.org/user/2054544)
Related to !427
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I am writing a module that helps module maintainers keep track of the usage of their modules. The data source that I have been able to find is this:</p>
<p><a href="https://www.drupal.org/jsonapi/index/project_modules?filter%5Bmachine_name%5D=charts">https://www.drupal.org/jsonapi/index/project_modules?filter%5Bmachine_name%5D=charts</a></p>
<p>The response has the following properties/values inside "data" > "attributes":</p>
<pre> "field_active_installs": "{"8.x-3.x":1671,"8.x-4.x":2,"5.0.x":2709,"5.1.x":7914}"<br> "field_active_installs_total": 12296,</pre><p>However, as far as I can tell, it doesn't provide a way to get historical data about project usage, as you can see on the <a href="https://www.drupal.org/project/usage/charts">https://www.drupal.org/project/usage/charts</a> page.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>See above.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue