GET api/CarParks?field={field}&search={search}&exact={exact}

This returns car parks where the specified field contains the specified search text or equals the search text if exact = true.

Request Information

Parameters

NameDescriptionAdditional information
field
The Name of the field to search against

Define this parameter in the request URI.

search
The text to search for

Define this parameter in the request URI.

exact
Set to true if match must be exact

Define this parameter in the request URI.

Response Information

filtered list of car parks

Response body formats

text/html

Sample:
<div class="input-group">
    <label class="sr-only" for="filter">Filter</label>
    <span class="input-group-addon">Filter</span>
    <input id="filter" type="text" class="form-control" placeholder="Filter..." /> 
</div>
<table class="hdc-table table default" data-filter="#filter">
    <thead>
        <tr>
            <th data-toggle="true" class="footable-first-column">
                Car Park
            </th>
            <th>
                Location/Postcode
            </th>
            <th>
                Phone & Pay Code
            </th>
            
            <th data-hide="phone,tablet">
                Car Park Use
            </th>
            <th>
                Times and Prices
            </th>
            <th>
                When do parking charges apply?
            </th>
            <th>
                Number of spaces?
            </th>
            <th data-hide="phone,tablet">
                Number of disabled spaces?
            </th>
            <th data-hide="phone,tablet">
                Motorcycles bays?
            </th>
            
            <th data-hide="phone,tablet">
                Toilets?
            </th>
            <th data-hide="phone,tablet">
                Recycling facilities?
            </th>
        </tr>
    </thead>
    <tbody>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                    sample string 3,<br />
                    sample string 8
                </td>
                <td>
                    sample string 24
                </td>
                
                <td>
                    sample string 5
                </td>
                <td>
                    <div style="white-space:pre-wrap; width:250px;">
                        sample string 6
                    </div>
                </td>


                <td>
                    sample string 7
                </td>
                <td>
                    1.1
                </td>
                <td>
                    1.1
                </td>
                <td>
                    sample string 9
                </td>
                
                <td>
                    sample string 17
                </td>
                <td>
                    sample string 18
                </td>
            </tr>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                    sample string 3,<br />
                    sample string 8
                </td>
                <td>
                    sample string 24
                </td>
                
                <td>
                    sample string 5
                </td>
                <td>
                    <div style="white-space:pre-wrap; width:250px;">
                        sample string 6
                    </div>
                </td>


                <td>
                    sample string 7
                </td>
                <td>
                    1.1
                </td>
                <td>
                    1.1
                </td>
                <td>
                    sample string 9
                </td>
                
                <td>
                    sample string 17
                </td>
                <td>
                    sample string 18
                </td>
            </tr>
            <tr>
                <td>
                    sample string 2
                </td>
                <td>
                    sample string 3,<br />
                    sample string 8
                </td>
                <td>
                    sample string 24
                </td>
                
                <td>
                    sample string 5
                </td>
                <td>
                    <div style="white-space:pre-wrap; width:250px;">
                        sample string 6
                    </div>
                </td>


                <td>
                    sample string 7
                </td>
                <td>
                    1.1
                </td>
                <td>
                    1.1
                </td>
                <td>
                    sample string 9
                </td>
                
                <td>
                    sample string 17
                </td>
                <td>
                    sample string 18
                </td>
            </tr>
    </tbody>
    <tfoot class="hide-if-no-paging">
        <tr>
            <td colspan="6">
                <ul class="pagination pagination-centered hide-if-no-paging"></ul>
            </td>
        </tr>
    </tfoot>
</table>


application/json, text/json

Sample:
[
  {
    "id": 1,
    "car_Park1": "sample string 2",
    "location": "sample string 3",
    "uprn": "sample string 4",
    "car_Park_Use": "sample string 5",
    "times_and_Prices": "sample string 6",
    "when_do_parking_Charges_Apply_": "sample string 7",
    "closest_Postcode__for_navigation_": "sample string 8",
    "spaces___standard": 1.1,
    "spaces___disabled": 1.1,
    "spaces___motorcycle": "sample string 9",
    "spaces___parent_and_child": 1.1,
    "spaces___total": 1.1,
    "machine_No": "sample string 10",
    "machine_Type": "sample string 11",
    "lighting_No": "sample string 12",
    "lighting_Type": "sample string 13",
    "litter_Bins": "sample string 14",
    "tips": "sample string 15",
    "trolley_Bays": "sample string 16",
    "toilets": "sample string 17",
    "recycling": "sample string 18",
    "notes": "sample string 19",
    "last_Surveyed_Date": "2024-04-20T03:16:11.6656914+01:00",
    "season_Tickets_": "sample string 20",
    "resident_Permit_": "sample string 21",
    "resident_Season_Ticket_": "sample string 22",
    "blue_Badge_Holder_Parking_Permit_": "sample string 23",
    "phonePayCode": "sample string 24"
  },
  {
    "id": 1,
    "car_Park1": "sample string 2",
    "location": "sample string 3",
    "uprn": "sample string 4",
    "car_Park_Use": "sample string 5",
    "times_and_Prices": "sample string 6",
    "when_do_parking_Charges_Apply_": "sample string 7",
    "closest_Postcode__for_navigation_": "sample string 8",
    "spaces___standard": 1.1,
    "spaces___disabled": 1.1,
    "spaces___motorcycle": "sample string 9",
    "spaces___parent_and_child": 1.1,
    "spaces___total": 1.1,
    "machine_No": "sample string 10",
    "machine_Type": "sample string 11",
    "lighting_No": "sample string 12",
    "lighting_Type": "sample string 13",
    "litter_Bins": "sample string 14",
    "tips": "sample string 15",
    "trolley_Bays": "sample string 16",
    "toilets": "sample string 17",
    "recycling": "sample string 18",
    "notes": "sample string 19",
    "last_Surveyed_Date": "2024-04-20T03:16:11.6656914+01:00",
    "season_Tickets_": "sample string 20",
    "resident_Permit_": "sample string 21",
    "resident_Season_Ticket_": "sample string 22",
    "blue_Badge_Holder_Parking_Permit_": "sample string 23",
    "phonePayCode": "sample string 24"
  },
  {
    "id": 1,
    "car_Park1": "sample string 2",
    "location": "sample string 3",
    "uprn": "sample string 4",
    "car_Park_Use": "sample string 5",
    "times_and_Prices": "sample string 6",
    "when_do_parking_Charges_Apply_": "sample string 7",
    "closest_Postcode__for_navigation_": "sample string 8",
    "spaces___standard": 1.1,
    "spaces___disabled": 1.1,
    "spaces___motorcycle": "sample string 9",
    "spaces___parent_and_child": 1.1,
    "spaces___total": 1.1,
    "machine_No": "sample string 10",
    "machine_Type": "sample string 11",
    "lighting_No": "sample string 12",
    "lighting_Type": "sample string 13",
    "litter_Bins": "sample string 14",
    "tips": "sample string 15",
    "trolley_Bays": "sample string 16",
    "toilets": "sample string 17",
    "recycling": "sample string 18",
    "notes": "sample string 19",
    "last_Surveyed_Date": "2024-04-20T03:16:11.6656914+01:00",
    "season_Tickets_": "sample string 20",
    "resident_Permit_": "sample string 21",
    "resident_Season_Ticket_": "sample string 22",
    "blue_Badge_Holder_Parking_Permit_": "sample string 23",
    "phonePayCode": "sample string 24"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCar_Park xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HDCAPIModel.Models">
  <Car_Park>
    <Blue_Badge_Holder_Parking_Permit_>sample string 23</Blue_Badge_Holder_Parking_Permit_>
    <Car_Park1>sample string 2</Car_Park1>
    <Car_Park_Use>sample string 5</Car_Park_Use>
    <Closest_Postcode__for_navigation_>sample string 8</Closest_Postcode__for_navigation_>
    <ID>1</ID>
    <Last_Surveyed_Date>2024-04-20T03:16:11.6656914+01:00</Last_Surveyed_Date>
    <Lighting_No>sample string 12</Lighting_No>
    <Lighting_Type>sample string 13</Lighting_Type>
    <Litter_Bins>sample string 14</Litter_Bins>
    <Location>sample string 3</Location>
    <Machine_No>sample string 10</Machine_No>
    <Machine_Type>sample string 11</Machine_Type>
    <Notes>sample string 19</Notes>
    <PhonePayCode>sample string 24</PhonePayCode>
    <Recycling>sample string 18</Recycling>
    <Resident_Permit_>sample string 21</Resident_Permit_>
    <Resident_Season_Ticket_>sample string 22</Resident_Season_Ticket_>
    <Season_Tickets_>sample string 20</Season_Tickets_>
    <Times_and_Prices>sample string 6</Times_and_Prices>
    <Tips>sample string 15</Tips>
    <Toilets>sample string 17</Toilets>
    <Trolley_Bays>sample string 16</Trolley_Bays>
    <UPRN>sample string 4</UPRN>
    <When_do_parking_Charges_Apply_>sample string 7</When_do_parking_Charges_Apply_>
    <spaces___disabled>1.1</spaces___disabled>
    <spaces___motorcycle>sample string 9</spaces___motorcycle>
    <spaces___parent_and_child>1.1</spaces___parent_and_child>
    <spaces___standard>1.1</spaces___standard>
    <spaces___total>1.1</spaces___total>
  </Car_Park>
  <Car_Park>
    <Blue_Badge_Holder_Parking_Permit_>sample string 23</Blue_Badge_Holder_Parking_Permit_>
    <Car_Park1>sample string 2</Car_Park1>
    <Car_Park_Use>sample string 5</Car_Park_Use>
    <Closest_Postcode__for_navigation_>sample string 8</Closest_Postcode__for_navigation_>
    <ID>1</ID>
    <Last_Surveyed_Date>2024-04-20T03:16:11.6656914+01:00</Last_Surveyed_Date>
    <Lighting_No>sample string 12</Lighting_No>
    <Lighting_Type>sample string 13</Lighting_Type>
    <Litter_Bins>sample string 14</Litter_Bins>
    <Location>sample string 3</Location>
    <Machine_No>sample string 10</Machine_No>
    <Machine_Type>sample string 11</Machine_Type>
    <Notes>sample string 19</Notes>
    <PhonePayCode>sample string 24</PhonePayCode>
    <Recycling>sample string 18</Recycling>
    <Resident_Permit_>sample string 21</Resident_Permit_>
    <Resident_Season_Ticket_>sample string 22</Resident_Season_Ticket_>
    <Season_Tickets_>sample string 20</Season_Tickets_>
    <Times_and_Prices>sample string 6</Times_and_Prices>
    <Tips>sample string 15</Tips>
    <Toilets>sample string 17</Toilets>
    <Trolley_Bays>sample string 16</Trolley_Bays>
    <UPRN>sample string 4</UPRN>
    <When_do_parking_Charges_Apply_>sample string 7</When_do_parking_Charges_Apply_>
    <spaces___disabled>1.1</spaces___disabled>
    <spaces___motorcycle>sample string 9</spaces___motorcycle>
    <spaces___parent_and_child>1.1</spaces___parent_and_child>
    <spaces___standard>1.1</spaces___standard>
    <spaces___total>1.1</spaces___total>
  </Car_Park>
  <Car_Park>
    <Blue_Badge_Holder_Parking_Permit_>sample string 23</Blue_Badge_Holder_Parking_Permit_>
    <Car_Park1>sample string 2</Car_Park1>
    <Car_Park_Use>sample string 5</Car_Park_Use>
    <Closest_Postcode__for_navigation_>sample string 8</Closest_Postcode__for_navigation_>
    <ID>1</ID>
    <Last_Surveyed_Date>2024-04-20T03:16:11.6656914+01:00</Last_Surveyed_Date>
    <Lighting_No>sample string 12</Lighting_No>
    <Lighting_Type>sample string 13</Lighting_Type>
    <Litter_Bins>sample string 14</Litter_Bins>
    <Location>sample string 3</Location>
    <Machine_No>sample string 10</Machine_No>
    <Machine_Type>sample string 11</Machine_Type>
    <Notes>sample string 19</Notes>
    <PhonePayCode>sample string 24</PhonePayCode>
    <Recycling>sample string 18</Recycling>
    <Resident_Permit_>sample string 21</Resident_Permit_>
    <Resident_Season_Ticket_>sample string 22</Resident_Season_Ticket_>
    <Season_Tickets_>sample string 20</Season_Tickets_>
    <Times_and_Prices>sample string 6</Times_and_Prices>
    <Tips>sample string 15</Tips>
    <Toilets>sample string 17</Toilets>
    <Trolley_Bays>sample string 16</Trolley_Bays>
    <UPRN>sample string 4</UPRN>
    <When_do_parking_Charges_Apply_>sample string 7</When_do_parking_Charges_Apply_>
    <spaces___disabled>1.1</spaces___disabled>
    <spaces___motorcycle>sample string 9</spaces___motorcycle>
    <spaces___parent_and_child>1.1</spaces___parent_and_child>
    <spaces___standard>1.1</spaces___standard>
    <spaces___total>1.1</spaces___total>
  </Car_Park>
</ArrayOfCar_Park>

text/javascript

Sample:
([{"id":1,"car_Park1":"sample string 2","location":"sample string 3","uprn":"sample string 4","car_Park_Use":"sample string 5","times_and_Prices":"sample string 6","when_do_parking_Charges_Apply_":"sample string 7","closest_Postcode__for_navigation_":"sample string 8","spaces___standard":1.1,"spaces___disabled":1.1,"spaces___motorcycle":"sample string 9","spaces___parent_and_child":1.1,"spaces___total":1.1,"machine_No":"sample string 10","machine_Type":"sample string 11","lighting_No":"sample string 12","lighting_Type":"sample string 13","litter_Bins":"sample string 14","tips":"sample string 15","trolley_Bays":"sample string 16","toilets":"sample string 17","recycling":"sample string 18","notes":"sample string 19","last_Surveyed_Date":"2024-04-20T03:16:11.6656914+01:00","season_Tickets_":"sample string 20","resident_Permit_":"sample string 21","resident_Season_Ticket_":"sample string 22","blue_Badge_Holder_Parking_Permit_":"sample string 23","phonePayCode":"sample string 24"},{"id":1,"car_Park1":"sample string 2","location":"sample string 3","uprn":"sample string 4","car_Park_Use":"sample string 5","times_and_Prices":"sample string 6","when_do_parking_Charges_Apply_":"sample string 7","closest_Postcode__for_navigation_":"sample string 8","spaces___standard":1.1,"spaces___disabled":1.1,"spaces___motorcycle":"sample string 9","spaces___parent_and_child":1.1,"spaces___total":1.1,"machine_No":"sample string 10","machine_Type":"sample string 11","lighting_No":"sample string 12","lighting_Type":"sample string 13","litter_Bins":"sample string 14","tips":"sample string 15","trolley_Bays":"sample string 16","toilets":"sample string 17","recycling":"sample string 18","notes":"sample string 19","last_Surveyed_Date":"2024-04-20T03:16:11.6656914+01:00","season_Tickets_":"sample string 20","resident_Permit_":"sample string 21","resident_Season_Ticket_":"sample string 22","blue_Badge_Holder_Parking_Permit_":"sample string 23","phonePayCode":"sample string 24"},{"id":1,"car_Park1":"sample string 2","location":"sample string 3","uprn":"sample string 4","car_Park_Use":"sample string 5","times_and_Prices":"sample string 6","when_do_parking_Charges_Apply_":"sample string 7","closest_Postcode__for_navigation_":"sample string 8","spaces___standard":1.1,"spaces___disabled":1.1,"spaces___motorcycle":"sample string 9","spaces___parent_and_child":1.1,"spaces___total":1.1,"machine_No":"sample string 10","machine_Type":"sample string 11","lighting_No":"sample string 12","lighting_Type":"sample string 13","litter_Bins":"sample string 14","tips":"sample string 15","trolley_Bays":"sample string 16","toilets":"sample string 17","recycling":"sample string 18","notes":"sample string 19","last_Surveyed_Date":"2024-04-20T03:16:11.6656914+01:00","season_Tickets_":"sample string 20","resident_Permit_":"sample string 21","resident_Season_Ticket_":"sample string 22","blue_Badge_Holder_Parking_Permit_":"sample string 23","phonePayCode":"sample string 24"}]);