Skip to main content
POST
/
v1
/
ads
/
b2b-ads-search
B2B Search Ads
curl --request POST \
  --url https://api.leadmagic.io/v1/ads/b2b-ads-search \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "company_domain": "leadmagic.io",
  "company_name": "leadmagic"
}
'
{
  "message": "B2B Ads retrieved successfully",
  "credits_consumed": 2,
  "ads_count": 2,
  "ads": [
    {
      "content": "Start your day knowing what deals you need to focus on instead of opening up a dozen tabs in your CRM.",
      "link": 633872143
    },
    {
      "content": "Start your day knowing what deals you need to focus on instead of opening up a dozen tabs in your CRM.",
      "link": 633865353
    }
  ]
}

B2B Ads

Search for B2B professional network ads run by a company. Perfect for understanding B2B advertising strategies and competitive positioning.

Endpoint Details

MetricValue
Cost0.2 credits per search
Calculation5 searches = 1 credit
No ResultsFREE if no ads found
Very cost-effective for B2B ad intelligence at just 0.2 credits per search.

Quick Example

curl -X POST 'https://api.leadmagic.io/v1/ads/b2b-ads-search' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"company_domain": "salesforce.com"}'

Request Parameters

company_domain
string
Company website domain (preferred).
company_name
string
Company name.
You must provide either company_domain or company_name (or both).

Response

company_name
string
required
Company searched
ads
array
required
Array of ad creatives
credits_consumed
number
required
Credits used (0.2 if found, 0 if not)
message
string
required
Human-readable status message

Ad Object

FieldTypeDescription
contentstringAd copy/headline
linkstringAd Library ID (use with B2B Ad Details)
image_urlstringAd image URL

Example Response

{
  "company_name": "Salesforce",
  "ads": [
    {
      "content": "Transform your business with the #1 CRM",
      "link": "633872143",
      "image_url": "https://..."
    }
  ],
  "credits_consumed": 0.2,
  "message": "Ads found."
}

Success Messages

MessageMeaningCost
Ads found.B2B Ads data returned0.2 credits
No ads found for this company.No B2B Ads foundFREE

Best Practices

Use the link field with B2B Ad Details for complete creative data.
B2B ads reveal competitor positioning and value propositions.
Understand how your prospects market to their customers.

Use Cases

Competitive Intelligence

Monitor competitor B2B advertising strategies.

Messaging Research

Study B2B value propositions and positioning.

Account Research

See how target accounts advertise to their customers.

Market Analysis

Analyze B2B advertising trends in your industry.

Authorizations

X-API-Key
string
header
required

Your LeadMagic API key. Header name is case-insensitive (X-API-Key, X-API-KEY, x-api-key all work).

Body

application/json
company_domain
string
default:leadmagic.io

Company domain name

Example:

"leadmagic.io"

company_name
string
default:leadmagic

Company name

Example:

"leadmagic"

Response

Successful response with ads details

message
string
Example:

"B2B Ads retrieved successfully"

credits_consumed
number
Example:

4.6

ads_count
integer
Example:

2

ads
object[]