# Accessing GraphQL API from cURL

**URL:** <https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41>\
**Category:** API & Programming\
**Created:** [August 27, 2020, 11:33pm UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41 "2020-08-27T23:33:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![easley](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/easley/32/17_2.png) [@easley](https://community.aristotlemetadata.com/u/easley)\
**Post date:** [August 27, 2020, 11:33pm UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41/1 "2020-08-27T23:33:25Z")

</div>

Hi, I’m trying to make requests to the GraphQL JSON API through cURL, because I’ve got an interesting data visualisation project in the works, but I’m struggling to use it appropriately, and was wondering if anyone in the community had any experience with using the GraphQL API?

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/michael/32/188_2.png) [@Michael](https://community.aristotlemetadata.com/u/Michael)\
**Post date:** [September 1, 2020, 12:57pm UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41/3 "2020-09-01T12:57:34Z")

</div>

Try something like this:

curl  
-X POST  
-H “Content-Type: application/json”  
-H “authorization: Bearer xxx”  
–data ‘{ “query”: “{glossaryItems{edges{node{id}}}}” }’  
https://aristotle\_server\_name\_here/api/graphql

With xxx being your token number.

Hope that helps

---

<div class="post-metadata">

**Author:** ![sam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/sam/32/3_2.png) [@sam](https://community.aristotlemetadata.com/u/sam)\
**Post date:** [September 1, 2020, 11:53pm UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41/4 "2020-09-01T23:53:48Z")

</div>

Thanks for the update @Michael.  
@easley if you are looking for information about the token that Michael mentioned, I’ve linked to our API training material in another post here: [Data Visualisation Tool Access to Aristotle](https://community.aristotlemetadata.com/t/data-visualisation-tool-access-to-aristotle/26/6)

---

<div class="post-metadata">

**Author:** ![easley](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/easley/32/17_2.png) [@easley](https://community.aristotlemetadata.com/u/easley)\
**Post date:** [September 2, 2020, 12:09am UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41/5 "2020-09-02T00:09:03Z")

</div>

Thanks @Michael and @sam, really appreciate the help. I think I’ll be able to make a proper start now.

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/michael/32/188_2.png) [@Michael](https://community.aristotlemetadata.com/u/Michael)\
**Post date:** [September 2, 2020, 12:49am UTC](https://community.aristotlemetadata.com/t/accessing-graphql-api-from-curl/41/6 "2020-09-02T00:49:00Z")

</div>

No worries, have fun!
