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