Sensors Data Express Audience Online API

The Express Audience Online API from Sensors Data — 4 operation(s) for express audience online.

Operations 4

POST /express-audience-online/audience-entity/exists 判断一个用户是否在一批受众内 #
POST /express-audience-online/audience-entities/exists 查看一批用户是否在一个受众内 #
POST /express-audience-online/audience-entity/put 将一批用户写入一个受众规则 #
POST /express-audience-online/audience-entity/delete 将一批用户移出一个受众规则 #

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/sensors-data-express-audience-online-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

sensors-data-express-audience-online-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 受众引擎在线数据服务
  title: 神策智能运营 Express Audience Online API
  version: ''
servers:
- url: /api/v3/focus/v1
tags:
- name: Express Audience Online
paths:
  /express-audience-online/audience-entity/exists:
    post:
      description: 判断一个用户是否在一批受众内, 需要确保受众处于ready状态
      operationId: IsAudienceEntityExistsInRules
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.IsAudienceEntityExistsInRulesRequest'
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  invalid_entity:
                    entity_name: user
                    entity_id: {}
                  results:
                    '2': true
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponseHttpApiResult'
          description: sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponse
      summary: 判断一个用户是否在一批受众内
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.IsAudienceEntityExistsInRulesRequest
        grpcServiceBase: com.sensorsdata.focus.v1.ExpressAudienceOnlineServiceGrpc.ExpressAudienceOnlineServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: IsAudienceEntityExistsInRulesRequest
      tags:
      - Express Audience Online
  /express-audience-online/audience-entities/exists:
    post:
      description: 查看一批用户是否在一个受众内
      operationId: IsBatchAudienceEntityExists
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.IsBatchAudienceEntityExistsRequest'
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  results:
                  - true
                  - false
                  - true
                  invalid_entities:
                  - entity_name: user
                    entity_id: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponseHttpApiResult'
          description: sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponse
      summary: 查看一批用户是否在一个受众内
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.IsBatchAudienceEntityExistsRequest
        grpcServiceBase: com.sensorsdata.focus.v1.ExpressAudienceOnlineServiceGrpc.ExpressAudienceOnlineServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: IsBatchAudienceEntityExistsRequest
      tags:
      - Express Audience Online
  /express-audience-online/audience-entity/put:
    post:
      description: 将一批用户写入一个受众规则
      operationId: PutBatchAudienceEntity
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.PutBatchAudienceEntityRequest'
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  results:
                    '2': true
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.PutBatchAudienceEntityResponseHttpApiResult'
          description: sensorsdata.focus.v1.PutBatchAudienceEntityResponse
      summary: 将一批用户写入一个受众规则
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.PutBatchAudienceEntityResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.PutBatchAudienceEntityRequest
        grpcServiceBase: com.sensorsdata.focus.v1.ExpressAudienceOnlineServiceGrpc.ExpressAudienceOnlineServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: PutBatchAudienceEntityRequest
      tags:
      - Express Audience Online
  /express-audience-online/audience-entity/delete:
    post:
      description: 将一批用户移出一个受众规则
      operationId: DeleteBatchAudienceEntity
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.DeleteBatchAudienceEntityRequest'
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  results:
                    '2': true
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.DeleteBatchAudienceEntityResponseHttpApiResult'
          description: sensorsdata.focus.v1.DeleteBatchAudienceEntityResponse
      summary: 将一批用户移出一个受众规则
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.DeleteBatchAudienceEntityResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.DeleteBatchAudienceEntityRequest
        grpcServiceBase: com.sensorsdata.focus.v1.ExpressAudienceOnlineServiceGrpc.ExpressAudienceOnlineServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: DeleteBatchAudienceEntityRequest
      tags:
      - Express Audience Online
components:
  schemas:
    sensorsdata.focus.v1.express.audience.open.AudienceEntityId:
      description: 通用的实体ID结构
      properties:
        entity_name:
          description: 实体名,不传默认为user实体
          example: user
          type: string
        identity_id_map:
          additionalProperties:
            description: ''
            type: string
          description: '业务主键map,key: id_name(业务id字段名), value: id_value(具体的id值); id_name,如 distinct_id, first_id, second_id, $identity_mobile等;identity_id_map 与 entity_id 只需设置其中一个,如果同时设置则以 entity_id 为准'
          type: object
        entity_id:
          $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityCommonId'
      title: AudienceEntityId
      type: object
    sensorsdata.focus.v1.DeleteBatchAudienceEntityResponse:
      description: ''
      properties:
        results:
          additionalProperties:
            description: ''
            type: boolean
          description: 是否存在的结果集Map
          example:
            '2': true
          type: object
      title: DeleteBatchAudienceEntityResponse
      type: object
    sensorsdata.focus.v1.DeleteBatchAudienceEntityResponseHttpApiResult:
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
        data:
          $ref: '#/components/schemas/sensorsdata.focus.v1.DeleteBatchAudienceEntityResponse'
        error_info:
          $ref: '#/components/schemas/sensorsdata.common.ErrorInfo'
      title: sensorsdata.focus.v1.DeleteBatchAudienceEntityResponseHttpApiResult
      type: object
    sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponse:
      description: ''
      properties:
        results:
          description: 是否存在的有序结果集
          example: '[true,false,true]'
          items:
            type: boolean
          type: array
        invalid_entities:
          description: 系统查不到的用户列表
          items:
            $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
          type: array
        error_biz_id_map:
          additionalProperties:
            description: ''
            enum:
            - UNSPECIFIED
            - NO_PERMISSION
            - NOT_EXIST
            type: string
          description: 错误的 biz id 集合
          type: object
      title: IsBatchAudienceEntityExistsResponse
      type: object
    sensorsdata.focus.v1.express.audience.open.AudienceEntityCommonId:
      description: ''
      properties:
        data_type:
          description: 取值的数据类型,必传
          enum:
          - INT
          - STRING
          type: string
        int_value:
          description: int_value与string_value只设置其中一个(例如:item_id为string类型,user_id为long类型)
          format: int64
          type: integer
        string_value:
          description: int_value与string_value只设置其中一个(例如:item_id为string类型,user_id为long类型)
          type: string
      title: AudienceEntityCommonId
      type: object
    sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponseHttpApiResult:
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
        data:
          $ref: '#/components/schemas/sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponse'
        error_info:
          $ref: '#/components/schemas/sensorsdata.common.ErrorInfo'
      title: sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponseHttpApiResult
      type: object
    sensorsdata.common.ErrorContext:
      description: 发生错误时,系统快照信息
      properties:
        origin_stack:
          description: 上游异常的 stack,由系统截获
          type: string
        origin_cause:
          description: 上游异常的 cause by,由系统截获
          type: string
        origin_code:
          description: 上游异常的错误简码
          type: string
        origin_complete_code:
          description: 上游异常的完整错误码
          type: string
        error_extend_desc:
          description: 本次异常的辅助说明,可传入
          type: string
      title: ErrorContext
      type: object
    sensorsdata.focus.v1.PutBatchAudienceEntityResponse:
      description: ''
      properties:
        results:
          additionalProperties:
            description: ''
            type: boolean
          description: 是否存在的结果集Map
          example:
            '2': true
          type: object
      title: PutBatchAudienceEntityResponse
      type: object
    sensorsdata.focus.v1.IsAudienceEntityExistsInRulesRequest:
      description: ''
      properties:
        audience_biz_ids:
          description: 受众规则ID列表
          example: '[2,3,4]'
          items:
            type: string
          type: array
        audience_entity_id:
          $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
      title: IsAudienceEntityExistsInRulesRequest
      type: object
    sensorsdata.focus.v1.IsBatchAudienceEntityExistsRequest:
      description: ''
      properties:
        audience_biz_id:
          description: 受众规则ID
          example: '2'
          type: string
        audience_entity_ids:
          description: 用户ID
          example: '[{"entity_id":123},{"entity_id":1234}]'
          items:
            $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
          type: array
      title: IsBatchAudienceEntityExistsRequest
      type: object
    sensorsdata.focus.v1.IsAudienceEntityExistsInRulesResponse:
      description: ''
      properties:
        results:
          additionalProperties:
            description: ''
            type: boolean
          description: 是否存在的结果集Map
          example:
            '2': true
          type: object
        invalid_entity:
          $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
        error_biz_id_map:
          additionalProperties:
            description: ''
            enum:
            - UNSPECIFIED
            - NO_PERMISSION
            - NOT_EXIST
            type: string
          description: 错误的 biz id 集合
          type: object
      title: IsAudienceEntityExistsInRulesResponse
      type: object
    sensorsdata.focus.v1.PutBatchAudienceEntityResponseHttpApiResult:
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
        data:
          $ref: '#/components/schemas/sensorsdata.focus.v1.PutBatchAudienceEntityResponse'
        error_info:
          $ref: '#/components/schemas/sensorsdata.common.ErrorInfo'
      title: sensorsdata.focus.v1.PutBatchAudienceEntityResponseHttpApiResult
      type: object
    sensorsdata.focus.v1.PutBatchAudienceEntityRequest:
      description: ''
      properties:
        audience_biz_id:
          description: 受众规则ID
          example: '2'
          type: string
        audience_entity_ids:
          description: 用户ID
          example: '[{"entity_id":123},{"entity_id":1234}]'
          items:
            $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
          type: array
      title: PutBatchAudienceEntityRequest
      type: object
    sensorsdata.common.ErrorCause:
      properties:
        error_cause:
          description: 致错原因1
          example: 参数异常1
          type: string
        action_suggestion:
          description: 操作建议,针对该原因,建议的解决方式
          example: 检测入参的数据类型1
          type: string
      title: ErrorCause
      type: object
    sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponseHttpApiResult:
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
        data:
          $ref: '#/components/schemas/sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponse'
        error_info:
          $ref: '#/components/schemas/sensorsdata.common.ErrorInfo'
      title: sensorsdata.focus.v1.IsBatchAudienceEntityExistsResponseHttpApiResult
      type: object
    sensorsdata.common.ErrorInfo:
      properties:
        code:
          description: 具体的错误码
          example: XX-D-F-2-1
          type: string
        description:
          description: 错误描述
          example: 前端参数校验异常,PARAMETER_FORMAT_ERROR(quantiles=[10, -90] is not include [0, 100])
          type: string
        system_response:
          description: 致错的可能原因列表
          example: 系统终止了查询处理
          type: string
        error_causes:
          items:
            $ref: '#/components/schemas/sensorsdata.common.ErrorCause'
          type: array
        context:
          $ref: '#/components/schemas/sensorsdata.common.ErrorContext'
      title: ErrorInfo
      type: object
    sensorsdata.focus.v1.DeleteBatchAudienceEntityRequest:
      description: ''
      properties:
        audience_biz_id:
          description: 受众规则ID
          example: '2'
          type: string
        audience_entity_ids:
          description: 用户ID
          example: '[{"entity_id":123},{"entity_id":1234}]'
          items:
            $ref: '#/components/schemas/sensorsdata.focus.v1.express.audience.open.AudienceEntityId'
          type: array
      title: DeleteBatchAudienceEntityRequest
      type: object
x-sd-openapi-service-name: ExpressAudienceOnline
x-sd-openapi-service-name-hyphen: express-audience-online
x-sd-openapi-app-name: focus
x-sd-openapi-service-name-zh_cn: 受众-在线接口
x-original-swagger-version: '2.0'