HOw to retrieve NPA and NXX from CNAC.ca using splunk query.
You cannot. Splunk does not interact with external Web site directly.
You can create a custom command to do so. See Create a custom search command for Splunk Cloud Platform or Splunk Enterprise. Hope this helps.