Hubspot content search api

Hello, I am currently working on a custom search module. I am using the content search v2 api and make a call like

 getSearchResults = function() {
 var request = new XMLHttpRequest();
 var requestUrl = "https://api.hubapi.com/contentsearch/v2/search?portalId=[PORTAL_ID]&term=" + encodeURIComponent(searchTerm)
 + "&limit=" + encodeURIComponent(TYPEAHEAD_LIMIT)
 + "&" + searchOptions();

In the documentation of the api I also se I can use “&tableId=”

But I get 0 results if I try to search by doing this.
/de/suche?term=&limit=6&language=de&type=SITE_PAGE&type=LANDING_PAGE&type=BLOG_POST&type=LISTING_PAGE&tableId=4661445
How does this exaclty work?

Hey, @BBecker1 :waving_hand: Can you clarify or give more context to your goal? Are you getting an empty response or error with your first request? What are you expecting to get back in the response? Having more information helps our community members better understand where and if they can help you.

Thank you! — Jaycee

@Jaycee_Lewis
I am trying to search my site and get also hubdb resutls back. I am currently getting nothing back because &tableId=4661445 doesn’t do anything this migth be because of my results page but I am not sure.

So I am tring to do this
https://api.hubapi.com/hubdb/api/v2/tables/\[hubdb]/rows?portalId=\[portalid]
using content search api
https://api.hubapi.com/contentsearch/v2/search?portalId=\[portalid]&term=download&tableId=\[hubdb]