---
title: SKSearchGetTypeID()
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: coreservices/1448621-sksearchgettypeid
---

# SKSearchGetTypeID()

Gets the type identifier for Search Kit search objects.

## Declaration

```swift
func SKSearchGetTypeID() -> CFTypeID
```

## Return Value

Return Value A CFTypeID object containing the type identifier for the SKSearch opaque type.

## Discussion

Discussion Search Kit represents searches with search objects (SKSearch opaque types). If your code needs to determine whether a particular data type is a search object, you can use this function along with the CFGetTypeID(_:) function and perform a comparison. Never hard-code the search type ID because it can change from one release of macOS to another.

## See Also

### Fast Asynchronous Searching

- [SKSearchCreate(_:_:_:)](coreservices/1443079-sksearchcreate.md)
- [SKSearchFindMatches(_:_:_:_:_:_:)](coreservices/1448608-sksearchfindmatches.md)
- [SKSearchCancel(_:)](coreservices/1442083-sksearchcancel.md)
