ONE social:metrics
← Receivers

social:metrics

social family

mcp

The numbers one social post earned, per network: reach, impressions, likes, comments, shares, saves, clicks, video views and tracked-link clicks, each read with its time (1h, 24h, 7d and 30d after posting). A number the network did not give is null, never 0; a read with no numbers says why (X post numbers need X Enterprise: 'not available on this X plan'). Paid reads are kept apart from organic.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
read_corpus
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/social:metrics \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "postId": <string>, "variantId": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • postId string optional The master post id: every variant of it.
  • variantId string optional One variant only. One of postId or variantId is needed.

Response

What comes back from the call.

  • ok boolean
  • error string missing postId or variantId · not_found · no_db
  • postId string
  • variants object[]

Traffic

Every call to social:metrics, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names social:metrics, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:450
  • one.ie/web/src/lib/resolvers/social.ts:644
CLI 1
  • packages/cli/src/social.ts:468
SDK 1
  • packages/sdk/src/social.ts:53
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "postId": {
      "description": "The master post id: every variant of it.",
      "type": "string"
    },
    "variantId": {
      "description": "One variant only. One of postId or variantId is needed.",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "missing postId or variantId · not_found · no_db",
      "type": "string"
    },
    "postId": {
      "type": "string"
    },
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string"
          },
          "postId": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "externalUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Epoch ms."
          },
          "reads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "window": {
                  "type": "string",
                  "description": "1h · 24h · 7d · 30d"
                },
                "readAt": {
                  "type": "number",
                  "description": "Epoch ms the network was read."
                },
                "paid": {
                  "type": "boolean"
                },
                "reach": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "impressions": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "likes": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "comments": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "shares": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "saves": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "clicks": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "videoViews": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "linkClicks": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "ONE's own tracked-link clicks; null once the raw clicks are past the 14 days kept."
                },
                "engagementRate": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unavailable": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why this read has no numbers."
                },
                "learned": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "On the 7d read: mark (beat the workspace median), warn (far below), none."
                },
                "learnedNote": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "window",
                "readAt",
                "paid",
                "reach",
                "impressions",
                "likes",
                "comments",
                "shares",
                "saves",
                "clicks",
                "videoViews",
                "linkClicks",
                "engagementRate",
                "unavailable",
                "learned",
                "learnedNote"
              ]
            }
          },
          "latest": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "description": "The newest organic read, same shape as one of reads; null = not read yet."
          }
        },
        "required": [
          "variantId",
          "postId",
          "platform",
          "format",
          "status",
          "externalUrl",
          "publishedAt",
          "reads",
          "latest"
        ]
      }
    }
  },
  "required": [
    "ok"
  ]
}