---
schema_version: "1"
id: c36f25c94c2fd4790e045ea2e2dcf5c6fb2c39e1fa2d2d752b37fce6c57aa644
title: Service Knowledge API (Beta)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/lwc/components/lightning/serviceKnowledgeApi/lightning-service-knowledge-api.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/lightning-service-knowledge-api.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5669cd5bf0bc7067e7a866fcd65a4cb4bb651f0beef45676a9a80063745b7559
products:
  - Lightning Component Reference
---
# Service Knowledge API (Beta)

**`lightning/serviceKnowledgeApi`**

Work with knowledge articles.

**For Use In**

Lightning Experience, Experience Builder Sites, Salesforce Mobile App

::::::tabset{tabs='[ "Develop", "Specifications" ]'}

:::::tab
**note:** `lightning/serviceKnowledgeApi` is a pilot or beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this pilot or beta service is at the Customer's sole discretion.

The `lightning/serviceKnowledgeApi` module includes a JavaScript method to work with Knowledge APIs.

The module contains this method:

- `updateViewStat({articleOrVersionId: string})`

For this module's specification and examples, see the [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/reference-knowledge-update-view-stat.html).

:::::

:::::tab
::component-specification{component="serviceKnowledgeApi" model="lwc" namespace="lightning"}

:::::

::::::
