> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 检查达人受众真实性

> 分析 Instagram 互动账号样本或 YouTube 评论账号样本，返回风险比例及该估计的采样人群与分母口径。有效报告中的零风险比例也计为成功交付。

## 异步提交与结果查询

1. 发送 `POST /v1/tasks/creators.check_audience_authenticity`，并提供唯一的 `Idempotency-Key`。重发同一笔请求时复用原键和请求体。返回 HTTP `202` 表示已受理，请保存任务 `id` 和 `Location` 中的相对地址。
2. 按 `Retry-After` 返回的秒数等待，再用同一个 API key 请求 `GET /v1/tasks/creators.check_audience_authenticity/jobs/{job_id}`，将 `{job_id}` 替换为返回的 `id`。也可以将 `Location` 直接拼到 API 域名后查询。`status` 为 `queued`、`running` 或 `settling` 时继续轮询。
3. `status` 为 `completed`、`failed` 或 `cancelled` 时停止。`completed` 时读取 `output`，其中 `output.status` 为 `not_found` 表示正常查空。`failed` 时查看 `error.code`、`error.retryable` 和 `error.retry_hint`。

```bash theme={null}
curl -H "Authorization: Bearer $AISA_API_KEY" "${AISA_API_BASE}/v1/tasks/creators.check_audience_authenticity/jobs/${JOB_ID}"
```

上方请求和响应面板使用此 API 发布的 Schema。条件必填和参数组合限制属于请求契约；组合筛选条件或账号身份前，请查看完整 Schema。

## 计费

| 输入 | 计价单位 | 价格 (USD) |
| - | - | - |
| 所有有效输入 | 每次成功请求 | 1.18 |

成功交付才收费；正常查空不收费。

发送相同请求并带上 `X-AISA-Cost-Mode: quote`，获取与输入对应的报价；报价不执行任务，也不预扣资金。实际执行时预扣预计请求费用，按上述规则结算。用 `X-AISA-Max-Price-USD` 设置价格上限。

执行任务时使用 `Idempotency-Key`。错误时查看 `error.code`、`error.request_id`、`error.retryable` 和 `error.retry_hint`。提示先核对结算时，应先查询原请求再决定是否重试；不能把待结算当作已退款。


## OpenAPI

````yaml zh/tasks/openapi.json POST /v1/tasks/creators.check_audience_authenticity
openapi: 3.1.0
info:
  title: AIsa Tasks
  version: '1'
  x-aisa-runtime-release:
    artifact_revision: e90fa4c481ded37920694de9840c583d81f1bf2325828151f002073162c1a4c6
    compiler_revision: 0800a03af5e6be8b714a732a7a5447f1bcbc10d1
    source_digest: 66ea537681795a0c5ca93f8bae0914ace489d8a461f54e604f53c3142e68632d
    generation: 16764
servers:
  - url: https://api.aisa.one
security:
  - bearer: []
paths:
  /v1/tasks/creators.check_audience_authenticity:
    post:
      tags:
        - 任务
      summary: 检查达人受众真实性
      description: >-
        分析 Instagram 互动账号样本或 YouTube
        评论账号样本，返回风险比例及该估计的采样人群与分母口径。有效报告中的零风险比例也计为成功交付。
      operationId: task_creators.check_audience_authenticity
      parameters:
        - name: Idempotency-Key
          in: header
          schema:
            type: string
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/creators.check_audience_authenticity_request
      responses:
        '202':
          description: 任务已受理
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/creators.check_audience_authenticity_response
          headers:
            Location:
              schema:
                type: string
                format: uri-reference
            Retry-After:
              schema:
                type: integer
        default:
          description: 错误；以实际 HTTP 状态和重试指引为准
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/creators.check_audience_authenticity_error
components:
  schemas:
    creators.check_audience_authenticity_request:
      $ref: >-
        #/components/schemas/creators.check_audience_authenticity_request.7_Request
      $schema: https://json-schema.org/draft/2020-12/schema
      x-aisa-runtime-rules: {}
    creators.check_audience_authenticity_response:
      $ref: >-
        #/components/schemas/creators.check_audience_authenticity_response.7_Response
      $schema: https://json-schema.org/draft/2020-12/schema
      x-aisa-runtime-rules: {}
    creators.check_audience_authenticity_error:
      $ref: '#/components/schemas/creators.check_audience_authenticity_error.4_Error'
      $schema: https://json-schema.org/draft/2020-12/schema
      x-aisa-runtime-rules: {}
    creators.check_audience_authenticity_request.7_Request:
      additionalProperties: false
      properties:
        input:
          $ref: >-
            #/components/schemas/creators.check_audience_authenticity_request.5_Input
      required:
        - input
      type: object
    creators.check_audience_authenticity_response.7_Response:
      additionalProperties: false
      properties:
        completedAt:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
        createdAt:
          format: date-time
          type: string
        customerDeadlineAt:
          format: date-time
          type: string
        endpoint:
          const: /v1/tasks/creators.check_audience_authenticity
        error:
          anyOf:
            - $ref: >-
                #/components/schemas/creators.check_audience_authenticity_response.4_ErrorDetail
            - type: 'null'
        id:
          type: string
        object:
          const: task_job
        output:
          anyOf:
            - $ref: >-
                #/components/schemas/creators.check_audience_authenticity_response.6_Output
            - type: 'null'
        outputExpired:
          type: boolean
        pricing:
          additionalProperties: false
          properties:
            authorizedMicrosUSD:
              minimum: 0
              type: integer
            billingMode:
              const: fixed_success
            currency:
              const: USD
            finalMicrosUSD:
              anyOf:
                - minimum: 0
                  type: integer
                - type: 'null'
          required:
            - currency
            - authorizedMicrosUSD
            - finalMicrosUSD
            - billingMode
          type: object
        status:
          enum:
            - queued
            - running
            - settling
            - completed
            - failed
            - cancelled
      required:
        - id
        - object
        - endpoint
        - status
        - createdAt
        - customerDeadlineAt
        - completedAt
        - pricing
        - output
        - error
      type: object
    creators.check_audience_authenticity_error.4_Error:
      additionalProperties: false
      properties:
        error:
          $ref: >-
            #/components/schemas/creators.check_audience_authenticity_error.5_ErrorDetail
      required:
        - error
      type: object
    creators.check_audience_authenticity_request.5_Input:
      additionalProperties: false
      properties:
        profile_url:
          anyOf:
            - not:
                pattern: >-
                  ^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\.)?(i|I)(n|N)(s|S)(t|T)(a|A)(g|G)(r|R)(a|A)(m|M)\.(c|C)(o|O)(m|M)/((\.|%2[Ee])|(\.|%2[Ee])(\.|%2[Ee])|(p|P|%70|%50)|(r|R|%72|%52)(e|E|%65|%45)(e|E|%65|%45)(l|L|%6[Cc]|%4[Cc])|(r|R|%72|%52)(e|E|%65|%45)(e|E|%65|%45)(l|L|%6[Cc]|%4[Cc])(s|S|%73|%53)|(s|S|%73|%53)(t|T|%74|%54)(o|O|%6[Ff]|%4[Ff])(r|R|%72|%52)(i|I|%69|%49)(e|E|%65|%45)(s|S|%73|%53)|(e|E|%65|%45)(x|X|%78|%58)(p|P|%70|%50)(l|L|%6[Cc]|%4[Cc])(o|O|%6[Ff]|%4[Ff])(r|R|%72|%52)(e|E|%65|%45)|(a|A|%61|%41)(c|C|%63|%43)(c|C|%63|%43)(o|O|%6[Ff]|%4[Ff])(u|U|%75|%55)(n|N|%6[Ee]|%4[Ee])(t|T|%74|%54)(s|S|%73|%53)|(d|D|%64|%44)(i|I|%69|%49)(r|R|%72|%52)(e|E|%65|%45)(c|C|%63|%43)(t|T|%74|%54))/?$
              pattern: >-
                ^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\.)?(i|I)(n|N)(s|S)(t|T)(a|A)(g|G)(r|R)(a|A)(m|M)\.(c|C)(o|O)(m|M)/([A-Za-z0-9._]|%(3[0-9]|[46][1-9A-Fa-f]|[57][0-9Aa]|5[Ff])|%2[Ee])+/?$
            - pattern: >-
                ^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\.)?(y|Y)(o|O)(u|U)(t|T)(u|U)(b|B)(e|E)\.(c|C)(o|O)(m|M)/(c|%63)(h|%68)(a|%61)(n|%6[Ee])(n|%6[Ee])(e|%65)(l|%6[Cc])/(U|%55)(C|%43)([A-Za-z0-9_-]|%(3[0-9]|[46][1-9A-Fa-f]|[57][0-9Aa]|5[Ff])|%2[Dd]){22}/?$
            - not:
                anyOf:
                  - pattern: >-
                      ^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\.)?(y|Y)(o|O)(u|U)(t|T)(u|U)(b|B)(e|E)\.(c|C)(o|O)(m|M)/(@|%40)(\.|%2[Ee]){1,2}/?$
                  - pattern: >-
                      ^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\.)?(y|Y)(o|O)(u|U)(t|T)(u|U)(b|B)(e|E)\.(c|C)(o|O)(m|M)/(@|%40).*%(20|23|25|2[Ff]|3[Ff]|40|5[Cc]|7[Ff]|[Cc]2%([89][0-9A-Fa-f]|[Aa]0)|[Ee]1%9[Aa]%80|[Ee]2%(80%(8[0-9Aa]|[Aa][89Ff])|81%9[Ff])|[Ee]3%80%80)
              pattern: "^(h|H)(t|T)(t|T)(p|P)(s|S)://((w|W)(w|W)(w|W)\\.)?(y|Y)(o|O)(u|U)(t|T)(u|U)(b|B)(e|E)\\.(c|C)(o|O)(m|M)/(@|%40)([^/@?#%\\\\\0- \x7F-\x9F\_  - \L\P  　]|%[2-7][0-9A-Fa-f]|(%([Cc][2-9A-Fa-f]|[Dd][0-9A-Fa-f])%[89AaBb][0-9A-Fa-f]|%[Ee]0%[AaBb][0-9A-Fa-f]%[89AaBb][0-9A-Fa-f]|%[Ee]([1-9A-Ca-cEeFf]%[89AaBb][0-9A-Fa-f]|[Dd]%[89][0-9A-Fa-f])%[89AaBb][0-9A-Fa-f]|%[Ff](0%[9AaBb][0-9A-Fa-f]|[1-3]%[89AaBb][0-9A-Fa-f]|4%8[0-9A-Fa-f])%[89AaBb][0-9A-Fa-f]%[89AaBb][0-9A-Fa-f]))+/?$"
          format: iri
          maxLength: 2048
          type: string
      required:
        - profile_url
      type: object
    creators.check_audience_authenticity_response.4_ErrorDetail:
      additionalProperties: false
      else:
        properties:
          retryable:
            const: false
      if:
        properties:
          retry_hint:
            const: after_delay
      properties:
        code:
          enum:
            - invalid_request
            - invalid_input
            - unsupported_route
            - unsupported_capability
            - unsupported_identity
            - provider_rejected_input
            - invalid_cost_mode
            - cost_quote_payment_unsupported
            - cost_quote_unsupported
            - unpriced_request_value
            - missing_api_key
            - invalid_api_key
            - api_key_disabled
            - expired_api_key
            - unauthorized
            - forbidden
            - user_disabled
            - ip_not_allowed
            - api_key_access_denied
            - estimated_price_exceeds_max_price
            - insufficient_api_key_balance
            - insufficient_wallet_balance
            - task_not_found
            - endpoint_not_found
            - request_in_progress
            - request_already_completed
            - idempotency_conflict
            - request_id_conflict
            - request_too_large
            - method_not_allowed
            - rate_limit_exceeded
            - internal_error
            - service_unavailable
            - cancellation_not_supported
            - job_not_found
          type: string
        message:
          type: string
        param:
          type: string
        problems:
          items:
            type: string
          type: array
        request_id:
          minLength: 1
          type: string
        retry_hint:
          enum:
            - never
            - after_delay
            - reconcile_first
          type: string
        retryable:
          type: boolean
        similar_tasks:
          items:
            type: string
          type: array
        task_id:
          type: string
      required:
        - code
        - message
        - request_id
        - retryable
        - retry_hint
      then:
        properties:
          retryable:
            const: true
      type: object
    creators.check_audience_authenticity_response.6_Output:
      additionalProperties: false
      allOf:
        - else:
            properties:
              meta:
                properties:
                  delivered:
                    const: false
              result:
                type: 'null'
          if:
            properties:
              status:
                enum:
                  - found
                  - partial
          then:
            properties:
              meta:
                properties:
                  delivered:
                    const: true
              result:
                $ref: >-
                  #/components/schemas/creators.check_audience_authenticity_response.8_Result
        - properties:
            meta:
              properties:
                approximate_fields:
                  items:
                    enum:
                      - estimates
                  uniqueItems: true
                missing_fields:
                  propertyNames:
                    enum:
                      - analyzed_at
                      - creator.avatar_url
                      - creator.display_name
                      - creator.follower_count
                      - creator.identity.handle
                      - creator.identity.native_id
                      - creator.identity.id_namespace
                      - estimates.0.sample_size
                      - estimates.1.sample_size
                      - estimates.2.sample_size
      properties:
        meta:
          additionalProperties: false
          properties:
            approximate_fields:
              items:
                type: string
              type:
                - array
                - 'null'
            delivered:
              type: boolean
            missing_fields:
              additionalProperties:
                description: >-
                  A stable missing-field reason, or distinct reasons separated
                  by '; '. Unrecognized internal diagnostics are reported as
                  unspecified.
                pattern: >-
                  ^(not_returned|not_supported|unparseable|continuation_failed|reference_identity_unverifiable|page_limit_reached|report_part_failed|some_account_identities_unusable|some_creators_unanalyzed|insufficient_analyzable_creators|pagination_not_reported|page_or_item_limit_reached|some_distributions_unusable|quote_not_usable|quote_availability_not_returned|quote_price_not_returned|unspecified)(;
                  (not_returned|not_supported|unparseable|continuation_failed|reference_identity_unverifiable|page_limit_reached|report_part_failed|some_account_identities_unusable|some_creators_unanalyzed|insufficient_analyzable_creators|pagination_not_reported|page_or_item_limit_reached|some_distributions_unusable|quote_not_usable|quote_availability_not_returned|quote_price_not_returned|unspecified))*$
                type: string
              type:
                - object
                - 'null'
          required:
            - missing_fields
            - approximate_fields
            - delivered
          type: object
        result:
          anyOf:
            - $ref: >-
                #/components/schemas/creators.check_audience_authenticity_response.8_Result
            - type: 'null'
        status:
          enum:
            - found
            - not_found
        task:
          const: creators.check_audience_authenticity
        version:
          const: 1
      required:
        - task
        - version
        - status
        - result
        - meta
      type: object
    creators.check_audience_authenticity_error.5_ErrorDetail:
      additionalProperties: false
      else:
        properties:
          retryable:
            const: false
      if:
        properties:
          retry_hint:
            const: after_delay
      properties:
        code:
          enum:
            - invalid_request
            - invalid_input
            - unsupported_route
            - unsupported_capability
            - unsupported_identity
            - provider_rejected_input
            - invalid_cost_mode
            - cost_quote_payment_unsupported
            - cost_quote_unsupported
            - unpriced_request_value
            - missing_api_key
            - invalid_api_key
            - api_key_disabled
            - expired_api_key
            - unauthorized
            - forbidden
            - user_disabled
            - ip_not_allowed
            - api_key_access_denied
            - estimated_price_exceeds_max_price
            - insufficient_api_key_balance
            - insufficient_wallet_balance
            - task_not_found
            - endpoint_not_found
            - request_in_progress
            - request_already_completed
            - idempotency_conflict
            - request_id_conflict
            - request_too_large
            - method_not_allowed
            - rate_limit_exceeded
            - internal_error
            - service_unavailable
            - cancellation_not_supported
            - job_not_found
          type: string
        message:
          type: string
        param:
          type: string
        problems:
          items:
            type: string
          type: array
        request_id:
          minLength: 1
          type: string
        retry_hint:
          enum:
            - never
            - after_delay
            - reconcile_first
          type: string
        retryable:
          type: boolean
        similar_tasks:
          items:
            type: string
          type: array
        task_id:
          type: string
      required:
        - code
        - message
        - request_id
        - retryable
        - retry_hint
      then:
        properties:
          retryable:
            const: true
      type: object
    creators.check_audience_authenticity_response.8_Result:
      allOf:
        - $ref: >-
            #/components/schemas/creators.check_audience_authenticity_response.1_CreatorAuthenticityReport
        - allOf:
            - properties:
                estimates:
                  minItems: 1
                  minProperties: 1
                  not:
                    type: 'null'
                  pattern: \S
              required:
                - estimates
              type: object
    creators.check_audience_authenticity_response.1_CreatorAuthenticityReport:
      additionalProperties: false
      allOf:
        - if:
            properties:
              creator:
                properties:
                  identity:
                    properties:
                      platform:
                        enum:
                          - instagram
                    required:
                      - platform
          then:
            properties:
              estimates:
                allOf:
                  - contains:
                      properties:
                        metric:
                          enum:
                            - suspected_fake_share
                      required:
                        - metric
                    maxContains: 1
                    minContains: 1
                  - contains:
                      properties:
                        metric:
                          enum:
                            - real_person_share
                      required:
                        - metric
                    maxContains: 1
                    minContains: 0
                  - contains:
                      properties:
                        metric:
                          enum:
                            - influencer_account_share
                      required:
                        - metric
                    maxContains: 1
                    minContains: 0
                items:
                  properties:
                    basis:
                      const: classified_sample
                    metric:
                      enum:
                        - suspected_fake_share
                        - real_person_share
                        - influencer_account_share
                    population:
                      const: engaged_accounts
        - if:
            properties:
              creator:
                properties:
                  identity:
                    properties:
                      platform:
                        enum:
                          - youtube
                    required:
                      - platform
          then:
            properties:
              estimates:
                allOf:
                  - contains:
                      properties:
                        metric:
                          enum:
                            - suspicious_share
                      required:
                        - metric
                    maxContains: 1
                    minContains: 1
                items:
                  properties:
                    basis:
                      const: observed_sample
                    metric:
                      enum:
                        - suspicious_share
                    population:
                      const: commenters
      properties:
        analyzed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
        creator:
          $ref: >-
            #/components/schemas/creators.check_audience_authenticity_response.3_CreatorSummary
        estimates:
          contains:
            properties:
              metric:
                enum:
                  - suspected_fake_share
                  - suspicious_share
            required:
              - metric
          items:
            $ref: >-
              #/components/schemas/creators.check_audience_authenticity_response.0_CreatorAuthenticityEstimate
          maxItems: 4
          minItems: 1
          type: array
      required:
        - creator
        - analyzed_at
        - estimates
      type: object
    creators.check_audience_authenticity_response.3_CreatorSummary:
      additionalProperties: false
      properties:
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
        display_name:
          anyOf:
            - type: string
            - type: 'null'
        follower_count:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
        identity:
          $ref: >-
            #/components/schemas/creators.check_audience_authenticity_response.2_CreatorIdentity
      required:
        - identity
        - display_name
        - avatar_url
        - follower_count
      type: object
    creators.check_audience_authenticity_response.0_CreatorAuthenticityEstimate:
      additionalProperties: false
      properties:
        basis:
          enum:
            - classified_sample
            - observed_sample
          type: string
        metric:
          enum:
            - suspected_fake_share
            - suspicious_share
            - real_person_share
            - influencer_account_share
          type: string
        population:
          enum:
            - engaged_accounts
            - commenters
          type: string
        sample_size:
          anyOf:
            - minimum: 1
              type: integer
            - type: 'null'
        value:
          maximum: 1
          minimum: 0
          type: number
      required:
        - metric
        - population
        - basis
        - value
        - sample_size
      type: object
    creators.check_audience_authenticity_response.2_CreatorIdentity:
      additionalProperties: false
      allOf:
        - else:
            properties:
              id_namespace:
                type: 'null'
          if:
            properties:
              native_id:
                type: string
          then:
            properties:
              id_namespace:
                minLength: 1
                type: string
      anyOf:
        - properties:
            native_id:
              minLength: 1
              type: string
        - properties:
            handle:
              minLength: 1
              type: string
        - properties:
            profile_url:
              minLength: 1
              type: string
      properties:
        handle:
          anyOf:
            - pattern: \S
              type: string
            - type: 'null'
        id_namespace:
          anyOf:
            - pattern: \S
              type: string
            - type: 'null'
        native_id:
          anyOf:
            - pattern: \S
              type: string
            - type: 'null'
        platform:
          enum:
            - instagram
            - youtube
        profile_url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
      required:
        - platform
        - native_id
        - id_namespace
        - handle
        - profile_url
      type: object
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.