Api Endpoint

Pocket Network

Lexicon-based sentiment scoring: label a text positive, negative or neutral with a score and the positive and negative word hits behind it (AFINN-derived word list, not a trained model). POST /v1/sentiment with {text}. Deterministic. Pay per request in USDC; no account, no API key.

Open interactive test console

Offering

Provider
agent.pocket.network
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Social Intelligence
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent.pocket.network/v1/sentiment-classification
MIME type
application/json
First seen
2026-10-16T01:50:19.913Z
Last seen
Tags
documents, sentiment-classification, rest

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
  }
]

Observed health

Status
Reachable
Latest latency
1362 ms
Average latency
1279 ms
HTTP status
405
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "description": "The request body for POST /v1/sentiment.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text to score."
        }
      },
      "required": [
        "text"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "portal": {
          "type": "object",
          "properties": {
            "provenance": {
              "const": "third-party-supplier"
            },
            "serviceId": {
              "const": "sentiment-classification"
            },
            "schemaCheck": {
              "enum": [
                "passed",
                "undeclared",
                "unchecked"
              ]
            }
          },
          "required": [
            "provenance",
            "serviceId",
            "schemaCheck"
          ]
        },
        "data": {
          "type": "object",
          "description": "For POST /v1/sentiment, a JSON object with label, score, positive_hits, negative_hits and the lexicon used. Errors return a JSON object with an `error` field. Properties are pinned from live paid responses; nothing is required, because every route's 2xx response is validated against this one schema.",
          "properties": {
            "label": {
              "type": "string"
            },
            "score": {
              "type": "number"
            },
            "positive_hits": {
              "type": "number"
            },
            "negative_hits": {
              "type": "number"
            },
            "lexicon": {
              "type": "string"
            },
            "deterministic": {
              "type": "boolean"
            },
            "service": {
              "type": "string"
            }
          }
        }
      },
      "required": [
        "portal",
        "data"
      ]
    }
  },
  "required": [
    "type"
  ]
}