# API per i dati del report Admin

**URL:** <https://meta.discourse.org/t/api-for-admin-report-data/242426>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [20 Ottobre 2022, 12:08am UTC](https://meta.discourse.org/t/api-for-admin-report-data/242426 "2022-10-20T00:08:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![codetricity](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codetricity/32/3773_2.png) [@codetricity](https://meta.discourse.org/u/codetricity)\
**Post date:** [20 Ottobre 2022, 3:48pm UTC](https://meta.discourse.org/t/api-for-admin-report-data/242426/3 "2022-10-20T15:48:02Z")

</div>

Grazie per il tuo aiuto. Ecco lo script curl che sto usando

```plaintext
curl --request GET \
  --url https://community.domain.com/admin/reports/staff_logins.json \
  --header '"Api-Key": "stringForAPIKey"' \
  --header '"Api-Username": "stringForUsername"' \
  --header '"Content-Type": "application/json"'

```

Ricevo un errore 404

Puoi inviarmi uno script curl che funzioni sul tuo sistema?

Sto usando Discourse 2.9.0.beta10

L’utente è un amministratore.  
La chiave API funziona per altri comandi API elencati sul sito [Discourse API Documentation](https://docs.discourse.org/).

Grazie ancora.

---

_[View the full topic](https://meta.discourse.org/t/api-for-admin-report-data/242426)._
