{"files":{"SKILL.md":"---\nname: house-of-commons-oral-and-written-questions-api\ndescription: \"House of Commons Oral and Written Questions API skill. Use when working with House of Commons Oral and Written Questions for EarlyDayMotion, EarlyDayMotions, oralquestions. Covers 4 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# House of Commons Oral and Written Questions API\nAPI version: v1\n\n## Auth\nNo authentication required.\n\n## Base URL\nhttp://oralquestionsandmotions-api.parliament.uk\n\n## Setup\n1. No auth setup needed\n2. GET /EarlyDayMotions/list -- returns a list of early day motions\n3. Explore available endpoints below\n\n## Endpoints\n4 endpoints across 4 groups. See references/api-spec.lap for full details.\n\n### EarlyDayMotion\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /EarlyDayMotion/{id} | Returns a single Early Day Motion by ID |\n\n### EarlyDayMotions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /EarlyDayMotions/list | Returns a list of Early Day Motions |\n\n### Oralquestions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /oralquestions/list | Returns a list of oral questions |\n\n### Oralquestiontimes\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /oralquestiontimes/list | Returns a list of oral question times |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Get EarlyDayMotion details?\" -> GET /EarlyDayMotion/{id}\n- \"List all list?\" -> GET /EarlyDayMotions/list\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api House of Commons Oral and Written Questions API\n@base http://oralquestionsandmotions-api.parliament.uk\n@version v1\n@endpoints 4\n@toc EarlyDayMotion(1), EarlyDayMotions(1), oralquestions(1), oralquestiontimes(1)\n\n@group EarlyDayMotion\n@endpoint GET /EarlyDayMotion/{id}\n@desc Returns a single Early Day Motion by ID\n@required {id: any # Early Day Motion with the ID specified.}\n@returns(200) OK\n@errors {400: BadRequest, 404: NotFound}\n\n@endgroup\n\n@group EarlyDayMotions\n@endpoint GET /EarlyDayMotions/list\n@desc Returns a list of Early Day Motions\n@optional {parameters.edmIds: any # Early Day Motions with an ID in the list provided., parameters.uINWithAmendmentSuffix: any # Early Day Motions with an UINWithAmendmentSuffix provided., parameters.searchTerm: any # Early Day Motions where the title includes the search term provided., parameters.currentStatusDateStart: any # Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD., parameters.currentStatusDateEnd: any # Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD., parameters.isPrayer: any # Early Day Motions which are a prayer against a Negative Statutory Instrument., parameters.memberId: any # Return Early Day Motions tabled by Member with ID provided., parameters.includeSponsoredByMember: any # Include Early Day Motions sponsored by Member specified, parameters.tabledStartDate: any # Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD., parameters.tabledEndDate: any # Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD., parameters.statuses: any # Early Day Motions where current status is in the selected list., parameters.orderBy: any # Order results by date tabled, title or signature count. Default is date tabled., parameters.skip: any # The number of records to skip from the first, default is 0., parameters.take: any # The number of records to return, default is 25, maximum is 100.}\n@returns(200) OK\n@errors {400: BadRequest}\n\n@endgroup\n\n@group oralquestions\n@endpoint GET /oralquestions/list\n@desc Returns a list of oral questions\n@optional {parameters.answeringDateStart: any # Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD., parameters.answeringDateEnd: any # Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD., parameters.questionType: any # Oral Questions where the question type is the selected type, substantive or topical., parameters.oralQuestionTimeId: any # Oral Questions where the question is within the question time with the ID provided, parameters.statuses: any # Oral Questions where current status is in the selected list, parameters.askingMemberIds: any # The ID of the member asking the question. Lists of member IDs for each house are available Commons and Lords., parameters.uINs: any # The UIN for the question - note that UINs reset at the start of each Parliamentary session., parameters.answeringBodyIds: any # Which answering body is to respond. A list of answering bodies can be found here., parameters.skip: any # The number of records to skip from the first, default is 0., parameters.take: any # The number of records to return, default is 25, maximum is 100.}\n@returns(200) OK\n@errors {400: BadRequest}\n\n@endgroup\n\n@group oralquestiontimes\n@endpoint GET /oralquestiontimes/list\n@desc Returns a list of oral question times\n@optional {parameters.answeringDateStart: any # Oral Questions Time where the answering date has been set on or after the date provided. Date format YYYY-MM-DD., parameters.answeringDateEnd: any # Oral Questions Time where the answering date has been set on or before the date provided. Date format YYYY-MM-DD., parameters.deadlineDateStart: any # Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD., parameters.deadlineDateEnd: any # Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD., parameters.oralQuestionTimeId: any # Identifier of the OQT, parameters.answeringBodyIds: any # Which answering body is to respond. A list of answering bodies can be found here., parameters.skip: any # The number of records to skip from the first, default is 0., parameters.take: any # The number of records to return, default is 25, maximum is 100.}\n@returns(200) OK\n@errors {400: BadRequest}\n\n@endgroup\n\n@end\n"}}