next gen

project

logo ej developer

API Documentation

Authentication

Every request must include the following headers.

API Server Token

                        
X-Server-Token: <partner_api_token>

A token issued to the partner application for integration authentication. To obtain a token, please fill out the request form.

User API Key

X-User-Key: <user_api_key>

A unique key entered by the user to identify their account.

Base URL

https://soft-nextgen.com/share

Errors

The API returns the following standard HTTP errors.

HTTP Error Description
404 Unknown application The specified app_name is not supported.
404 User not found The provided user API key is invalid.
404 Account not found The specified account was not found.

Error Response

{"detail": "error"}

Applications

Available applications:

Application Link
https://soft-nextgen.com/share/rix/
https://soft-nextgen.com/share/clipshot/
https://soft-nextgen.com/share/skyflow/
https://soft-nextgen.com/share/nextgen/

Example

Sample Request
cURL
Python
JavaScript
PHP
C# (.NET)
GO

Statistics Schema

Each application provides its own set of statistics.

Application Statistics
rix posts, reels, stories, kling, warm_up
clipshot posts, likes
skyflow follows, likes, response, messages, comments
nextgen leads, earning, contacts, subs

Accounts

Each application provides its own set of statistics.

Endpoint

GET /{app_name}/accounts

Description

Returns a list of the user's accounts together with aggregated statistics.The structure of the totals object depends on the selected app_name. Each application defines its own set of statistical fields returned in totals.

Response

[
    {
        "id": 0,
        "name": "account_name",
        "is_delete": False,
        "platform": "xfree",
        "totals": {
            <application_specific_statistics>
        }
    }
]

Example

postman account_exemple

Statistics

Endpoint

GET /{app_name}/stats

Description

Returns statistical records for the user's accounts.

Query Parameters

Parameter Type Required Description
account_id integer No Filter by account ID
from date No Start date
to date No End date
limit integer No Number of records (default: 100)
offset integer No Pagination offset (default: 0)

Response

{
    "total": 0,
    "limit": 100,
    "offset": 0,
    "data": [
        <application_specific_statistics>
    ]
}

Example

postman stats_exemple

Notes

  • If account_id is omitted, statistics for all accounts are returned.
  • Dates must use the YYYY-MM-DD format.
  • All dates and times are in UTC