# API call based on current lookup?

**URL:** <https://community.hubspot.com/t/api-call-based-on-current-lookup/100661>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [February 21, 2024, 3:04pm UTC](https://community.hubspot.com/t/api-call-based-on-current-lookup/100661 "2024-02-21T15:04:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisSosa1337](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@ChrisSosa1337](https://community.hubspot.com/u/ChrisSosa1337)\
**Post date:** [February 21, 2024, 3:04pm UTC](https://community.hubspot.com/t/api-call-based-on-current-lookup/100661/1 "2024-02-21T15:04:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 22, 2024, 11:03pm UTC](https://community.hubspot.com/t/api-call-based-on-current-lookup/100661/2 "2024-02-22T23:03:20Z")

</div>

Hey, @ChrisSosa1337👋 Have you investigated using the [Search API](https://developers.hubspot.com/docs/api/crm/search)? This allows you to use filters and specify the properties you want returned.

A simple example might look like this:

```lia-code-sample
{
 "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
