> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Platform fields & targeting

Every platformSpecificData field for LinkedIn, and audience targeting on organization pages.

## Audience targeting (organization pages)

`audience` applies LinkedIn organization-page audience targeting (Ads Manager's "Targeted audience"). It is rejected on personal profiles, and LinkedIn rejects the post when the targeted audience is under 300 members.

Targeting is OR within a facet (e.g., any of the listed industries) and AND across facets (e.g., industry AND seniority).

> **Note:** `audience.countries` is merged with `geoRestriction.countries` (same ISO code list). Use `audience.geoLocations` for countries/regions/cities not covered by the built-in country mapping.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="curl">
```bash
curl -X POST https://zernio.com/api/v1/posts \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "We are hiring across EMEA.",
    "platforms": [
      {
        "platform": "linkedin",
        "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
        "platformSpecificData": {
          "organizationUrn": "urn:li:organization:111111111",
          "audience": {
            "countries": ["ES", "DE"],
            "industries": ["urn:li:industry:4"],
            "seniorities": ["urn:li:seniority:6"],
            "staffCountRanges": ["SIZE_51_TO_200", "SIZE_201_TO_500"],
            "interfaceLocales": [{"language": "es", "country": "ES"}]
          }
        }
      }
    ],
    "publishNow": true
  }'
```
</Tab>
<Tab value="Node.js">
```javascript
import Zernio from '@zernio/node';

const zernio = new Zernio();

const { data: published } = await zernio.posts.createPost({
  body: {
    content: 'We are hiring across EMEA.',
    platforms: [
      {
        platform: 'linkedin',
        accountId: '66b2e19d8c3f5a7e9d0b1c2d',
        platformSpecificData: {
          organizationUrn: 'urn:li:organization:111111111',
          audience: {
            countries: ['ES', 'DE'],
            industries: ['urn:li:industry:4'],
            seniorities: ['urn:li:seniority:6'],
            staffCountRanges: ['SIZE_51_TO_200', 'SIZE_201_TO_500'],
            interfaceLocales: [{ language: 'es', country: 'ES' }]
          }
        }
      }
    ],
    publishNow: true
  }
});

console.log(published.post.platforms[0].platformPostUrl);
```
</Tab>
<Tab value="Python">
```python
from zernio import Zernio

client = Zernio()

published = client.posts.create_post(
    content="We are hiring across EMEA.",
    platforms=[
        {
            "platform": "linkedin",
            "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
            "platformSpecificData": {
                "organizationUrn": "urn:li:organization:111111111",
                "audience": {
                    "countries": ["ES", "DE"],
                    "industries": ["urn:li:industry:4"],
                    "seniorities": ["urn:li:seniority:6"],
                    "staffCountRanges": ["SIZE_51_TO_200", "SIZE_201_TO_500"],
                    "interfaceLocales": [{"language": "es", "country": "ES"}],
                },
            },
        }
    ],
    publish_now=True,
)

print(published["post"]["platforms"][0]["platformPostUrl"])
```
</Tab>
</Tabs>

To find targeting ids, use `GET /v1/ads/targeting/search?platform=linkedin` (types: `country`, `region`, `industry`, `jobFunction`, `jobTitle`, `seniority`, `companySize`, `skill`). URN facets accept either a full `urn:li:<type>:<id>` or the bare numeric id.

## Platform fields

All fields go in `platformSpecificData` on the LinkedIn entry.

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `documentTitle` | string | media item `title`, then filename | Title shown on document (PDF/carousel) posts. LinkedIn requires one for document posts. |
| `organizationUrn` | string | (default organization or personal profile) | Post to a specific organization page, `urn:li:organization:123456`. List the options with `GET /v1/accounts/{accountId}/linkedin-organizations`. |
| `firstComment` | string | | Posted as the first comment after publishing. |
| `disableLinkPreview` | boolean | `false` | `true` suppresses the automatic URL preview card. |
| `audience` | object | | Organization pages only. Audience targeting (OR within a facet, AND across facets). LinkedIn rejects targeting under 300 members. |
| `audience.countries` | Array\<string\> | | Up to 25 ISO 3166-1 alpha-2 codes with a built-in LinkedIn geo URN (merged with `geoRestriction.countries`). |
| `audience.geoLocations` | Array\<string\> | | LinkedIn geo URNs or ids (`urn:li:geo:<id>` or `<id>`): countries, states, regions, cities. |
| `audience.interfaceLocales` | `Array<{language, country}>` | | Members' LinkedIn interface locale, e.g. `{ language: "es", country: "ES" }`. |
| `audience.industries` | Array\<string\> | | `urn:li:industry:<id>` or id. |
| `audience.jobFunctions` | Array\<string\> | | `urn:li:function:<id>` or id. |
| `audience.seniorities` | Array\<string\> | | `urn:li:seniority:<id>` or id. |
| `audience.staffCountRanges` | Array\<"SIZE_1" \| "SIZE_2_TO_10" \| "SIZE_11_TO_50" \| "SIZE_51_TO_200" \| "SIZE_201_TO_500" \| "SIZE_501_TO_1000" \| "SIZE_1001_TO_5000" \| "SIZE_5001_TO_10000" \| "SIZE_10001_OR_MORE"\> | | Company size of the member's current employer. |
| `audience.degrees` | Array\<string\> | | `urn:li:degree:<id>` or id. |
| `audience.fieldsOfStudy` | Array\<string\> | | `urn:li:fieldOfStudy:<id>` or id. |
| `audience.organizations` | Array\<string\> | | Schools, as `urn:li:organization:<id>` or id. |
| `reshareUrl` | string | | Post link or `urn:li:share` / `urn:li:ugcPost` / `urn:li:groupPost` URN to repost. Mutually exclusive with `mediaItems`. See [Repost](/platforms/linkedin/posts#repost). |
| `poll` | \{question, options, duration?\} | | Create a poll. Cannot be combined with `mediaItems` or `reshareUrl`. See [Poll](/platforms/linkedin/posts#poll). |
| `poll.question` | string | | 1 to 140 characters. |
| `poll.options` | Array\<string\> | | 2 to 4 choices, 1 to 30 characters each. |
| `poll.duration` | `"ONE_DAY"` \| `"THREE_DAYS"` \| `"SEVEN_DAYS"` \| `"FOURTEEN_DAYS"` | `"SEVEN_DAYS"` | How long the poll accepts votes. |
| `geoRestriction` | \{countries\} | | Restrict visibility to up to 25 countries. Organization pages only, 300+ targeted followers. See [Geo-restriction](/platforms/linkedin/posts#geo-restriction). |