Skip to main content
Use LinkedIn mention filters when you want linkedin-posts searches to only return posts that mention a known member URN or organization ID.

Supported filters

Add these fields inside filters when query.monitoring_type is linkedin-posts:
FieldTypeDescription
mentions_memberstring[]LinkedIn member URNs to match against mentioned people in the post
mentions_organizationnumber[]LinkedIn company IDs to match against mentioned organizations in the post
These filters are persisted with the saved search and are reused on recurring Inngest runs.

End-to-end workflow

1. Get a member URN

Call Enrich Profile with the LinkedIn profile URL. The response includes data.prospect.linkedin_urn.
curl -X POST https://api.trigify.io/v1/profile/enrich \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileUrl": "https://linkedin.com/in/amelia-chen"
  }'
Example response excerpt:
{
  "success": true,
  "data": {
    "prospect": {
      "linkedin_url": "https://linkedin.com/in/amelia-chen",
      "linkedin_urn": "urn:li:fsd_profile:ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ"
    }
  }
}

2. Get a company ID

Call Enrich Company with the LinkedIn company URL. The response includes data.linkedin_company_id.
curl -X POST https://api.trigify.io/v1/company/enrich \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "companyUrl": "https://linkedin.com/company/microsoft"
  }'
Example response excerpt:
{
  "success": true,
  "data": {
    "linkedin_company_id": "1035",
    "linkedin_url": "https://linkedin.com/company/microsoft",
    "name": "Microsoft"
  }
}
Use that value as an integer in mentions_organization.
curl -X POST https://api.trigify.io/v1/searches \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Posts mentioning Amelia or Microsoft",
    "query": {
      "keywords": ["ai copilots", "agentic workflow"],
      "monitoring_type": "linkedin-posts"
    },
    "filters": {
      "time_frame": "past-week",
      "frequency": "DAILY",
      "mentions_member": [
        "urn:li:fsd_profile:ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ"
      ],
      "mentions_organization": [1035]
    }
  }'

JavaScript chaining example

const headers = {
  "x-api-key": process.env.TRIGIFY_API_KEY,
  "Content-Type": "application/json",
};

const profileRes = await fetch("https://api.trigify.io/v1/profile/enrich", {
  method: "POST",
  headers,
  body: JSON.stringify({
    profileUrl: "https://linkedin.com/in/amelia-chen",
  }),
});
const profile = await profileRes.json();

const companyRes = await fetch("https://api.trigify.io/v1/company/enrich", {
  method: "POST",
  headers,
  body: JSON.stringify({
    companyUrl: "https://linkedin.com/company/microsoft",
  }),
});
const company = await companyRes.json();

const memberUrn = profile.data.prospect.linkedin_urn;
const companyId = Number(company.data.linkedin_company_id);

const searchRes = await fetch("https://api.trigify.io/v1/searches", {
  method: "POST",
  headers,
  body: JSON.stringify({
    name: "Mention-driven LinkedIn Search",
    query: {
      keywords: ["copilot", "automation"],
      monitoring_type: "linkedin-posts",
    },
    filters: {
      mentions_member: [memberUrn],
      mentions_organization: [companyId],
      frequency: "DAILY",
      time_frame: "past-week",
    },
  }),
});

const search = await searchRes.json();
console.log(search.data.id);

Notes

  • mentions_member and mentions_organization are only valid for linkedin-posts.
  • mentions_organization values must be numeric.
  • You can combine mention filters with standard keyword, job title, content type, and sort filters.