JavaScript to call the Royal Mail API | Experience Community
Skip to main content

JavaScript to call the Royal Mail API

  • February 3, 2026
  • 1 reply
  • 30 views

grayat
Forum|alt.badge.img+2

Good morning all,

Has anyone used Royal Mail address checker (AddressNow/Postcode Anywhere) into a Qualtrics survey using JavaScript to call the Royal Mail API within a text entry question? Thank you.

Glenn

1 reply

Lpena
Qualtrics Employee
Forum|alt.badge.img+3
  • Qualtrics Employee
  • February 19, 2026

Hello, Grayat!

It’s definitely technically possible to get Royal Mail AddressNow or Postcode Anywhere running inside your Qualtrics survey, even if there isn't a "plug-and-play" button for it. Since Qualtrics lets you add custom JavaScript to text entry questions, you can use AJAX or fetch calls to ping the Royal Mail API in real-time as a respondent types. Just keep an eye on things like cross-origin (CORS) permissions and making sure your API key isn't exposed in a way that's easily scraped.

If handling all that JavaScript feels like a bit much, another solid route is using the Web Service element in the Survey Flow to handle the API call server-side, which is usually a bit more secure for authentication. 🛡️

If you run into any weird errors or the API isn't behaving as expected within the Qualtrics environment, it might be worth touching base with the experts at the Customer Success Hub. They can take a closer look at your specific setup and help troubleshoot any underlying technical blockers: https://support-portal.qualtrics.com/