# API Url Code Assistance for Multi-Domain Search Module

**URL:** <https://community.hubspot.com/t/api-url-code-assistance-for-multi-domain-search-module/86835>\
**Category:** CMS Development\
**Created:** [August 4, 2023, 1:27pm UTC](https://community.hubspot.com/t/api-url-code-assistance-for-multi-domain-search-module/86835 "2023-08-04T13:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [August 4, 2023, 1:27pm UTC](https://community.hubspot.com/t/api-url-code-assistance-for-multi-domain-search-module/86835/1 "2023-08-04T13:27:00Z")

</div>

I need to implement a multi-domain search module for a client. As a result, I cloned the Hubspot search-input and search -results modules so that I could update the api url. However, I am not able to get search results with the changes. Can someone review my changes and let me know what I am doing wrong?

**Search-input** :

```lia-code-sample
/*const SEARCH_URL_BASE = '/_hcms/v3/site-search/search';*/
const SEARCH_URL_BASE = '/contentsearch/v2/search';

```

**Search-result** :

```lia-code-sample
/*var SEARCH_URL = '/_hcms/search?';*/
var SEARCH_URL = '/contentsearch/v2/search?';

```

Thanks in advance for the assistance.

Terry McMillan

---

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [August 8, 2023, 2:18pm UTC](https://community.hubspot.com/t/api-url-code-assistance-for-multi-domain-search-module/86835/2 "2023-08-08T14:18:25Z")

</div>

I was hoping this would be a quick response from someone letting me know what I am doing wrong. Any recommendations?

Thanks,

Terry
