---
title: "B2B Ad Details"
method: POST
path: "/v1/ads/b2b-ads-details"
tags: ["Ads Data"]
---

# B2B Ad Details

`POST /v1/ads/b2b-ads-details`

Get detailed information about a specific B2B ad using its ad library URL, path, or numeric ID.

## Request body

- object
  - `ad_url` string, required — B2B ad library URL, path (/ad-library/detail/{id}), or numeric ad ID

## Response `200`

Successful response with ad details

- object
  - `message` string
  - `credits_consumed` number
  - `company` object
    - `name` string, nullable
    - `domain` string, nullable
    - `industry` string, nullable
    - `company_size` string, nullable
    - `linkedin_url` string, nullable
    - `logo_url` string, nullable
    - `city` string, nullable
    - `state` string, nullable
    - `country` string, nullable
  - `ad_details` object — Normalized ad object (same shape as B2B Ads Search) plus raw source payload
    - `ad_id` string
    - `headline` string, nullable
    - `description` string, nullable
    - `content` string
    - `link` string
    - `ad_url` string
    - `ad_type` string, nullable
    - `creative_type` string, nullable
    - `advertiser` string, nullable
    - `advertiser_linkedin_url` string, nullable
    - `cta_text` string, nullable
    - `landing_page_url` string, nullable
    - `image_url` string, nullable
    - `carousel_images` string[]
    - `video_url` string, nullable
    - `targeting` object, nullable
    - `total_impressions` string, nullable
    - `impressions_by_country` unknown[]
      - unknown
    - `message_ad` object, nullable
    - `raw` object — Original ad payload for unmapped fields

## Other responses

- `400` — Bad Request - The request was malformed or contains invalid parameters. **Common causes:** - Missing required fields - Invalid field format (e.g., malformed email) - Invalid JSON syntax - Invalid parameter values
- `401` — Unauthorized - Authentication failed. **Common causes:** - Missing X-API-Key header - Invalid or expired API key - Malformed API key
- `402` — Payment Required - Insufficient credits for this request. **Action required:** Add credits to your account at https://app.leadmagic.io/settings/billing
- `404` — Not Found - The requested resource could not be found. **Common causes:** - Profile doesn't exist or is not accessible - Company not found in our database - Invalid URL or identifier
- `429` — Too Many Requests - Rate limit exceeded. **Action required:** Check the `Retry-After` header for when to retry. **Headers returned:** - `Retry-After`: Seconds until you can retry - `RateLimit-Limit`: Your limit per minute - `RateLimit-Remaining`: Remaining requests this minute - `RateLimit-Reset`: Seconds until limit resets
- `500` — Internal Server Error - Something went wrong on our end. **Action required:** Wait 30 seconds and retry. If the problem persists, contact support@leadmagic.io

---

[API](https://skmtc.net/leadmagic/apis/leadmagic-api.md) · [All operations](https://skmtc.net/leadmagic/apis/leadmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/leadmagic/leadmagic-api/revisions/aa19cf9bc46a/schema)
