API Code #6

Closed ikruttenberg opened this issue · 3 comments
ikruttenberg commented 4 months ago

For a WebGIS project at CSU Northridge, I need an API request key so that I can set up an AJAX request for Javascript. The url to get the request for is: data.gov.uk/data/api/service/transport/naptan_railway_stations/nearest?

Owner
System Administrator commented 4 months ago

Hi,

There is no API key required for /data/api, however you do need to perform the AJAX/CORS preflight request (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests).

Also, it is worth noting as per https://data.gov.uk/data/api/ you should not rely on this service being:

  1. Always available
  2. Unchanging

So if you have a need for this to be available for more than a few weeks, I would suggest finding an alternative approach.

Ross (sysadmin).

Owner
System Administrator commented 4 months ago

Also, if you need further help with this, please use https://data.gov.uk/contact as this will go directly to me.

Owner
System Administrator commented 4 months ago

Closing.