# Condition in API Request

**URL:** <https://community.hubspot.com/t/condition-in-api-request/54600>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [April 7, 2022, 5:06pm UTC](https://community.hubspot.com/t/condition-in-api-request/54600 "2022-04-07T17:06:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAhmed01](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@SAhmed01](https://community.hubspot.com/u/SAhmed01)\
**Post date:** [April 7, 2022, 5:06pm UTC](https://community.hubspot.com/t/condition-in-api-request/54600/1 "2022-04-07T17:06:10Z")

</div>

Hi,

I want to see all the contacts where property `hs_analytics_source` is equal to `OFFLINE` of not equal to `OFFLINE`.

I get the data with this below requestbut how to check for condition ?

[https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=KEY&property=hs\_analytics\_source](https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=KEY&property=hs_analytics_source)

Thanks

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 7, 2022, 8:13pm UTC](https://community.hubspot.com/t/condition-in-api-request/54600/2 "2022-04-07T20:13:10Z")

</div>

@SAhmed01

You can use the [CRM Search](https://developers.hubspot.com/docs/api/crm/search) to check for that condition
