# Badge Queries - data in csv or other db?

**URL:** https://meta.discourse.org/t/badge-queries-data-in-csv-or-other-db/62158
**Category:** Support
**Created:** [5. Mai 2017 um 10:45 UTC](https://meta.discourse.org/t/badge-queries-data-in-csv-or-other-db/62158 "2017-05-05T10:45:56Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2. Juni 2019 um 17:41 UTC](https://meta.discourse.org/t/badge-queries-data-in-csv-or-other-db/62158/5 "2019-06-02T17:41:24Z")

</div>

The easiest way to grant a badge based on activity that occurs outside of Discourse would be to create a custom badge on Discourse through the UI, and then grant the badge through the Discourse API. See [Grant a custom badge through the API](https://meta.discourse.org/t/how-to-grant-a-custom-badge-through-the-api/103270) for details.

---

_[View the full topic](https://meta.discourse.org/t/badge-queries-data-in-csv-or-other-db/62158)._
