<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKContentRuleListStore/lookUpContentRuleList(forIdentifier:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKContentRuleListStore(im)lookUpContentRuleListForIdentifier:completionHandler:"
  },
  "title" : "lookUpContentRuleList(forIdentifier:completionHandler:)"
}
-->

# lookUpContentRuleList(forIdentifier:completionHandler:)

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

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

## 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:

- ruleList: The [`WKContentRuleList`](/documentation/WebKit/WKContentRuleList) object with the specified identifier. This parameter is `nil` if the error occurs during the search.
- error: `nil` on success, or an error object if an error occurs during the search.

## Discussion

---

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)