# GraphQL api for Discourse

**URL:** https://meta.discourse.org/t/graphql-api-for-discourse/157147
**Category:** Support
**Created:** [July 8, 2020, 1:34pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147 "2020-07-08T13:34:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Minhaj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/minhaj/32/137595_2.png) [@Minhaj](https://meta.discourse.org/u/Minhaj)
#### Post date: [July 8, 2020, 1:34pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/1 "2020-07-08T13:34:13Z")

</div>

I want to port the issues from GitHub to Discourse for my use case. My question is that  
1- Is there any GraphQL API available to do it.  
2- Can someone point to me the available documentation with sample code for REST API.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [July 8, 2020, 1:39pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/2 "2020-07-08T13:39:34Z")

</div>

1. No there is not.
2. Sure, check out [https://docs.discourse.org/](https://docs.discourse.org/) and [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

---

<div class="post-metadata">

### Author: ![Minhaj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/minhaj/32/137595_2.png) [@Minhaj](https://meta.discourse.org/u/Minhaj)
#### Post date: [July 8, 2020, 2:23pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/3 "2020-07-08T14:23:31Z")

</div>

Any Go library available to ease the task?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [July 8, 2020, 2:27pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/4 "2020-07-08T14:27:09Z")

</div>

Not that I’m aware of, no. There was previously [an importer](https://meta.discourse.org/t/introducing-github-issues-to-discourse/46671), but it was discontinued due to lack of use/interest. Not sure if the code was open sourced or not.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [July 27, 2020, 2:21pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/5 "2020-07-27T14:21:26Z")

</div>

Hi @Minhaj, I’m currently building a `discourse-graphql` plugin as a personal project. Let me know if you’re looking for a specific query field and I can add it to the plugin for you.

[https://github.com/tgxworld/discourse-graphql](https://github.com/tgxworld/discourse-graphql)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 26, 2020, 2:21pm UTC](https://meta.discourse.org/t/graphql-api-for-discourse/157147/6 "2020-08-26T14:21:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
