LiveRamp View Segments API

The View Segments API from LiveRamp — 2 operation(s) for view segments.

Operations 2

GET /v2/segments Fetch a list of Segments #
GET /v2/segments/{id} Fetch a single Segment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/liveramp-view-segments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

liveramp-view-segments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Activation View Segments API
  description: An API for destination management and segment delivery
  version: 2.9.0
servers:
- description: Production API server
  url: https://api.liveramp.com/activation
tags:
- name: View Segments
  description: ''
paths:
  /v2/segments:
    get:
      tags:
      - View Segments
      operationId: Get v2/Segments
      description: ''
      summary: Fetch a list of Segments
      responses:
        '200':
          description: v2/Segments retrieved successfully
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2SegmentMultiResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
      parameters:
      - in: query
        name: limit
        description: Number of v2/Segments to return
        schema:
          type: integer
          format: int32
          default: 10
          minimum: 1
          maximum: 100
      - in: query
        name: after
        description: This value is a cursor that enables continued paginated queries. Its value can be found under "_pagination.after" in the previous response from this endpoint.
        schema:
          type: string
      - in: query
        name: valueName
        description: Search by a field name+value pair. If valueName is set, fieldName must also be set
        required: false
        schema:
          type: string
      - in: query
        name: fieldName
        description: Search by a field name+value pair. If fieldName is set, valueName must also be set
        required: false
        schema:
          type: string
      - description: Bearer Authorization using the access token generated with your service account
        in: header
        name: Authorization
        required: true
        schema:
          type: string
      - description: LiveRamp Org ID to make requests as. Starting Jan 2022, this is recommended over the Liveramp Customer ID header
        in: header
        name: LR-Org-ID
        required: true
        schema:
          type: string
  /v2/segments/{id}:
    get:
      tags:
      - View Segments
      operationId: Get v2/Segment
      description: ''
      summary: Fetch a single Segment
      responses:
        '200':
          description: v2/Segment retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2SegmentOutput'
        '404':
          description: v2/Segment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      - description: Bearer Authorization using the access token generated with your service account
        in: header
        name: Authorization
        required: true
        schema:
          type: string
      - description: LiveRamp Org ID to make requests as. Starting Jan 2022, this is recommended over the Liveramp Customer ID header
        in: header
        name: LR-Org-ID
        required: true
        schema:
          type: string
components:
  schemas:
    v2SegmentOutput:
      type: object
      properties:
        id:
          type: string
        field:
          allOf:
          - $ref: '#/components/schemas/Field'
          type: object
        value:
          type: string
        type:
          allOf:
          - $ref: '#/components/schemas/SegmentType'
          type: string
      required:
      - id
      - field
      - value
      - type
      description: Represents a field-value pair that can be added to a Distribution Manager
    v2SegmentMultiResponse:
      type: object
      properties:
        v2/Segments:
          description: Array of retrieved v2/Segments
          type: array
          items:
            $ref: '#/components/schemas/v2SegmentOutput'
        _pagination:
          $ref: '#/components/schemas/v2SegmentMultiResponsePagination'
    Field:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        audienceId:
          type: string
      required:
      - id
      - name
      - audienceId
    StandardError:
      type: object
      properties:
        httpStatus:
          description: HTTP error status code for this problem
          type: integer
          format: int32
        errorCode:
          description: Service specific error code, more granular
          type: string
        message:
          description: General, human readable error message
          type: string
      required:
      - httpStatus
      - errorCode
      - message
    SegmentType:
      type: string
      enum:
      - ONBOARDING
      - DATA_MARKETPLACE
    v2SegmentMultiResponsePagination:
      type: object
      properties:
        after:
          type:
          - string
          - 'null'
          description: 'This field is a cursor to be passed as a query parameter in subsequent, paginated queries.

            It allows the next request to begin from where the current request left off.

            When "after" is  null, there are no more records to fetch.'
        total:
          type: integer
          description: The total number of results.