Get Behavioral Targeting Segments

Returns a paginated list of behavioral segments available for targeting within a given account. If you feel like you aren't seeing segments that should show up within your account ID, please contact your account manager. Results can be filtered by segment name, data provider, size, and CPM cost.

Endpoint

GET

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

Query Parameters

NameData TypeRequiredDefaultNotes
accountIdintegeryesThe account ID to retrieve behavioral segments for. Must have access to the account ID provided
searchstringnoFilter segments by name. Case-insensitive, supports partial word matching
accessible_onlybooleannotrueWhen true, only returns segments the account has access to
providersstringnoComma-separated list of data provider IDs to filter by
min_sizeintegernoMinimum segment size (number of users)
max_sizeintegernoMaximum segment size (number of users)
min_cpmnumbernoMinimum CPM cost filter
max_cpmnumbernoMaximum CPM cost filter
sortENUM stringnonameSort results by field. Valid Values: name, size, cpm, provider
orderENUM stringnoascSort direction. Valid Values: asc, desc
limitintegerno50Number of results per page. Maximum: 100
cursorstringnoOpaque pagination cursor. Pass the next_cursor value from a previous response to retrieve the next page
exportbooleannofalseReturn results in export format
formatENUM stringnojsonExport format. Valid Values: json, csv

Sample Request

GET https://lifeapi.pulsepoint.com/RestApi/v2/meta/behavioralSegments?accountId=559145&search=Auto+Buyers&limit=50

Response Field List

NameData TypeNotes
successbooleanReturns true on a successful request
messagestringHuman-readable result message
requestIdstringUnique identifier for the request
dataobjectWrapper containing results and pagination
data.dataarray of objectsList of behavioral segment objects
data.data.idstringThe segment ID
data.data.namestringThe segment name
data.data.providerobjectThe data provider associated with this segment
data.data.provider.idstringData provider ID
data.data.provider.namestringData provider name
data.data.sizeintegerSegment size — the number of users in the segment
data.data.cpmnumberCost per thousand impressions for this segment
data.data.currencystringCurrency code for the CPM value. Example: USD
data.paginationobjectPagination metadata
data.pagination.limitintegerThe page size used for this response
data.pagination.totalintegerTotal number of segments matching the query
data.pagination.has_morebooleanWhether additional pages of results exist
data.pagination.next_cursorstringOpaque cursor to pass as the cursor query parameter to retrieve the next page
data.pagination.next_cursor_urlstringFull URL for the next page of results

Sample Response

{
  "success": true,
  "message": "Operation completed successfully",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "data": [
      {
        "id": "12345",
        "name": "In-Market: Auto Buyers",
        "provider": {
          "id": "100",
          "name": "Acme Data Provider"
        },
        "size": 1500000,
        "cpm": 0.75,
        "currency": "USD"
      }
    ],
    "pagination": {
      "limit": 50,
      "total": 1250,
      "has_more": true,
      "next_cursor": "eyJpZCI6MTIzNDU2fQ",
      "next_cursor_url": "/RestApi/v2/meta/behavioralSegments?accountId=559145&cursor=eyJpZCI6MTIzNDU2fQ&limit=50"
    }
  }
}

Errors

HTTP StatusErrorDescription
400Validation ErrorMissing or invalid query parameters. accountId is required and must be a valid number. Occurs also when filter parameters conflict (e.g., min_size is greater than max_size)
401UnauthorizedInvalid or expired access token
403ForbiddenYou do not have permission to access behavioral segments for this account, or the account does not have access to the requested data provider. Contact your account manager to enable provider access
404Not FoundNo behavioral segments found matching the specified criteria
422Unprocessable EntityInvalid filter combination
429Too Many RequestsRate limit exceeded
500Internal Server Error