{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/open-data:parliament-uk-oralquestions/published-early-day-motion-get":{"get":{"operationId":"open_data_parliament_uk_oralquestions_published_early_day_motion_get","summary":"Returns a single Early Day Motion by ID","description":"GET /EarlyDayMotion/{id}","tags":["open-data"],"parameters":[{"name":"id","in":"query","required":true,"description":"Early Day Motion with the ID specified.","schema":{"type":"integer","description":"Early Day Motion with the ID specified."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:parliament-uk-oralquestions/get-early-day-motions-list":{"get":{"operationId":"open_data_parliament_uk_oralquestions_get_early_day_motions_list","summary":"Returns a list of Early Day Motions","description":"GET /EarlyDayMotions/list","tags":["open-data"],"parameters":[{"name":"parameters.edmIds","in":"query","required":false,"description":"Early Day Motions with an ID in the list provided.","schema":{"type":"array","description":"Early Day Motions with an ID in the list provided."}},{"name":"parameters.uINWithAmendmentSuffix","in":"query","required":false,"description":"Early Day Motions with an UINWithAmendmentSuffix provided.","schema":{"type":"string","description":"Early Day Motions with an UINWithAmendmentSuffix provided."}},{"name":"parameters.searchTerm","in":"query","required":false,"description":"Early Day Motions where the title includes the search term provided.","schema":{"type":"string","description":"Early Day Motions where the title includes the search term provided."}},{"name":"parameters.currentStatusDateStart","in":"query","required":false,"description":"Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.currentStatusDateEnd","in":"query","required":false,"description":"Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.isPrayer","in":"query","required":false,"description":"Early Day Motions which are a prayer against a Negative Statutory Instrument.","schema":{"type":"boolean","description":"Early Day Motions which are a prayer against a Negative Statutory Instrument."}},{"name":"parameters.memberId","in":"query","required":false,"description":"Return Early Day Motions tabled by Member with ID provided.","schema":{"type":"integer","description":"Return Early Day Motions tabled by Member with ID provided."}},{"name":"parameters.includeSponsoredByMember","in":"query","required":false,"description":"Include Early Day Motions sponsored by Member specified","schema":{"type":"boolean","description":"Include Early Day Motions sponsored by Member specified"}},{"name":"parameters.tabledStartDate","in":"query","required":false,"description":"Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.tabledEndDate","in":"query","required":false,"description":"Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.statuses","in":"query","required":false,"description":"Early Day Motions where current status is in the selected list.","schema":{"type":"array","description":"Early Day Motions where current status is in the selected list."}},{"name":"parameters.orderBy","in":"query","required":false,"description":"Order results by date tabled, title or signature count. Default is date tabled.","schema":{"type":"string","enum":["DateTabledAsc","DateTabledDesc","TitleAsc","TitleDesc","SignatureCountAsc","SignatureCountDesc"],"description":"Order results by date tabled, title or signature count. Default is date tabled."}},{"name":"parameters.skip","in":"query","required":false,"description":"The number of records to skip from the first, default is 0.","schema":{"type":"integer","description":"The number of records to skip from the first, default is 0."}},{"name":"parameters.take","in":"query","required":false,"description":"The number of records to return, default is 25, maximum is 100.","schema":{"type":"integer","description":"The number of records to return, default is 25, maximum is 100."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:parliament-uk-oralquestions/published-oral-question-get":{"get":{"operationId":"open_data_parliament_uk_oralquestions_published_oral_question_get","summary":"Returns a list of oral questions","description":"GET /oralquestions/list","tags":["open-data"],"parameters":[{"name":"parameters.answeringDateStart","in":"query","required":false,"description":"Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.answeringDateEnd","in":"query","required":false,"description":"Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.questionType","in":"query","required":false,"description":"Oral Questions where the question type is the selected type, substantive or topical.","schema":{"type":"string","enum":["Substantive","Topical"],"description":"Oral Questions where the question type is the selected type, substantive or topical."}},{"name":"parameters.oralQuestionTimeId","in":"query","required":false,"description":"Oral Questions where the question is within the question time with the ID provided","schema":{"type":"integer","description":"Oral Questions where the question is within the question time with the ID provided"}},{"name":"parameters.askingMemberIds","in":"query","required":false,"description":"The ID of the member asking the question. Lists of member IDs for each house are available Commons and Lords .","schema":{"type":"array","description":"The ID of the member asking the question. Lists of member IDs for each house are available Commons and Lords ."}},{"name":"parameters.uINs","in":"query","required":false,"description":"The UIN for the question - note that UINs reset at the start of each Parliamentary session.","schema":{"type":"array","description":"The UIN for the question - note that UINs reset at the start of each Parliamentary session."}},{"name":"parameters.answeringBodyIds","in":"query","required":false,"description":"Which answering body is to respond. A list of answering bodies can be found here .","schema":{"type":"array","description":"Which answering body is to respond. A list of answering bodies can be found here ."}},{"name":"parameters.skip","in":"query","required":false,"description":"The number of records to skip from the first, default is 0.","schema":{"type":"integer","description":"The number of records to skip from the first, default is 0."}},{"name":"parameters.take","in":"query","required":false,"description":"The number of records to return, default is 25, maximum is 100.","schema":{"type":"integer","description":"The number of records to return, default is 25, maximum is 100."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:parliament-uk-oralquestions/published-oral-question-time-get":{"get":{"operationId":"open_data_parliament_uk_oralquestions_published_oral_question_time_get","summary":"Returns a list of oral question times","description":"GET /oralquestiontimes/list","tags":["open-data"],"parameters":[{"name":"parameters.answeringDateStart","in":"query","required":false,"description":"Oral Questions Time where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions Time where the answering date has been set on or after the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.answeringDateEnd","in":"query","required":false,"description":"Oral Questions Time where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions Time where the answering date has been set on or before the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.deadlineDateStart","in":"query","required":false,"description":"Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.deadlineDateEnd","in":"query","required":false,"description":"Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD.","schema":{"type":"string","description":"Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD."}},{"name":"parameters.oralQuestionTimeId","in":"query","required":false,"description":"Identifier of the OQT","schema":{"type":"integer","description":"Identifier of the OQT"}},{"name":"parameters.answeringBodyIds","in":"query","required":false,"description":"Which answering body is to respond. A list of answering bodies can be found here .","schema":{"type":"array","description":"Which answering body is to respond. A list of answering bodies can be found here ."}},{"name":"parameters.skip","in":"query","required":false,"description":"The number of records to skip from the first, default is 0.","schema":{"type":"integer","description":"The number of records to skip from the first, default is 0."}},{"name":"parameters.take","in":"query","required":false,"description":"The number of records to return, default is 25, maximum is 100.","schema":{"type":"integer","description":"The number of records to return, default is 25, maximum is 100."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}