Search public activities
search_public_activitiesSearch public Citizen Space consultations and activities by text, postcode, state, audience, interest, department, area, date, and type.
Instructions
Published, public consultations and other activities on the site, from the unauthenticated Public API (json_search_results). Every documented search argument is passed through: free text, postcode, state, audience, interest, department, area, a date range on the open or close date, activity type. fields=basic gives id, title, url, status, overview and dates; extended adds department, type and participation URL; all adds the 'why' and 'what happens next' text, contact details, related links, documents, audiences, areas and interests. Officer contact phone and email are only returned with include_contact_details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Free text search on title and overview, case-insensitive (argument tx) | |
| state | No | open, forthcoming or closed (argument st) | |
| fields | No | Which groups of fields to return | basic |
| area_id | No | One of the area IDs configured on the site (argument ar) | |
| date_to | No | End of the date range, yyyy/mm/dd (argument td) | |
| postcode | No | Postcode, partial allowed, e.g. BS8 (argument pc) | |
| date_from | No | Start of the date range, yyyy/mm/dd (argument fd) | |
| date_kind | No | Which date the range applies to: op (open date) or cl (close date); required with date_from/date_to (argument dk) | |
| audience_id | No | One of the audience IDs configured on the site (argument au) | |
| interest_id | No | One of the interest IDs configured on the site (argument in) | |
| max_results | No | The API returns every match in one response; only the first max_results are shown | |
| activity_type | No | QuickConsult (online survey), File (email/postal), Document (offline) or Link (argument ct) | |
| department_id | No | The ID of the department the activity sits within (argument de) | |
| include_contact_details | No | Include the activity's contact phone and email (fields=all) and stop redacting emails, phone numbers and postcodes from text |