Which play demo url can I use to access the DHIS2 api

I am trying to fetch some data using postman from a url endpoint but it is not working.

Most of the ones I tried were working before but now showing error 404.

I tried say: https://play.dhis2.org/2.40.6/api/dataSets?fields=*

@jetisco4u It seems all the URLs, including DHIS 2 Demo - Sierra Leone*, are working fine. If you’re still getting a 404 error, try the following:

  1. Credentials: Ensure you’re correct credentials

  2. Connectivity Check: Test the endpoint /api/system/info to confirm the API is accessible.

  3. Postman Settings: Double-check your Postman setup (e.g., headers, authorization) to ensure everything is correct.

1 Like

Well I don’t know why it’s not working for me. I make sure every detail is correct in the Postman setup.

1 Like

Try لوحة المعلومات*

I also had difficulty with your URL (was just given the login screen despite having basic auth inserted) however after iteration and using the (.im.)default through browser, I was able to see expected results

1 Like

Sorry can you show the full url with the ‘im’

1 Like

Sorry @jetisco4u not sure why its coming up in a different language–the hyperlink though should direct you

2 Likes

Hi @jetisco4u

Like @Matthew_Boddie mentioned, you need to use the URL that the instance is using. If you have used these requests a while ago i.e. ‘play.dhis2.org/instance’ they might have worked, but there’s a new way that the team is handling these play instances (using an instance manager), so the URL of each instance is not play.dhis2.org/instance it’ll be play.im.dhis2.org/instance.

Here’s how to get the correct URL:

  1. go to Play.dhis2.org
  2. click on the instance you want to use
  3. Check that the URL is the same, it will include the .im.

Thanks!