# UK Parliament Search Service API

> UK Parliament Search Service API on Apizie: 3 endpoints (OpenSearch description document, Search results, Search results) returned as clean JSON through one API key. 3 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/open-data:parliament-uk-search/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `open-data:parliament-uk-search`
- Category: Open Data
- Status: live
- Source: https://www.parliament.uk/
- Page: https://zieapi.vercel.app/api/open-data/parliament-uk-search
- OpenAPI: https://zieapi.vercel.app/api/open-data/parliament-uk-search/openapi.json

Performs search on parliament.uk domain. Implements [OpenSearch specification](https://github.com/dewitt/opensearch). Throttled at 10 requests per second per IP address.

## Endpoints

### OpenSearch description document
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-search/get-description`

### Search results
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-search/get-query`

| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | yes |  |
| start | number | no |  |
| count | number | no |  |
| subdomains | string | no |  |
| inUrlPrefixes | string | no |  |

### Search results
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-search/get-query-extension`

| Parameter | Type | Required | Description |
|---|---|---|---|
| extension | string | yes | extension |
| q | string | yes |  |
| start | number | no |  |
| count | number | no |  |
| subdomains | string | no |  |
| inUrlPrefixes | string | no |  |

## Example
```
curl "https://zieapi.vercel.app/v1/open-data:parliament-uk-search/get-description" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the UK Parliament Search Service API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/open-data:parliament-uk-search/get-description with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the UK Parliament Search Service API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the UK Parliament Search Service API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key open-data:parliament-uk-search.

### What is the status of the UK Parliament Search Service API?
Live: works with just an Apizie key
