Keyword management
Keywords belong directly to your API account, grouped by source. There is no project hierarchy. Source is fixed for each slot.
List keywords
Section titled “List keywords”GET /v1/keywordsThe result groups recorded slots into seven arrays. Empty sources remain present:
{ "data": { "news": [], "twitter": [], "instagram": [], "threads": [], "youtube": [], "tiktok": [], "facebook": [] }}An empty array does not imply a zero quota; a source can have allowance without any slot recorded yet. Read quotas from /v1/account/info.
| Slot field | Meaning |
|---|---|
id |
Slot ID for PATCH/DELETE; not a content ID. |
account_id |
Owning API account. |
source_key |
Fixed source of this slot. |
slot_number |
Ordinal within the source, starting at one. |
term_value |
Current keyword, or null on a cleared slot. |
normalized_value |
Normalized keyword used for matching/duplicate detection. |
path |
Server-assigned Get data path, or null when cleared. |
is_active |
Whether this keyword is enabled. |
initialized_at |
First input time; preserved after delete. |
revision |
Slot version. Changes invalidate older bound cursors/media URLs. |
created_at / updated_at |
Slot creation and last-change timestamps. |
within_quota |
Whether this slot still fits the source’s current quota. |
Choose an item with a non-empty keyword/path, is_active: true and within_quota: true. Cleared, inactive or out-of-quota slots may still appear. To inspect one slot, find its id in this grouped list; there is no separate GET-detail endpoint.
Create a keyword
Section titled “Create a keyword”POST /v1/keywordsContent-Type: application/json
{"source":"news","keyword":"PSSI"}Returns 201 Created with a direct slot object. The server picks a cleared slot first, then allocates a new slot within quota.
sourceis one of the seven lowercase source keys.keywordis 1–255 characters after trimming outer whitespace.- The API activates the new keyword. The request accepts only
sourceandkeyword. - The first input is free once per slot. Refilling a previously used slot consumes one source change.
- Instagram uses keyword matching just like the other sources:
{"source":"instagram","keyword":"PSSI"}or multi-word phrases such as{"source":"instagram","keyword":"Timnas Indonesia"}.
Edit a keyword
Section titled “Edit a keyword”PATCH /v1/keywords/101Content-Type: application/json
{"keyword":"Persija"}Returns 200 OK with the updated slot. Use its returned path for the next data request. Source cannot be changed in the PATCH body. Unknown body fields are rejected.
Send the required keyword text. An edit keeps the slot’s activation status, which is shown as is_active in the response. Sending the same text uses no changes. To replace a cleared or inactive keyword through the public API, delete the old keyword if needed and create one in the available slot.
Delete a keyword
Section titled “Delete a keyword”DELETE /v1/keywords/101Returns 200 OK, not 204. The response is the cleared slot object:
{ "id": 101, "account_id": 42, "source_key": "news", "slot_number": 1, "term_value": null, "normalized_value": null, "path": null, "is_active": false, "initialized_at": "2026-11-19T02:00:00Z", "revision": 4, "created_at": "2026-11-19T02:00:00Z", "updated_at": "2026-11-19T04:00:00Z", "within_quota": true}Delete is free, but it preserves first-use and change history. Refilling the slot later costs one change. It does not erase stored content or reset the month’s budget.
Paths and retries
Section titled “Paths and retries”Always use the returned path. Slugs can receive suffixes when names collide. An edited keyword can have a new path; old cursor chains must start again after a revision change.
There is no promised Idempotency-Key contract. If a write times out, read the keyword list and account usage before retrying: the request might already have succeeded.