---
title: "lookUpContentRuleList(forIdentifier:completionHandler:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkcontentruleliststore/lookupcontentrulelist(foridentifier:completionhandler:)"
---

# lookUpContentRuleList(forIdentifier:completionHandler:)

Searches asynchronously for a specific rule list in the data store.

## Declaration

```swift
func lookUpContentRuleList(forIdentifier identifier: String!, completionHandler: ((WKContentRuleList?, (any Error)?) -> Void)!)
```

```swift
func contentRuleList(forIdentifier identifier: String!) async throws -> WKContentRuleList?
```

## Parameters

- `identifier`: The identifier of the list you want.
- `completionHandler`: A completion handler block to call with the results of the search. This block has no return value and takes the following parameters:

## See Also

### Accessing the Current Rule Lists

- [getAvailableContentRuleListIdentifiers(_:)](webkit/wkcontentruleliststore/getavailablecontentrulelistidentifiers(_:).md)
