Discover MeSH Codes

Returns MeSH-based health taxonomy segments (conditions and treatments) along with their targeting availability across PulsePoint targeting methods. Use this endpoint to discover which segments are available for audience vs. contextual targeting, and to retrieve the MeSH codes needed when building tactic targeting.

You do not have to define the segment you are targeting as audience or contextual in your tactic schema, but it is a good filter for understanding which targeting types are based on the page/display and which are based on the audience themselves.

Endpoint

GET

https://lifeapi.pulsepoint.com/RestApi/v2/meta/healthTaxonomy

Query Parameters

NameData TypeRequiredDefaultNotes
segmentTypestringnoallFilter by segment type. Valid values: condition, treatment. Supports comma-separated values for multiple types
targetingTypestringnoallFilter by targeting availability. Valid values: audience, contextual. Supports comma-separated values
targetingMethodstringnoallFilter by a specific targeting method. Valid values: healthPopulations, keywordPopulations, healthJourneyPlus, healthPages, sensitiveAreas, inCondition, keywords
meshCodestringnoFilter by specific MeSH code(s). Supports comma-separated values for multiple codes
searchstringnoFree-text search across segment name and description. Minimum 3 characters
sortENUM stringnonameField to sort by. Valid values: name, meshCode, segmentType
orderENUM stringnoascSort direction. Valid values: asc, desc
cursorstringnoOpaque pagination cursor. Pass the nextCursor value from a previous response to retrieve the next page
limitintegerno50Number of results to return. Pass -1 to return all records

Filtering Logic

  • Multiple values for the same parameter use OR logic (e.g. segmentType=condition,treatment returns conditions or treatments)
  • Different parameters use AND logic (e.g. segmentType=condition&targetingType=audience returns conditions that are available for audience targeting)

Targeting Method Reference

Targeting MethodTargeting Type
healthPopulationsAudience
keywordPopulationsAudience
healthJourneyPlusAudience
healthPagesContextual
sensitiveAreasAudience
inConditionAudience
keywordsContextual

Sample Requests

Get all conditions available for audience targeting
GET https://lifeapi.pulsepoint.com/RestApi/v2/meta/healthTaxonomy?segmentType=condition&targetingType=audience

Search for diabetes-related segments
GET https://lifeapi.pulsepoint.com/RestApi/v2/meta/healthTaxonomy?search=diabetes

Get segments available for a specific targeting method
GET https://lifeapi.pulsepoint.com/RestApi/v2/meta/healthTaxonomy?targetingMethod=healthPopulations

Get segments by specific MeSH codes
GET https://lifeapi.pulsepoint.com/RestApi/v2/meta/healthTaxonomy?meshCode=D003920,D008687,D006973

Response Field List

NameData TypeNotes
dataarray of objectsList of health taxonomy segment objects
data.meshCodestringMeSH (Medical Subject Headings) taxonomy identifier. Use this value when creating tactics with health taxonomy targeting
data.namestringDisplay name of the segment
data.descriptionstringDetailed description of the condition or treatment
data.segmentTypestringType of segment. Valid values: condition, treatment
data.targetingMethodsobjectAvailable targeting methods grouped by targeting type
data.targetingMethods.audiencearray of stringsList of audience targeting methods that support this segment
data.targetingMethods.contextualarray of stringsList of contextual targeting methods that support this segment
data.metadataobjectAdditional taxonomy metadata. {} if not available
data.metadata.taxonomyPathstringFull taxonomy path for the segment (e.g. Diseases > Metabolic Diseases). null if not available
data.metadata.isSensitivebooleanWhether the segment is flagged as a sensitive area
paginationobjectPagination metadata
pagination.limitintegerThe page size used for this response
pagination.totalintegerTotal number of records matching the query
pagination.hasMorebooleanWhether additional pages of results exist
pagination.nextCursorstringOpaque cursor to pass as the cursor query parameter to retrieve the next page. null if no more pages
pagination.nextCursorUrlstringFull URL for the next page of results. null if no more pages

Sample Response

{
  "data": [
    {
      "meshCode": "D003920",
      "name": "Diabetes Mellitus",
      "description": "A metabolic disorder characterized by high blood sugar levels",
      "segmentType": "condition",
      "targetingMethods": {
        "audience": [
          "healthPopulations",
          "keywordPopulations",
          "healthJourneyPlus",
          "inCondition"
        ],
        "contextual": [
          "healthPages"
        ]
      },
      "metadata": {
        "taxonomyPath": "Diseases > Nutritional and Metabolic Diseases > Metabolic Diseases",
        "isSensitive": false
      }
    }
  ],
  "pagination": {
    "limit": 50,
    "total": 1547,
    "hasMore": true,
    "nextCursor": "eyJtZXNoX2lkIjoiRDAwMzkyMCIsIm9mZnNldCI6MTAwfQ==",
    "nextCursorUrl": "/v2/meta/healthTaxonomy?cursor=eyJtZXNoX2lkIjoiRDAwMzkyMCIsIm9mZnNldCI6MTAwfQ==&limit=50"
  }
}

Errors

HTTP StatusErrorDescription
400Bad RequestInvalid query parameters, or search value is fewer than 3 characters
422Unprocessable EntityInvalid filter combinations