Using ckan-parliament-uk with parliament.uk

Python integration

Install
pip install ckan-parliament-uk
Quick start
import ckan-parliament-uk

client = ckan_parliament_uk.Client("YOUR_API_KEY")
Returns a list of oral questions
curl \
  http://oralquestionsandmotions-api.parliament.uk/oralquestions/list
Returns a single Early Day Motion by ID
curl \
  http://oralquestionsandmotions-api.parliament.uk/EarlyDayMotion/{id}
Returns a list of Early Day Motions
curl \
  http://oralquestionsandmotions-api.parliament.uk/EarlyDayMotions/list
SDK on GitHub 📄 API Docs
SDK
ckan-parliament-uk
Python
API
parliament.uk
parliament.uk:oralquestions
Other SDKs for parliament.uk
the_parliament_crew_ai
At a glance
Language Python
Endpoints4
Base URLhttp://oralquestionsandmotions-api.parliament.uk