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

# Find ad audiences

> Find hashed emails, phones and mobile advertising IDs from a LinkedIn URL or work email, with results formatted for your chosen advertising network.

Use Find ad audiences to resolve a contact into audience identifiers and rows formatted for an advertising network. A successful result costs **5 Airscale credits per profile**, regardless of the number of identifiers returned. No result costs **0 credits**. Audience matching by the advertising network is not guaranteed.

Authenticate using `Authorization: Bearer <AIRSCALE_API_KEY>` and send JSON with `Content-Type: application/json`.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request POST 'https://api.airscale.io/v1/ad-audiences' \
  --header "Authorization: Bearer $AIRSCALE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"work_email":"jane@example.com","target_network":"meta"}'
```

Example request body:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "linkedin_url": "https://www.linkedin.com/in/jane-doe",
  "work_email": "jane@example.com",
  "target_network": "meta"
}
```

Provide at least one of `linkedin_url` or `work_email`. The supported `target_network` values are `meta`, `google`, `x`, `reddit`, `tiktok`, `linkedin`, `snapchat`, `pinterest`, `amazon`, and `universal`. Omission or `null` selects `universal`. Other fields are rejected.

## Successful response

HTTP 200 returns:

| Field | Meaning |
| - | - |
| `status` | `success` |
| `linkedin_url`, `work_email` | Normalized inputs, when supplied |
| `target_network` | Selected network |
| `person_identifiers` | Available identifiers; fields may be omitted or null |
| `formatted_rows` | Array of dictionaries containing network-specific column names and string values |
| `credits_used` | `5` |
| `credits_remaining` | Balance after settlement |

`person_identifiers` can contain:

* `emails`: pairs of `original_hash` and `normalized_hash`, with `rank_order` when supplied.
* `phones`: `digits_hash` and `e164_hash` pairs.
* `maids`: `maid` with `device_type` equal to `IDFA` or `AAID`, when known. Preserve device identifiers as returned; do not hash them again.
* Additional SHA-256 demographic fields: `fn_hash`, `ln_hash`, `ct_hash`, `st_hash`, `zp_hash`, `country_hash`, `gen_hash`, `doby_hash`, `dob_hash`.

Email, phone and demographic hashes are SHA-256. A profile may match without an email, for example through a phone or a mobile advertising identifier. Use `formatted_rows` for the selected network; `universal` is network-independent data that you must map before upload. This endpoint does not create or upload an audience to an advertising account.

## No result and errors

HTTP 404 for a valid lookup returns `status: "not_found"`, the normalized inputs and selected network, `person_identifiers: null`, `formatted_rows: []`, and `credits_used: 0`.

| HTTP status | Meaning |
| - | - |
| 400 / 422 | Invalid JSON, unsupported fields, invalid profile URL/email or unsupported network |
| 401 | Missing or invalid API key |
| 403 | Insufficient credits |
| 413 | Body exceeds 16 KiB |
| 429 | Request rate limit reached |
| 502 / 503 | Lookup or settlement unavailable; no successful result is returned |
| 504 | Lookup timed out and upstream outcome is unknown; no automatic provider replay is performed |

The public workspace limiter permits up to 60 requests per rolling second. Upstream capacity can produce additional 429 responses. There is no client-supplied idempotency key: a new HTTP request is a new lookup. After a timeout, check your balance before retrying. A new request can be charged independently.

## Find hashed emails or ad audiences

Use [Find hashed emails](https://docs.airscale.io/api-reference/hashed-emails.md) when you only need email hashes. Use this endpoint when you also need phone hashes, mobile advertising identifiers, or network-specific rows. Each operation costs 5 credits per found profile; you do not need to call both to get email hashes.

## In the Airscale app

The same lookup is available as **Find ad audiences** in your tables. Select the target network, inspect the available identifiers in the cell details, and export a profile or the column as audience CSV when formatted rows are available.

Review [Authentication](https://docs.airscale.io/api-reference/authentication.md) and [rate limits](https://docs.airscale.io/api-reference/rate-limits.md) before sending lookups in bulk.


## OpenAPI

````yaml openapi.json POST /v1/ad-audiences
openapi: 3.1.0
info:
  title: Airscale Public API
  version: '2026-09-11'
  description: >-
    Search, enrich, resolve public business data, and monitor job changes with
    Airscale.
  x-airscale-source-repository: ViceScale/airscale-code
  x-airscale-source-sha: 1de19e1b70a052a4b8d9c2075021a7e5e7a94d51
servers:
  - url: https://api.airscale.io
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Search and discovery
    description: Search people, companies, and the web.
  - name: Contact data
    description: Find professional and personal contact data.
  - name: Profiles and reverse lookup
    description: Extract profiles or resolve a person from known contact data.
  - name: Post engagement
    description: Retrieve and enrich people who liked or commented on LinkedIn posts.
  - name: LinkedIn content
    description: >-
      Search LinkedIn posts, read profile and company feeds, and retrieve
      profile comments and comment reactions.
  - name: Job change monitoring
    description: Track LinkedIn profiles and receive job-change events.
  - name: New hire monitoring
    description: Watch companies or the market for people who start a matching role.
  - name: Post engagement monitoring
    description: >-
      Follow LinkedIn company pages and profiles and receive the people who
      engage with their posts.
  - name: Account
    description: Inspect workspace account state.
  - name: Miscellaneous
    description: >-
      Find website technologies and check WhatsApp availability, Meta ads, and
      email deliverability.
paths:
  /v1/ad-audiences:
    post:
      tags:
        - Contact data
      summary: Find ad audiences
      description: >-
        Find available hashed emails, hashed phones, mobile advertising
        identifiers, and rows for the selected ad network from a LinkedIn URL
        and/or work email. Does not upload an audience or guarantee a match.
      operationId: findAdAudiences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                linkedin_url:
                  type:
                    - string
                    - 'null'
                  description: >-
                    LinkedIn profile URL (linkedin.com/in/...). Company pages
                    are rejected.
                  maxLength: 512
                work_email:
                  type:
                    - string
                    - 'null'
                  description: Work email address of the person.
                  maxLength: 254
                target_network:
                  type:
                    - string
                    - 'null'
                  enum:
                    - meta
                    - google
                    - x
                    - reddit
                    - tiktok
                    - linkedin
                    - snapchat
                    - pinterest
                    - amazon
                    - universal
                    - null
                  default: universal
              description: >-
                Provide linkedin_url, work_email, or both. Other fields are
                rejected.
            examples:
              meta:
                value:
                  work_email: jane.doe@example.com
                  target_network: meta
      responses:
        '200':
          description: Usable identifiers or formatted rows found. Costs 5 credits.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  linkedin_url:
                    type: string
                  work_email:
                    type: string
                  target_network:
                    type: string
                    enum:
                      - meta
                      - google
                      - x
                      - reddit
                      - tiktok
                      - linkedin
                      - snapchat
                      - pinterest
                      - amazon
                      - universal
                  person_identifiers:
                    type:
                      - object
                      - 'null'
                    properties:
                      emails:
                        type:
                          - array
                          - 'null'
                        items:
                          type: object
                          properties:
                            normalized_hash:
                              type:
                                - string
                                - 'null'
                              pattern: ^[a-f0-9]{64}$
                            original_hash:
                              type:
                                - string
                                - 'null'
                              pattern: ^[a-f0-9]{64}$
                            rank_order:
                              type: integer
                          additionalProperties: false
                      phones:
                        type:
                          - array
                          - 'null'
                        items:
                          type: object
                          properties:
                            digits_hash:
                              type:
                                - string
                                - 'null'
                              pattern: ^[a-f0-9]{64}$
                            e164_hash:
                              type:
                                - string
                                - 'null'
                              pattern: ^[a-f0-9]{64}$
                          additionalProperties: false
                      maids:
                        type:
                          - array
                          - 'null'
                        items:
                          type: object
                          properties:
                            maid:
                              type:
                                - string
                                - 'null'
                            device_type:
                              type:
                                - string
                                - 'null'
                              enum:
                                - IDFA
                                - AAID
                                - null
                          additionalProperties: false
                      fn_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      ln_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      ct_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      st_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      zp_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      country_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      gen_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      doby_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                      dob_hash:
                        type:
                          - string
                          - 'null'
                        pattern: ^[a-f0-9]{64}$
                    additionalProperties: false
                  formatted_rows:
                    type: array
                    items:
                      type: object
                      additionalProperties:
                        type: string
                  credits_used:
                    type: number
                    const: 5
                  credits_remaining:
                    type:
                      - number
                      - 'null'
                required:
                  - status
                  - target_network
                  - person_identifiers
                  - formatted_rows
                  - credits_used
                  - credits_remaining
                additionalProperties: false
        '400':
          description: Invalid JSON, non-object body or unsupported fields. Not charged.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                      - invalid_input
                required:
                  - error
                  - code
                additionalProperties: true
              examples: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Insufficient credits. At least 5 credits are required before a
            lookup starts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
        '404':
          description: No audience data found. Costs 0 credits.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: not_found
                  linkedin_url:
                    type: string
                  work_email:
                    type: string
                  target_network:
                    type: string
                    enum:
                      - meta
                      - google
                      - x
                      - reddit
                      - tiktok
                      - linkedin
                      - snapchat
                      - pinterest
                      - amazon
                      - universal
                  person_identifiers:
                    type: 'null'
                  formatted_rows:
                    type: array
                    items:
                      type: object
                      additionalProperties:
                        type: string
                    maxItems: 0
                  credits_used:
                    type: number
                    const: 0
                required:
                  - status
                  - target_network
                  - person_identifiers
                  - formatted_rows
                  - credits_used
                additionalProperties: false
        '413':
          description: JSON body exceeds 16 KiB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
        '422':
          description: >-
            Missing contact input, invalid profile URL/email or unsupported
            target_network. Not charged.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                      - invalid_input
                required:
                  - error
                  - code
                additionalProperties: true
              examples: {}
        '429':
          description: >-
            Workspace limit (60 requests per rolling second) or upstream
            capacity reached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
        '502':
          description: The lookup failed or returned an invalid result. Not charged.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
        '503':
          description: >-
            Authentication, rate limiting, the lookup, or credit settlement is
            temporarily unavailable. No result is returned.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
        '504':
          description: >-
            Lookup timed out; upstream outcome is unknown. No automatic provider
            replay is performed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  code:
                    type: string
                required:
                  - error
                additionalProperties: true
              examples: {}
components:
  responses:
    Unauthorized:
      description: The Bearer token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      additionalProperties: true
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: >-
        Use an Airscale workspace API key. Never expose the key in client-side
        code.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.