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.
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.
curl -s https://orbitoads.pro/api/v1/targeting -H "X-API-Key: $ORBITO_API_KEY"{
"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" ]
}
}| List | Used in | Notes |
|---|---|---|
countries[].code | countries | ISO 3166 two-letter codes, plus Telegram’s own FT (anonymous numbers). |
languages[].code | languages | Telegram’s language keys — e.g. pt-br and pt-pt, not pt. |
topics[].id | topics, exclude_topics | Numbers; the ids are not consecutive. |
buttons | button | Only 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
curl -s "https://orbitoads.pro/api/v1/groups?account_id=53" -H "X-API-Key: $ORBITO_API_KEY"{ "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.
| Parameter | Location | Format | Required |
|---|---|---|---|
X-API-Key | header | string | Yes |
curl -X GET https://orbitoads.pro/api/v1/targeting \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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.
| Parameter | Location | Format | Required |
|---|---|---|---|
account_id | query | integer | — |
X-API-Key | header | string | Yes |
curl -X GET 'https://orbitoads.pro/api/v1/groups?account_id=7401' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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
| Method | Route | Parameters | Request content | Response codes |
|---|---|---|---|---|
| GET | /api/v1/targeting | — | — | 200, 401 |
| GET | /api/v1/groups | account_id | — | 200, 401, 404 |
Source · Data source
Schema fields and limits · Targeting dictionaries and groups
| Field | Documented value |
|---|---|
| countries[] | code, name |
| languages[] | code, name |
| topics[] | id, name |
| buttons[] | string |
| Group | id, account_id, name, color |
Source · Data source
Targeting
| Field | Field type |
|---|---|
| countries | array · [object] |
| languages | array · [object] |
| topics | array · [object] |
| buttons | array · [string] |
Source · Data source
Group
| Field | Field type |
|---|---|
| id | integer |
| account_id | integer |
| name | string |
| color | string |
Source · Data source
Reference revision