> ## Documentation Index
> Fetch the complete documentation index at: https://developers.criteo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# [Audiences] Get Existing Audiences

export const EndpointBadge = ({method = "GET", children}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-[#2AB673]"
    },
    POST: {
      bg: "mint-bg-[#3064E3]"
    },
    PUT: {
      bg: "mint-bg-[#C28C30]"
    },
    PATCH: {
      bg: "mint-bg-[#DA622B]"
    },
    DELETE: {
      bg: "mint-bg-[#CB3A32]"
    },
    API: {
      bg: "mint-bg-black"
    }
  };
  const key = method.toUpperCase();
  const styles = METHOD_STYLES[key] ?? METHOD_STYLES.API;
  return <div className="relative mt-7">
      <span className={`absolute -top-2 -left-2 z-10 ${styles.bg} text-white px-2.5 py-0.5 rounded-full text-xs font-bold tracking-wide`}>
        {key}
      </span>
      {children}
    </div>;
};

## **Retrieving Audiences for a Specific Advertiser**

Audiences created through Criteo's API will be returned for the designated advertiser id.

<EndpointBadge method="get">
  ```http theme={null}
  https://api.criteo.com/legacy/marketing/v1/audiences
  ```
</EndpointBadge>

<CodeGroup>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.criteo.com/legacy/marketing/v1/audiences?advertiserId=1234' \
    --header 'Accept: application/json'
  ```
</CodeGroup>

 

The API will return an object with an array of all the audiences associated with the advertiser id.

<CodeGroup>
  ```json JSON theme={null}
  {
    "audiences": [
      {
        "id": 9999,
        "advertiserId": 1234,
        "name": "Custom Audience",
        "description": "Custom Audience for Retargeting Campaign",
        "created": 1559902356,
        "updated": 1584504000,
        "nbLines": 392403,
        "nbLinesEmail": 392403,
        "nbMatchesEmail": 276000
      },
      {
        "id": 7777,
        "advertiserId": 1234,
        "name": "Lapsed Users Audience",
        "description": "Lapsed Users Audience for Prospecting Campaign",
        "created": 1559914086,
        "updated": 1584504000,
        "nbLines": 2914455,
        "nbLinesEmail": 2914455,
        "nbMatchesEmail": 1890392
      }
    ]
  }
  ```
</CodeGroup>
