Skip to main content

FreeToolCalculateXApiCostResponse

line_items object[]

One row per billed resource: count × unit price.

  • Array [
  • keystring

    Possible values: [posts, link_posts, replies, post_reads, user_reads, owned_reads]

    labelstring
    countinteger
    unit_usdnumber
    cost_usdnumber
  • ]
  • total_usdnumber

    Sum of every line item.

    link_premium_usdnumber

    What the link posts cost on top of the plain post price.

    notesstring[]
    prices_last_verifiedstring<date>

    When the prices were last checked against the source.

    sourcestring<uri>
    FreeToolCalculateXApiCostResponse
    {
    "line_items": [
    {
    "key": "posts",
    "label": "string",
    "count": 0,
    "unit_usd": 0,
    "cost_usd": 0
    }
    ],
    "total_usd": 0,
    "link_premium_usd": 0,
    "notes": [
    "string"
    ],
    "prices_last_verified": "2024-07-29",
    "source": "string"
    }