{
  "x402Version": 2,
  "id": 32595,
  "slug": "32595",
  "resource": "https://topic-scorer.pixelcove.co/v1/gate",
  "description": "Pass/fail check: does the text rank within the top `min_rank` categories of its target taxonomy? Returns `pass`, the target's rank and gap to #1, the taxonomy's top five, and the unused phrases to work in. Use it as a content-pipeline gate. Paid, $0.05/call; read-only and safe to retry.",
  "type": "http",
  "serviceName": "topic-scorer",
  "resourceType": "Identity & Enrichment",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x88ff5A0608Ff45077f68200AF35618121a0FA443",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "category": "example",
            "taxonomy": "google_ads_topics",
            "text": "example"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "min_rank": 3,
            "pass": true,
            "phrases_unused": [
              "intrusion detection"
            ],
            "phrases_used": [
              "firewall"
            ],
            "target": {
              "gap_to_top": 0,
              "id": "344",
              "path": "...",
              "rank": 1,
              "score": 0.842
            },
            "top": [
              {
                "id": "344",
                "path": "...",
                "rank": 1,
                "score": 0.842
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "category": {
                    "description": "Target category id, full path, or a unique path substring within the taxonomy (use topic_scorer_find to look one up).",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "full": {
                    "default": false,
                    "description": "Score the whole text as the mean of 8,192-char chunks instead of only the first 8,192 chars.",
                    "type": "boolean"
                  },
                  "min_rank": {
                    "default": 3,
                    "description": "Highest passing rank.",
                    "maximum": 50,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "phrases": {
                    "default": 30,
                    "description": "Phrase bank size for the target category (0 skips it).",
                    "maximum": 100,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "taxonomy": {
                    "description": "Taxonomy of the target category.",
                    "enum": [
                      "google_ads_topics",
                      "google_merchant",
                      "iab_content",
                      "iab_audience",
                      "iab_ad_product",
                      "linkedin_industries"
                    ],
                    "type": "string"
                  },
                  "text": {
                    "description": "The page or draft text to score, as plain text or HTML (tags are stripped). 1 to 32768 characters. URLs are not fetched; send the content.",
                    "maxLength": 32768,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "text",
                  "taxonomy",
                  "category"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "topic-scorer.pixelcove.co",
  "lastUpdated": "2026-10-08T05:37:56.083Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T05:37:55.846Z"
  },
  "metadata": {
    "serviceName": "topic-scorer",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "category": "example",
              "taxonomy": "google_ads_topics",
              "text": "example"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "min_rank": 3,
              "pass": true,
              "phrases_unused": [
                "intrusion detection"
              ],
              "phrases_used": [
                "firewall"
              ],
              "target": {
                "gap_to_top": 0,
                "id": "344",
                "path": "...",
                "rank": 1,
                "score": 0.842
              },
              "top": [
                {
                  "id": "344",
                  "path": "...",
                  "rank": 1,
                  "score": 0.842
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "category": {
                      "description": "Target category id, full path, or a unique path substring within the taxonomy (use topic_scorer_find to look one up).",
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string"
                    },
                    "full": {
                      "default": false,
                      "description": "Score the whole text as the mean of 8,192-char chunks instead of only the first 8,192 chars.",
                      "type": "boolean"
                    },
                    "min_rank": {
                      "default": 3,
                      "description": "Highest passing rank.",
                      "maximum": 50,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "phrases": {
                      "default": 30,
                      "description": "Phrase bank size for the target category (0 skips it).",
                      "maximum": 100,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "taxonomy": {
                      "description": "Taxonomy of the target category.",
                      "enum": [
                        "google_ads_topics",
                        "google_merchant",
                        "iab_content",
                        "iab_audience",
                        "iab_ad_product",
                        "linkedin_industries"
                      ],
                      "type": "string"
                    },
                    "text": {
                      "description": "The page or draft text to score, as plain text or HTML (tags are stripped). 1 to 32768 characters. URLs are not fetched; send the content.",
                      "maxLength": 32768,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "text",
                    "taxonomy",
                    "category"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "topic-scorer.pixelcove.co",
    "manifest_name": "topic-scorer.pixelcove.co",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}