APIs & Integrations

ChrisSosa1337
Miembro

API call based on current lookup?

I would like to know, is there an API call that I can make based on the current lookup? I know there is the Lists API, but even better would be that I can use the current lookup based on the filtered companies. My goal is to use this data to send to Mapbox to map my filtered companies 

0 Me gusta
1 Respuesta 1
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

API call based on current lookup?

Hey, @ChrisSosa1337  👋 Have you investigated using the Search API? This allows you to use filters and specify the properties you want returned.

 

A simple example might look like this:

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "industry",
          "operator": "EQ",
          "value": "technology"
        },
        {
          "propertyName": "country",
          "operator": "EQ",
          "value": "USA"
        }
      ]
    }
  ],
  "properties": ["name", "address", "latitude", "longitude"],
  "limit": 10,
  "after": 0
}

 

Otherwise, there isn't another endpoint that exactly matches what you are asking for. 

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Me gusta