REST APIOKOK

    How to track OK posts via the REST API

    Step-by-step guide for tracking OK posts via the REST API.

    Track via the API — OK
    export INFLUTICS_API_KEY=sk_live_...
    1. 1

      Get your API key

      Sign in to your Influtics dashboard, navigate to Settings → API keys, and create a new key.

      export INFLUTICS_API_KEY=sk_live_...
      bash
    2. 2

      Track an OK video or topic

      POST the OK URL to the /videos endpoint. The Influtics API handles both ok.ru/video/{video_id} and ok.ru/group/{id}/topic/{id} URLs.

      curl -X POST https://api.influtics.com/v1/videos \
        -H "Authorization: Bearer $INFLUTICS_API_KEY" \
        -H "Content-Type: application/json" \
        -d '{"url": "https://ok.ru/video/1234567890"}'
      bash
    3. 3

      Fetch analytics

      GET the video analytics endpoint to retrieve views, likes, and shares.

      curl https://api.influtics.com/v1/videos/{video_id}/stats \
        -H "Authorization: Bearer $INFLUTICS_API_KEY"
      bash

    Ready to Automate Your Social Media Analytics?

    Join thousands of creators who trust our platform for real-time metrics tracking

    100K+

    Videos Tracked

    50M+

    Data Points Analyzed

    99.9%

    Uptime