# SPARQL endpoint for stardog cloud

**URL:** <https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111>\
**Category:** Support\
**Created:** [October 16, 2024, 6:04am UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111 "2024-10-16T06:04:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![explorer](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@explorer](https://community.stardog.com/u/explorer)\
**Post date:** [October 16, 2024, 6:04am UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/1 "2024-10-16T06:04:24Z")

</div>

Is it possible to expose my stardog cloud database and be able to query SPARQL by connecting to the endpoint?

---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [October 16, 2024, 12:10pm UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/3 "2024-10-16T12:10:10Z")

</div>

Yes, you can access your Stardog Cloud endpoint using the Stardog CLI tools and also via an HTTPS API. See [Accessing API Endpoint | Stardog Documentation Latest](https://docs.stardog.com/stardog-cloud/accessing-api-endpoint) for more details.

---

<div class="post-metadata">

**Author:** ![explorer](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@explorer](https://community.stardog.com/u/explorer)\
**Post date:** [October 16, 2024, 1:50pm UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/4 "2024-10-16T13:50:01Z")

</div>

am trying to connect to the SPARQL endpoint of my database  
I created a user called root and password and gave it all the required permissions  
Yet i am getting 401 error due to authentication  
How to fix it?

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [October 16, 2024, 5:41pm UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/5 "2024-10-16T17:41:52Z")

</div>

Hi,

On top of specifying the remote server in the CLI command, you also need to ensure that you're passing in `-u root` and either `-P` or `-p password`, otherwise the CLI will use the default admin/admin.

---

<div class="post-metadata">

**Author:** ![Lars\_Wikstrom](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/lars_wikstrom/32/2229_2.png) [@Lars\_Wikstrom](https://community.stardog.com/u/Lars_Wikstrom)\
**Post date:** [December 4, 2024, 3:37pm UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/6 "2024-12-04T15:37:18Z")

</div>

Sorry for interrupting this thread with a neighbouring question. I am wondering if there is a way to specify the database in the Stardog endpoint uri (e.g. through query parameters) for remote SPARQL access. E.g. I have the endpoint [https://xx-yyyyyyyy.stardog.cloud:5820](https://xx-yyyyyyyy.stardog.cloud:5820) and the database "zzzzzz" (plus user/pwd handled separately). E.g. corresponding way in GraphDB is base-uri/repositories/my-repo.

---

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [December 4, 2024, 8:21pm UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/7 "2024-12-04T20:21:27Z")

</div>

Hi Lars,

[https://xx-yyyyyyyy.stardog.cloud:5820/{db}/query](https://xx-yyyyyyyy.stardog.cloud:5820/%7Bdb%7D/query) would be your endpoint for read SPARQL queries, see the HTTP API at [API Reference | ReDoc](https://stardog-union.github.io/http-docs/#tag/SPARQL/operation/getSparqlQuery)

Cheers,  
Pavel

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [July 3, 2025, 7:10am UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/8 "2025-07-03T07:10:36Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [February 21, 2026, 10:12am UTC](https://community.stardog.com/t/sparql-endpoint-for-stardog-cloud/5111/9 "2026-02-21T10:12:29Z")

</div>


