# Hubspot Knowledge Base API

**URL:** <https://community.hubspot.com/t/hubspot-knowledge-base-api/10457>\
**Category:** HubSpot Ideas\
**Tags:** integrations\
**Created:** [October 3, 2018, 4:50pm UTC](https://community.hubspot.com/t/hubspot-knowledge-base-api/10457 "2018-10-03T16:50:08Z")\
**Posts on this page:** 1\
**Showing post:** 48

<div class="post-metadata">

**Author:** ![TGrosser](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@TGrosser](https://community.hubspot.com/u/TGrosser)\
**Post date:** [December 2, 2025, 1:51pm UTC](https://community.hubspot.com/t/hubspot-knowledge-base-api/10457/48 "2025-12-02T13:51:48Z")

</div>

Just putting this here, because I haven’t found it immediately, and these posts are still unresponded to:  
You **can** , at least, read the entire Knowledge Base using the HubSpot GraphQL tool:

```lia-code-sample
# ---------- GraphQL Queries ----------

LIST_ARTICLES_QUERY = """
query PublishedKBArticlesNewestFirst($limit: Int!, $offset: Int!) {
 KB {
 knowledge_article_collection(
 limit: $limit
 offset: $offset
 filter: { hs_published_at__null: false }
 orderBy: [hs_published_at__desc]
 ) {
 items {
 hs_id
 hs_name
 hs_path
 hs_published_at
 }
 }
 }
}
"""

ARTICLE_DETAIL_QUERY = """
query ArticleForExport($id: String!) {
 KB {
 knowledge_article(uniqueIdentifier: "hs_id", uniqueIdentifierValue: $id) {
 id: hs_id
 title: hs_name
 subtitle: hs_summary
 path: hs_path
 lang: hs_language
 raw_format: hs_body
 published_at: hs_published_at
 updated_at: hs_updated_at
 }
 knowledge_base_collection(limit: 1, offset: 0) {
 items {
 source: hs_name
 domain: hs_domain
 kb_path: hs_slug
 }
 }
 }
}
"""

```

May not solve everyone’s problem, but solved mine.

---

_[View the full topic](https://community.hubspot.com/t/hubspot-knowledge-base-api/10457)._
