---
title: SKSearchResultsGetTypeID
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.3+]
path: coreservices/1448603-sksearchresultsgettypeid
---

# SKSearchResultsGetTypeID

Gets the type identifier for Search Kit search results.

## Declaration

```occ
CFTypeID SKSearchResultsGetTypeID(void);
```

## Return Value

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

## Discussion

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

## See Also

### Legacy Support for Synchronous Searching

- [SKSearchGroupCreate](coreservices/1448627-sksearchgroupcreate.md)
- [SKSearchGroupCopyIndexes](coreservices/1448615-sksearchgroupcopyindexes.md)
- [SKSearchGroupGetTypeID](coreservices/1448637-sksearchgroupgettypeid.md)
- [SKSearchResultsCreateWithDocuments](coreservices/1448629-sksearchresultscreatewithdocumen.md)
- [SKSearchResultsGetInfoInRange](coreservices/1448618-sksearchresultsgetinfoinrange.md)
- [SKSearchResultsCopyMatchingTerms](coreservices/1448612-sksearchresultscopymatchingterms.md)
- [SKSearchResultsGetCount](coreservices/1448598-sksearchresultsgetcount.md)
- [SKSearchResultsCreateWithQuery](coreservices/1448610-sksearchresultscreatewithquery.md)
