<!--
{
  "availability" : [
    "MapKit JS: 5.45.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/PointsOfInterestSearch/search",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instm/mapkit.PointsOfInterestSearch/search"
  },
  "title" : "search(options)"
}
-->

# search(options)

Fetches points of interest.

```
search(
    options?: PointsOfInterestSearchOptions,
): Promise<PointsOfInterestSearchResponse>;
```

## Parameters

`options`

A [`PointsOfInterestSearchOptions`](/documentation/MapKitJS/PointsOfInterestSearchOptions) object that can overwrite the same options set on the property or that you supplied to the [`PointsOfInterestSearch`](/documentation/MapKitJS/PointsOfInterestSearch) constructor.

## Return Value

A promise that resolves with a [`PointsOfInterestSearchResponse`](/documentation/MapKitJS/PointsOfInterestSearchResponse) on success, or rejects with an `Error` on failure.

## Discussion

The [`search(options)`](/documentation/MapKitJS/PointsOfInterestSearch/search) method returns a set of points of interest within the region defined and matching the [`PointOfInterestFilter`](/documentation/MapKitJS/PointOfInterestFilter).

Pass an `AbortSignal` from an `AbortController` to the [`signal`](/documentation/MapKitJS/PointsOfInterestSearchOptions/signal) option to allow the controller to cancel a pending request. When the controller aborts, the promise it returns rejects with a `DOMException` whose `name` is `"AbortError"`.

---

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)