Usage

Get X API pricing table

Changed on

Returns Zernio's canonical X API pricing table. Each X action has its own billing product and its own rate, and Zernio passes X API costs through at exact rates with zero markup.

The response is identical for every authenticated user (pricing is universal), so it is safe to cache on the client for the duration of a billing period.

To compute your own per-operation spend, pair this endpoint with GET /v1/usage-stats, which returns usage.xApiCallsByOperation keyed by the same operation field you get here.

get/v1/billing/x-pricing

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/billing/x-pricing
  • Auth: HTTP bearer

Response

X pricing table

currencystring
markupstring

Always 0%, because Zernio does not mark up X API rates.

sourcestring uri
lastVerifiedstring date

Date the prices were last verified against X's published rates.

Example response

{
  "currency": "USD",
  "markup": "0%",
  "source": "https://developer.x.com/#pricing",
  "tiers": [
    {
      "tier": "x_api_005",
      "pricePerCallUsd": 0.005,
      "operationCount": 13
    }
  ],
  "operations": [
    {
      "operation": "posts_read",
      "eventType": "x_posts_read",
      "displayName": "X API: Posts Read",
      "pricePerCallUsd": 0.005,
      "pricePerCallCents": 0.5,
      "tier": "x_api_005",
      "triggeredBy": [
        {
          "method": "getPostAnalytics"
        }
      ]
    }
  ]
}

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status