Hi!
seems to have found it
Not documented. No warranty at all.
missing API in two steps:
- get a list of knowledge base article IDs
- get the contents of each id
But how to get all the content if this search API asks us for a term? An empty term is not allowed!
Tada! term=a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z
(without limits you will need to use offset etc)
We have 11 articles and using this nice term we are getting them all =). Please make sure you are also getting the correct number of knowledge base articles, I mean total in the 2nd line of the JSON.
So you will get JSON like
{
"total": 11,
"offset": 0,
"limit": 999,
"results": [
{
"id": 85372448791,
"score": 20.023497,
"type": "KNOWLEDGE_ARTICLE",
<....>
Now we have all ID like 85372448791
Getting content:
https://api.hubapi.com/cms/v3/site-search/indexed-data/85372448791?type=KNOWLEDGE_ARTICLE
and you will get JSON with all data:
"html_all_nested.en": {
"name": "html_all_nested.en",
"value": "Be at least 99 years old",
"values": [
"Be at least 99 years old",
<....>