404 Error | XM Community
Skip to main content
{"meta":{"httpStatus":"404 - Not Found","error":{"errorMessage":"The requested resource does not exist."}}}



I'm probably not using the correct Datacenter, but I'm not finding any other ways of finding it other than from this page on the Documentation.

https://api.qualtrics.com/docs/root-url



Any insight would be helpful
@Goodski when you use the incorrect data center it should respond with this

```

"Request proxied. For faster response times, use this host instead: yourdatacenterid.qualtrics.com"

```

What kind of request are you trying to make?
Right now I'm just trying to get a 200 OK response. Sorry I'm new to API's.



so far I'm just want to connect I'm sure I missing at least a one step. I am trying to pull up https://yourorganizationid.yourdatacenterid.qualtrics.com I'm not sure if posting that actual org id and data center would be helpful.

Thanks
https://yourorganizationid.yourdatacenterid.qualtrics.com/API
Are you using Postman or some other API testing tool to make your requests or like a scripting language?
eventually, I would like to bring the data into sheets via google appscript. I have downloaded postman. Do you know if there are any tutorials on postman that use qualtrics?
Ok, I will give you a brief example of how to retrieve the surveys in your account.



!



This is Postman, I am making a request to retrieve a list of surveys in my account.



The documentation can be found here https://api.qualtrics.com/docs/list-surveys



1. According to the documentation this is a GET request so I set POSTMAN to GET



2. The URL according to the documentation is https://yourdatacenterid.qualtrics.com/API/v3/surveys so I use that URL.



3. To authenticate my request I switch to the Headers tab in Postman and enter X-API-TOKEN as my header Key and my API token (found in your Qualtrics account settings) as my Value.



4. After I click SEND in POSTMAN this body of JSON is returned.



Here is an example of the returned JSON:

```

{

"result": {

"elements": [

{

"id": "SV_0SQrolfz0XoHeFT",

"name": "Timeliness of Order Delivery - Survey - V2",

"ownerId": "UR_dj6xQpdGIpPOyHz",

"lastModified": "2018-04-20T19:15:55Z",

"isActive": true

},

{

"id": "SV_1AjJgxCuz7YcQPX",

"name": "Date Picker",

"ownerId": "UR_dj6xQpdGIpPOyHz",

"lastModified": "2017-11-29T19:57:52Z",

"isActive": false

}

],

"nextPage": null

},

"meta": {

"httpStatus": "200 - OK",

"requestId": "ec70fd52-6731-43ce-9117-b3a861450ffd",

"notice": "Request proxied. For faster response times, use this host instead: az1.qualtrics.com"

}

}

```

Note that the datacenter ID I should be using is az1.qualtrics.com
Thank you very much I was able to access the api through postman
@Goodski Awesome! Play around with that and get a feel for how to construct the API requests. Once you have a handle on that you should be able to translate that knowledge to using the requests with Google App Script. I have never used it so probably can't help with it.



Feel free to message me directly or post here if you have any questions about making the API requests.

Leave a Reply