<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/SearchResponse/query",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.SearchResponse/query"
  },
  "title" : "query"
}
-->

# query

The query string for performing the search.

```
query: string | SearchAutocompleteResult | null;
```

## Discussion

This property is empty when you use a [`SearchAutocompleteResult`](/documentation/MapKitJS/SearchAutocompleteResult) object to perform the search.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)