How to List all Opted Out Directory Contacts when api call is limited to only 100 results? | XM Community
Skip to main content

Hello,
Is there any way to return more than 200 results using the API? We have over 2,000 and I would like to grab them all in one call.
My python code:

import http.client
conn = http.client.HTTPSConnection("yul1.qualtrics.com")
headers = {
  'Content-Type': "application/json",
  'X-API-TOKEN': "1234567890"
  }
conn.request("GET", "/API/v3/directories/POOL_1234567890/contacts/optedOutContacts", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

Be the first to reply!

Leave a Reply