TEC Register
-
TEC Register
The data file contains the latest version of the TEC Register including all changes up to publication. This file will be updated twice weekly on Tuesdays and Fridays.
Please note:
Project Nos: We plan to phase out the use of Project IDs in favour of Project Nos which are now found included in the Dataset - we will continue to include Project IDs until the end of this year. If there is more than one Stage the Project No will be followed by a dash and the relevant stage number.
Project IDs: are Case Sensitive i.e. a0l4L0000005iPb; a0l4L0000005ipb and a0l4L0000005ipB relate to different projects.
Staging: If a project includes staged TEC there will be an associated number in the Stage column. Some projects have two separate lines without numbers - this usually indicates that the project is already built and the Customer is perhaps adding a different type of generation or building new generation to be connected at a future date. Once built the second line will fall away and the TEC incorporated into the overall project.
CKAN Data API
Access resource data via a web API with powerful query support.
Further information in the
main CKAN Data API and DataStore documentation
.
The Data API can be accessed via the following actions of the CKAN action API.
Query |
https://data.nationalgrideso.com/api/3/action/datastore_search
|
---|---|
Query (via SQL) |
https://data.nationalgrideso.com/api/3/action/datastore_search_sql
|
A simple ajax (JSONP) request to the data API using jQuery.
var data = { resource_id: '17becbab-e3e8-473f-b303-3806f43a6a10', // the resource id limit: 5 // get 5 results }; $.ajax({ url: 'https://data.nationalgrideso.com/api/3/action/datastore_search', data: data, dataType: 'jsonp', success: function(data) { alert('Total results found: ' + data.result.total) } });
A simple ajax (JSONP) request to the data API using jQuery.
import urllib2 url = 'https://data.nationalgrideso.com/api/3/action/datastore_search?resource_id=17becbab-e3e8-473f-b303-3806f43a6a10&limit=5' fileobj = urllib2.urlopen(url) print fileobj.read()