---
title: SKSearchGroupGetTypeID
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.3+]
path: coreservices/1448637-sksearchgroupgettypeid
---

# SKSearchGroupGetTypeID

Deprecated. Use asynchronous searching with SKSearchCreate instead, which does not employ search groups.

## Declaration

```occ
CFTypeID SKSearchGroupGetTypeID(void);
```

## Return Value

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

## Discussion

Discussion Gets the type identifier for Search Kit search groups. Search Kit represents search groups with the SKSearchGroupRef opaque type. If your code needs to determine whether a particular data type is a search group, you can use this function along with the CFGetTypeID(_:) function and perform a comparison. Never hard-code the search group 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)
- [SKSearchResultsCreateWithDocuments](coreservices/1448629-sksearchresultscreatewithdocumen.md)
- [SKSearchResultsGetInfoInRange](coreservices/1448618-sksearchresultsgetinfoinrange.md)
- [SKSearchResultsCopyMatchingTerms](coreservices/1448612-sksearchresultscopymatchingterms.md)
- [SKSearchResultsGetCount](coreservices/1448598-sksearchresultsgetcount.md)
- [SKSearchResultsGetTypeID](coreservices/1448603-sksearchresultsgettypeid.md)
- [SKSearchResultsCreateWithQuery](coreservices/1448610-sksearchresultscreatewithquery.md)
