# Inconsistent search results

**URL:** <https://community.hubspot.com/t/inconsistent-search-results/106344>\
**Category:** APIs & Integrations\
**Tags:** content\
**Created:** [May 2, 2024, 4:00pm UTC](https://community.hubspot.com/t/inconsistent-search-results/106344 "2024-05-02T16:00:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCrawford7](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@MCrawford7](https://community.hubspot.com/u/MCrawford7)\
**Post date:** [May 2, 2024, 4:00pm UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/1 "2024-05-02T16:00:52Z")

</div>

Hi,

When using "[https://api.hubapi.com/contentsearch/v2/search…"](https://api.hubapi.com/contentsearch/v2/search%22) to retrieve all the knowledgebase articles, urls are coming in differently for users. Some users are reporting they see “/\_hcms/analytics/search/conversion?redirect…” instead of the actual url. What can be done about this?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [May 3, 2024, 7:58am UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/2 "2024-05-03T07:58:56Z")

</div>

Hi @MCrawford7,  
Thank you for reaching out to the Community!  
I’d be happy to put you in touch with some of our Top Experts and some Community Members: Hi @arlogilbert, @JamesClarke, @YBederov, @MikeJennings, [@Mohesh\_Borah](https://community.hubspot.com/t5/user/viewprofilepage/user-id/143542), @speedplane, [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811)n @Anton and @Teun do you have the same behavior? Do you have tips or workarounds to share with @MCrawford7, please?  
I also found these threads which might be of interest:  
- [Knowledge Base API Documentation](https://community.hubspot.com/t5/Knowledge-Base-Tool/Knowledge-Base-API-Documentation/m-p/698475/highlight/true#M872)  
- [Knowledge Base articles API for search and get content](https://community.hubspot.com/t5/APIs-Integrations/Knowledge-Base-articles-API-for-search-and-get-content/m-p/229164)  
Thank you so much and have a brilliant day!  
Best,  
Bérangère

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [May 4, 2024, 1:45am UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/3 "2024-05-04T01:45:04Z")

</div>

Hi @MCrawford7 👋

It’d be great if you could share a specific example outlining in detail your request and the response you get back from the relevant HubSpot API. This should help the community troubleshoot the issue you’re experiencing.

---

<div class="post-metadata">

**Author:** ![MCrawford7](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@MCrawford7](https://community.hubspot.com/u/MCrawford7)\
**Post date:** [May 6, 2024, 3:06pm UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/4 "2024-05-06T15:06:28Z")

</div>

Hi Zach,

This is the request: [https://api.hubapi.com/contentsearch/v2/search?portalId=portalIdHidden&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&type=KNOWLEDGE\_ARTICLE&limit=1000](https://api.hubapi.com/contentsearch/v2/search?portalId=portalIdHidden&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&type=KNOWLEDGE_ARTICLE&limit=1000)

This is what some of our customers are receiving as the beginning of the url:

\_hcms/analytics/search/conversion?redirect=aHR0cHM6Ly9oZWxwbWUuZXZlcmxvZ2ljLmNvbS9oZWxwL2V2ZXJsb2dpYy1xdWlja2Jvb2tzLWludGVncmF0aW9uLXRpbWVsaW5l&ct

---

<div class="post-metadata">

**Author:** ![MCrawford7](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@MCrawford7](https://community.hubspot.com/u/MCrawford7)\
**Post date:** [June 4, 2024, 6:49pm UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/5 "2024-06-04T18:49:12Z")

</div>

Does anyone have any ideas as to what’s happening? It seems like this is mostly happening on our customer’s laptops.

---

<div class="post-metadata">

**Author:** ![MCrawford7](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@MCrawford7](https://community.hubspot.com/u/MCrawford7)\
**Post date:** [June 27, 2024, 10:25pm UTC](https://community.hubspot.com/t/inconsistent-search-results/106344/6 "2024-06-27T22:25:55Z")

</div>

Since I never got a reply , I had to come up with my own fix using the HubSpot API.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcms-site-search-v3%2Fguide)**

Used this url to return everything from the Knowledge Base:

[https://api.hubapi.com/cms/v3/site-search/search?q=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&limit=1000&type=KNOWLEDGE\_ARTICLE](https://api.hubapi.com/cms/v3/site-search/search?q=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&limit=1000&type=KNOWLEDGE_ARTICLE)

In order to run this I needed to create a Private App Key under Settings, Integrations, Private Apps and sent this key in the Header Authorization.
