> ## Documentation Index
> Fetch the complete documentation index at: https://juicer.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account info, usage, and limits



## OpenAPI

````yaml /openapi/v1.yaml get /account
openapi: 3.1.0
info:
  title: Juicer API v1
  version: 1.0.0
  description: >
    The Juicer API provides two products under one API key:


    1. **Integration API** — Programmatically manage feeds, sources, posts, and
    moderation

    2. **Data API** — Query social posts for a handle or hashtag without
    creating a feed


    ## Authentication

    All requests require a Bearer token in the Authorization header:

    ```

    Authorization: Bearer jcr_your_api_key_here

    ```

    API keys can be created on the API dashboard in Juicer,

    **or** programmatically via `POST /v1/authorize` — see step 0 of the

    Quick Start below. No prior signup or dashboard access is required.


    A key acts as its user. Owners and managers reach every feed in the account;
    a

    collaborator's key reaches only the feeds assigned to them, as in the
    dashboard, and

    other feeds answer `404`.


    ## Quick Start


    Create a feed, add a source, and get the embed code:


    ```bash

    # 0. Get an API key (no dashboard needed)

    curl -X POST https://api.juicer.io/v1/authorize \
      -H "Content-Type: application/json" \
      -d '{"email": "you@example.com", "client_name": "My Tool"}'
    # New email → returns `api_key` immediately (temporary until email
    confirmed).

    # Existing user → returns an `authorization_url` (user approves) and a

    # `poll_url`; GET the poll_url until it returns the `api_key`.


    # 1. Check your account

    curl https://api.juicer.io/v1/account \
      -H "Authorization: Bearer jcr_your_key"

    # 2. See available platforms

    curl https://api.juicer.io/v1/platforms \
      -H "Authorization: Bearer jcr_your_key"

    # 3. Create a feed

    curl -X POST https://api.juicer.io/v1/feeds \
      -H "Authorization: Bearer jcr_your_key" \
      -H "Content-Type: application/json" \
      -d '{"name": "My Brand Feed"}'

    # 4. Add a YouTube source

    curl -X POST https://api.juicer.io/v1/feeds/{feed_id}/sources \
      -H "Authorization: Bearer jcr_your_key" \
      -H "Content-Type: application/json" \
      -d '{"platform": "YouTube", "term": "NASA", "term_type": "username"}'

    # 5. Get embed code for your website

    curl https://api.juicer.io/v1/feeds/{feed_id}/embed \
      -H "Authorization: Bearer jcr_your_key"
    ```


    The embed endpoint returns ready-to-use snippets:


    - **JavaScript** — `<script>` tag for any website

    - **iframe** — For platforms that don't allow JavaScript

    - **WordPress shortcode** — `[juicer name='your-feed']`

    - **WordPress PHP** — `<?php juicer_feed('name=your-feed'); ?>`


    ## Discovering Platforms


    Use `GET /platforms` to see all available social media platforms and their

    supported term types (username, hashtag, mentions, etc.) before creating
    sources.

    Each term type includes its OAuth connection requirements, so you know
    upfront

    whether the user needs to connect an account first.


    ## Connecting Social Accounts


    Several platforms require a connected social account before you can create

    sources. The exact list and the per-term-type requirement depend on the

    caller's account configuration — always discover requirements at runtime

    from `GET /platforms` (the `requires_connection` field on each term type)

    or `GET /social_accounts/status`. The flow when a connection is needed:


    1. `GET /social_accounts/status` — check which platforms need connecting

    2. `POST /social_accounts/connect_url` with `{"provider": "facebook"}` —
    generates a magic link

    3. User clicks the link — it signs them in and starts the authorization flow
    (no Juicer login needed)

    4. `GET /social_accounts` — verify the account is now connected

    5. Create sources for that platform as normal


    The magic link expires in 30 minutes and can only be used once. This makes

    it suitable for AI agents and CLI tools that need to walk a user through

    social account setup.


    **Note:** If you try to create a source that requires a connected account

    and none is available, the API returns a `422` error with

    `error.code = "social_account_required"` and an `error.action` containing

    a magic link the user can click to complete the connection.


    ## Plan Limits


    One plan governs all of an account's feeds and sources, whether they were
    created in the dashboard,

    through this API or through the MCP:


    - **A paid feed plan** (any plan other than Free and Trial) governs whenever
    the account has one, whatever its API plan.

    - **Free or Trial** governs while the account has no paid API plan (only
    Sandbox).

    - **A paid API plan** (Launch and up) governs a Free or Trial account.


    Under a feed plan (the first two), feeds and sources count toward that
    plan's limits and use no API

    credits. If you hit a limit, the API returns a `422` error with `error.code
    = "feed_limit_reached"`

    or `"source_limit_reached"`, along with an `error.action` of type
    `"upgrade_plan"` that includes a

    magic link to the upgrade page with the correct plan pre-selected. Every
    feed plan but Enterprise, Custom

    and Archive also caps how many sources the account can create: per rolling
    24 hours (`"daily_source_creation_limit_reached"`) and

    per rolling 30 days, three times the daily cap
    (`"monthly_source_creation_limit_reached"`). Both caps count

    sources that were deleted since, and sources on deleted feeds.


    Under a paid API plan, feeds and sources have no plan limits or creation
    caps, only a source limit the

    feed's owner or manager set on the feed, refused with
    `"source_limit_reached"` and no

    `error.action`, since no upgrade lifts it. Each source's first

    fetch and each successful sync use API credits instead; a create the balance
    can't cover is refused

    with `402` and `error.code = "insufficient_credits"`. Data API lookups use
    credits under every plan.
servers:
  - url: https://api.juicer.io/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Quickstart
    description: Get an API key with just an email, no dashboard required
  - name: Account
    description: Account info, usage, and limits
  - name: Platforms
    description: Discover available platforms and term types
  - name: Social Accounts
    description: Manage OAuth social account connections needed for certain platforms
  - name: Feeds
    description: Manage feeds (create, update, delete, list)
  - name: Sources
    description: Manage sources within feeds
  - name: Posts
    description: Read, search, and moderate posts
  - name: Embed
    description: Get embed code snippets for your website
  - name: Search
    description: Search posts across all feeds
  - name: Analytics
    description: Feed engagement analytics and performance
  - name: Webhooks
    description: Webhook subscriptions and event delivery
  - name: Data API
    description: One-off post lookups for a handle or hashtag without creating a feed
  - name: Publishing
    description: >
      Publish to connected social accounts (channels) from your own app.
      Connecting a

      channel is a browser round-trip the end customer completes on the network;
      each

      connected channel is billed from the moment it connects to the end of the
      publishing

      billing cycle (which starts with the first channel) and monthly after
      that, with no

      refunds for partial months. See the [Publishing guide](/publishing).
paths:
  /account:
    get:
      tags:
        - Account
      summary: Get account info, usage, and limits
      operationId: getAccount
      responses:
        '200':
          description: Account info
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Account'
components:
  schemas:
    Account:
      type: object
      properties:
        id:
          type: integer
        plan:
          type: string
          description: Internal plan name
        plan_display_name:
          type: string
          description: Human-readable plan name
        billing_cycle:
          type: object
          properties:
            start:
              type: string
              format: date
            end:
              type: string
              format: date
        usage:
          type: object
          properties:
            views:
              type: object
              properties:
                current:
                  type: integer
                limit:
                  type: integer
                  nullable: true
            feeds:
              type: object
              properties:
                current:
                  type: integer
                  description: >
                    Feeds counted toward the feed plan: all of them under a feed
                    plan, none while a paid API plan governs the account (see
                    Plan Limits).
                limit:
                  type: integer
                  description: >
                    The feed plan's feed limit. It doesn't apply while a paid
                    API plan governs the account (see Plan Limits).
            sources_per_feed_limit:
              type: integer
              description: >
                The feed plan's per-feed source limit. It doesn't apply while a
                paid API plan governs the account (see Plan Limits).
        features:
          type: object
          properties:
            api_enabled:
              type: boolean
            moderation:
              type: boolean
            mentions:
              type: boolean
        api_plan:
          type: string
          nullable: true
          description: >-
            API credit tier (`sandbox`, `launch`, `builder`, `scale`,
            `platform_partner`, `comped`); null when the account has no API
            access.
          example: sandbox
        api_plan_display_name:
          type: string
          nullable: true
          example: Sandbox
        credits:
          type: object
          nullable: true
          description: >
            API credit balance. Every Data API call (`GET /data/posts`, `GET
            /data/profiles`) is

            debited per platform using `cost_per_call`; a call the balance
            cannot cover returns

            `402 insufficient_credits`. While a paid API plan governs the
            account, each source's first

            fetch and each successful sync are debited too (see Plan Limits).
            The free Sandbox tier is a one-time 30-credit grant that

            never refills (`sandbox: true`, `refills_on: null`). Most Sandbox
            accounts can also buy credits

            pay-as-you-go, without a subscription (accounts billed by Juicer
            support buy through support);

            those show in `top_up_balance`. Null when the account has no API
            plan.
          properties:
            balance:
              type: integer
              description: Credits available right now across all active lots
              example: 30
            allowance_total:
              type: integer
              description: Size of the current plan allowance (or the Sandbox grant)
              example: 30
            allowance_remaining:
              type: integer
              example: 30
            top_up_balance:
              type: integer
              description: >-
                Credits bought as top-ups. Lots are spent soonest-expiring
                first, so top-ups usually go after a paid plan's monthly
                allowance and always before the never-expiring Sandbox grant.
              example: 0
            refills_on:
              type: string
              format: date
              nullable: true
              description: >-
                Date the paid allowance is replaced; null for Sandbox and for a
                cancelling plan
              example: null
            sandbox:
              type: boolean
              example: true
            cost_per_call:
              type: object
              description: >-
                Credits debited per platform per Data API call; platforms not
                listed cost `default`
              additionalProperties:
                type: integer
              example:
                Facebook: 6
                LinkedIn: 3
                default: 1
        publishing:
          type: object
          description: Publishing channels held and their monthly list price.
          properties:
            channels:
              type: integer
            monthly_price:
              type: string
              example: $9.00
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API key prefixed with `jcr_`. To obtain a key programmatically
        (no dashboard required), see `POST /v1/authorize`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.