Orbitoads
Browse documentation

Targeting codes and groups

Fetch country, language and topic codes before building a campaign payload. Retrieve groups to identify saved campaign folders. Cache the dictionaries and refresh them when accepted options change.

Markdown

GET /v1/targeting

The codes POST /v1/campaigns accepts. The lists are the ones the Orbito Ads create form uses, so a code from here is never refused as unknown.

Example
curl -s https://orbitoads.pro/api/v1/targeting -H "X-API-Key: $ORBITO_API_KEY"
Example
{
  "success": true,
  "data": {
    "countries": [ { "code": "DE", "name": "Germany" }, { "code": "US", "name": "United States" } ],
    "languages": [ { "code": "en", "name": "English" }, { "code": "zh-hans", "name": "Chinese (Simplified)" } ],
    "topics":    [ { "id": 7, "name": "Cryptocurrencies" }, { "id": 26, "name": "Investments" } ],
    "buttons":   [ "subscribe", "view", "read", "learn_more", "download", "open", "sign_up", "buy", "order", "play", "try", "leave_request" ]
  }
}
ListUsed inNotes
countries[].codecountriesISO 3166 two-letter codes, plus Telegram’s own FT (anonymous numbers).
languages[].codelanguagesTelegram’s language keys — e.g. pt-br and pt-pt, not pt.
topics[].idtopics, exclude_topicsNumbers; the ids are not consecutive.
buttonsbuttonOnly in cabinets whose features.ad_button is true.

The lists change rarely — fetch them once and cache them for a day.

Groups

Groups are folders for campaigns in the panel. Put new campaigns or copies into one with group_id (existing) or new_group_name (created, or reused if the name exists).

GET /v1/groups

Example
curl -s "https://orbitoads.pro/api/v1/groups?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"
Example
{ "success": true, "data": [ { "id": 7, "account_id": 53, "name": "October test", "color": "#6366f1" } ] }

Without account_id you get the groups of every cabinet the key reaches. A group belongs to one cabinet — group_id from another cabinet is refused.

API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

GET /api/v1/targeting

Read supported country, language, topic and CTA values.

ParameterLocationFormatRequired
X-API-KeyheaderstringYes
cURL
curl -X GET https://orbitoads.pro/api/v1/targeting \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": {
    "countries": [
      {
        "code": "GB",
        "name": "United Kingdom"
      }
    ],
    "languages": [
      {
        "code": "en",
        "name": "English"
      }
    ],
    "topics": [
      {
        "id": 8,
        "name": "Example topic"
      }
    ],
    "buttons": [
      "learn_more",
      "open"
    ]
  }
}

GET /api/v1/groups

List campaign groups, optionally restricted to one account.

ParameterLocationFormatRequired
account_idqueryinteger—
X-API-KeyheaderstringYes
cURL
curl -X GET 'https://orbitoads.pro/api/v1/groups?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": [
    {
      "id": 516,
      "account_id": 7401,
      "name": "Language club",
      "color": "#6651EF"
    }
  ]
}

Implementation notes

Read accepted values before building the form

Use country and language codes, numeric topic ids and CTA values exactly as returned. Some language codes distinguish regions, such as pt-br and pt-pt. The target account must support custom buttons to use button.

Group ownership

Each group belongs to one account. Pass a group_id from that account or a new_group_name when creating or copying. An existing group with the same name can be reused.

Operations and fields

GET /api/v1/targeting GET /api/v1/groups

  • GET /api/v1/targeting
  • GET /api/v1/groups

Request example

GET /api/v1/groups?account_id={account_id} HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.

Audience test settings

The campaign creation schema distinguishes four targeting modes. A channel list belongs in channels, bot names in bots and search terms in search_keywords. Country, language and topic filters describe a user audience. Read the account capabilities before building the test.

Protocol reference

MethodRouteParametersRequest contentResponse codes
GET/api/v1/targeting——200, 401
GET/api/v1/groupsaccount_id—200, 401, 404

Source · Data source

Schema fields and limits · Targeting dictionaries and groups

FieldDocumented value
countries[]code, name
languages[]code, name
topics[]id, name
buttons[]string
Groupid, account_id, name, color

Source · Data source

Targeting

FieldField type
countriesarray · [object]
languagesarray · [object]
topicsarray · [object]
buttonsarray · [string]

Source · Data source

Group

FieldField type
idinteger
account_idinteger
namestring
colorstring

Source · Data source

Reference revision

Pro Panel
Pro Panel