{
  "info": {
    "_postman_id": "5ce49b10-72fc-44bf-a57b-beb7e8b18b9c",
    "name": "Echora API-data v1",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Import this collection, then open its Variables tab. Set base_url to the API URL provided to you and api_key to your assigned API key. Set base_url to the address assigned by Echora. Select No environment to use the collection variables; no separate environment file is required. Requests authenticate using the X-API-Key header.\n\nStart with Account and per-source quotas, then List keywords, then Get data. Only active keywords configured for your account can be queried. Data requests capture the next-page cursor automatically. Set source and keyword paths to your own configured values; the supplied paths and dates are examples.\n\nEditing a keyword or creating a replacement in a previously used slot consumes your monthly changes for the selected source. Send keyword-management requests individually for the operation you intend to perform. Multiple API keys for the same account share its quotas. Contact your service administrator for API key or account changes.\n\nData item fields are specific to the requested source and use source-specific naming: Twitter and Instagram use familiar platform field names and inline author/public_metrics/media objects. YouTube uses video/channel fields and public_metrics. TikTok uses grouped author/public_metrics/media/music objects. Facebook uses id/message/created_time/permalink_url, from (Page profile), public_metrics and a reaction breakdown. Shared metadata is source_key and updated_at. Twitter uses id/created_at; Instagram uses id/timestamp; both include author/public_metrics/media objects. News uses id/published_at and omits entities/lang. YouTube also uses one native id, with published_at. TikTok uses one post id and created_at. Facebook also exposes only its post id; internal item_id/dedupe_key are absent from all sources. See the saved response example on each source request. Image/avatar/media values are full URLs; source-specific fields are not padded with unrelated fields.\n\nPagination: Get data sends start/end/limit; Get next page sends only cursor. Its signed payload carries the full query context. Cursors from the previous fingerprint-only format require a fresh Get data request."
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{api_key}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "",
      "type": "string",
      "description": "Assigned API base URL from Echora. Set this before sending requests."
    },
    {
      "key": "api_key",
      "value": "",
      "type": "string",
      "description": "Your assigned API key, sent in X-API-Key. Fill this value before sending authenticated requests."
    },
    {
      "key": "source",
      "value": "news",
      "type": "string",
      "description": "Select news, twitter, instagram, youtube, tiktok or facebook."
    },
    {
      "key": "keyword",
      "value": "PSSI",
      "type": "string"
    },
    {
      "key": "keyword_path",
      "value": "pssi",
      "type": "string",
      "description": "Active keyword path returned by List keywords. This is not arbitrary search text."
    },
    {
      "key": "slot_id",
      "value": "",
      "type": "string",
      "description": "Keyword slot ID captured from List keywords or a successful keyword operation."
    },
    {
      "key": "limit",
      "value": "100",
      "type": "string",
      "description": "Records per page, from 1 to 1000."
    },
    {
      "key": "start",
      "value": "2026-11-12",
      "type": "string",
      "description": "Inclusive start date in Asia/Jakarta, YYYY-MM-DD. Used only by date-range requests."
    },
    {
      "key": "end",
      "value": "2026-11-18",
      "type": "string",
      "description": "Inclusive end date in Asia/Jakarta, YYYY-MM-DD. Used only by date-range requests."
    },
    {
      "key": "new_keyword",
      "value": "API demo keyword",
      "type": "string"
    },
    {
      "key": "replacement_keyword",
      "value": "Persija",
      "type": "string"
    },
    {
      "key": "next_cursor",
      "value": "",
      "type": "string",
      "description": "Captured automatically from the previous data response."
    },
    {
      "key": "has_more",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "01 — Account",
      "item": [
        {
          "name": "Account and per-source quotas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/account/info",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "account",
                "info"
              ]
            },
            "description": "Account expiry, source slot limits, and used/maximum/remaining monthly changes. Calendar month is Asia/Jakarta."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "02 — Keyword management",
      "description": "Create, list, edit or delete account keywords. List keywords groups your account keyword slots by source and selects the first active keyword for the configured source into slot_id, keyword and keyword_path. Editing or refilling a previously used slot consumes a monthly source change. Send the operation you intend to perform.",
      "item": [
        {
          "name": "Create keyword",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/keywords",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "keywords"
              ]
            },
            "description": "Creates a keyword in the first available source slot. First input is free once per slot; refilling a previously used slot consumes one monthly change. new_keyword must not already exist for the source. Saves the resulting slot_id/path.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"source\": \"{{source}}\",\n  \"keyword\": \"{{new_keyword}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([201]); });",
                  "",
                  "if ([200, 201].includes(pm.response.code)) {",
                  "  const body = pm.response.json();",
                  "  pm.collectionVariables.set('slot_id', String(body.id));",
                  "  pm.collectionVariables.set('source', body.source_key);",
                  "  pm.collectionVariables.set('keyword', body.term_value || '');",
                  "  pm.collectionVariables.set('keyword_path', body.path || '');",
                  "  pm.collectionVariables.set('next_cursor', '');",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "List keywords",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/keywords",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "keywords"
              ]
            },
            "description": "Lists account keyword slots grouped in data.news, data.twitter, data.instagram, data.youtube, data.tiktok and data.facebook. All six arrays are present, including empty sources. Set source before sending; the script selects its first active keyword within quota into slot_id, keyword and keyword_path. If none exists, stale selection/cursor/media variables are cleared. This request does not change any keyword."
          },
          "response": [
            {
              "name": "200 — Keywords grouped by source (synthetic example)",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/keywords",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "keywords"
                  ]
                },
                "description": "Lists account keyword slots grouped in data.news, data.twitter, data.instagram, data.youtube, data.tiktok and data.facebook. All six arrays are present, including empty sources. Set source before sending; the script selects its first active keyword within quota into slot_id, keyword and keyword_path. If none exists, stale selection/cursor/media variables are cleared. This request does not change any keyword."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"data\": {\n    \"news\": [\n      {\n        \"id\": 1,\n        \"account_id\": 1,\n        \"source_key\": \"news\",\n        \"slot_number\": 1,\n        \"term_value\": \"Example news\",\n        \"normalized_value\": \"example news\",\n        \"path\": \"example-news\",\n        \"is_active\": true,\n        \"initialized_at\": \"2026-11-19T00:00:00Z\",\n        \"revision\": 1,\n        \"created_at\": \"2026-11-19T00:00:00Z\",\n        \"updated_at\": \"2026-11-19T00:00:00Z\",\n        \"within_quota\": true\n      }\n    ],\n    \"twitter\": [\n      {\n        \"id\": 2,\n        \"account_id\": 1,\n        \"source_key\": \"twitter\",\n        \"slot_number\": 1,\n        \"term_value\": \"Example tweet\",\n        \"normalized_value\": \"example tweet\",\n        \"path\": \"example-tweet\",\n        \"is_active\": true,\n        \"initialized_at\": \"2026-11-19T00:00:00Z\",\n        \"revision\": 1,\n        \"created_at\": \"2026-11-19T00:00:00Z\",\n        \"updated_at\": \"2026-11-19T00:00:00Z\",\n        \"within_quota\": true\n      }\n    ],\n    \"instagram\": [],\n    \"youtube\": [],\n    \"tiktok\": [],\n    \"facebook\": []\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                  "",
                  "if (pm.response.code === 200) {",
                  "  const body = pm.response.json();",
                  "  const sources = ['news', 'twitter', 'instagram', 'youtube', 'tiktok', 'facebook'];",
                  "  pm.test('Keywords are grouped into all six source arrays', function () {",
                  "    pm.expect(body.data).to.be.an('object');",
                  "    sources.forEach(source => {",
                  "      pm.expect(body.data).to.have.property(source);",
                  "      pm.expect(body.data[source]).to.be.an('array');",
                  "    });",
                  "  });",
                  "  ['slot_id', 'keyword', 'keyword_path', 'next_cursor']",
                  "    .forEach(name => pm.collectionVariables.set(name, ''));",
                  "  const group = body.data[pm.variables.get('source')] || [];",
                  "  const selected = group.find(k => k.is_active && k.within_quota);",
                  "  if (selected) {",
                  "    pm.collectionVariables.set('slot_id', String(selected.id));",
                  "    pm.collectionVariables.set('keyword', selected.term_value);",
                  "    pm.collectionVariables.set('keyword_path', selected.path);",
                  "  }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Edit keyword",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/keywords/{{slot_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "keywords",
                "{{slot_id}}"
              ]
            },
            "description": "Edits keyword text. A changed value consumes one monthly source change. Source and activation status follow the slot. Saves the new path and invalidates older cursors.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"keyword\": \"{{replacement_keyword}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('slot_id')) pm.execution.skipRequest();"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                  "",
                  "if ([200, 201].includes(pm.response.code)) {",
                  "  const body = pm.response.json();",
                  "  pm.collectionVariables.set('slot_id', String(body.id));",
                  "  pm.collectionVariables.set('source', body.source_key);",
                  "  pm.collectionVariables.set('keyword', body.term_value || '');",
                  "  pm.collectionVariables.set('keyword_path', body.path || '');",
                  "  pm.collectionVariables.set('next_cursor', '');",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Delete keyword",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/keywords/{{slot_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "keywords",
                "{{slot_id}}"
              ]
            },
            "description": "Deletes the selected keyword and frees its slot. Slot history is retained; creating another keyword in this previously used slot consumes one monthly source change."
          },
          "response": [],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('slot_id')) pm.execution.skipRequest();"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                  "",
                  "if ([200, 201].includes(pm.response.code)) {",
                  "  const body = pm.response.json();",
                  "  pm.collectionVariables.set('slot_id', String(body.id));",
                  "  pm.collectionVariables.set('source', body.source_key);",
                  "  pm.collectionVariables.set('keyword', body.term_value || '');",
                  "  pm.collectionVariables.set('keyword_path', body.path || '');",
                  "  pm.collectionVariables.set('next_cursor', '');",
                  "}"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "03 — Data and pagination",
      "item": [
        {
          "name": "News",
          "description": "The source is fixed to news. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/news/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "news",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get News data for an active keyword_path. Set start, end and limit in collection Variables. All query parameters are shown. The response saves next_cursor for Get next page.  the keyword and pagination envelope is consistent. News fields include title, text, source (article URL), media (publisher name), image, sentiment and category. News does not expose item_id, dedupe_key, entities or the hardcoded lang value. There is no generic author/metrics/media-array structure."
              },
              "response": [
                {
                  "name": "200 — News data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/news/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "news",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get News data for an active keyword_path. Set start, end and limit in collection Variables. All query parameters are shown. The response saves next_cursor for Get next page.  the keyword and pagination envelope is consistent. News fields include title, text, source (article URL), media (publisher name), image, sentiment and category. News does not expose item_id, dedupe_key, entities or the hardcoded lang value. There is no generic author/metrics/media-array structure."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"news\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"published_at\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"source_key\": \"news\",\n      \"id\": \"demo-news\",\n      \"title\": \"Example article\",\n      \"text\": \"Example news content.\",\n      \"source\": \"https://example.invalid/article\",\n      \"media\": \"Example Publisher\",\n      \"image\": \"https://example.invalid/image.webp\",\n      \"sentiment\": \"neutral\",\n      \"category\": \"sports\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/news/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "news",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue news data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — News next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/news/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "news",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue news data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"news\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Twitter",
          "description": "The source is fixed to twitter. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/twitter/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "twitter",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get Twitter data for an active keyword_path. Set start/end/limit. The next_cursor is captured automatically for Get next page. Twitter uses id/created_at, inline author (username/name/profile_image_url/public_metrics.followers_count), and tweet public_metrics (retweet_count/reply_count/like_count). Retweet helpers use snake_case; media is an array of objects with type and full url. There is no top-level media_type. Impression is omitted because the stored value is an engagement sum. Sentiment and gender remain available; entities, emotion, lang and place are omitted."
              },
              "response": [
                {
                  "name": "200 — Twitter data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/twitter/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "twitter",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get Twitter data for an active keyword_path. Set start/end/limit. The next_cursor is captured automatically for Get next page. Twitter uses id/created_at, inline author (username/name/profile_image_url/public_metrics.followers_count), and tweet public_metrics (retweet_count/reply_count/like_count). Retweet helpers use snake_case; media is an array of objects with type and full url. There is no top-level media_type. Impression is omitted because the stored value is an engagement sum. Sentiment and gender remain available; entities, emotion, lang and place are omitted."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"twitter\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"twitter\",\n      \"id\": \"demo-tweet\",\n      \"created_at\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"text\": \"Example tweet.\",\n      \"source\": \"\",\n      \"author\": {\n        \"username\": \"example\",\n        \"name\": \"Example Author\",\n        \"profile_image_url\": \"https://example.invalid/avatar.webp\",\n        \"public_metrics\": {\n          \"followers_count\": 0\n        }\n      },\n      \"public_metrics\": {\n        \"retweet_count\": 3,\n        \"reply_count\": 2,\n        \"like_count\": 10\n      },\n      \"hashtags\": [],\n      \"mentions\": [],\n      \"retweeted_user\": null,\n      \"retweeted_id\": null,\n      \"retweeted_profile_image_url\": null,\n      \"is_retweet\": false,\n      \"media\": [\n        {\n          \"type\": \"photo\",\n          \"url\": \"https://example.invalid/photo.webp\"\n        }\n      ],\n      \"sentiment\": \"neutral\",\n      \"gender\": \"\",\n      \"url\": \"https://x.com/example/status/demo-tweet\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/twitter/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "twitter",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue twitter data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — Twitter next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/twitter/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "twitter",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue twitter data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"twitter\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Instagram",
          "description": "The source is fixed to instagram. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/instagram/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "instagram",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get Instagram data for an active hashtag keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id, shortcode, caption, timestamp, permalink, inline author (id/username/name/profile_picture_url/public_metrics.followers_count), public_metrics (like_count/comments_count), and media objects (type/url). Location fields are grouped under location (null when absent), and tagged users under tagged_users. Duplicate IDs, old camelCase names, derived impression, activity and lang are omitted."
              },
              "response": [
                {
                  "name": "200 — Instagram data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/instagram/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "instagram",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get Instagram data for an active hashtag keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id, shortcode, caption, timestamp, permalink, inline author (id/username/name/profile_picture_url/public_metrics.followers_count), public_metrics (like_count/comments_count), and media objects (type/url). Location fields are grouped under location (null when absent), and tagged users under tagged_users. Duplicate IDs, old camelCase names, derived impression, activity and lang are omitted."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"instagram\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"instagram\",\n      \"id\": \"demo-instagram\",\n      \"shortcode\": \"demo\",\n      \"caption\": \"Example caption.\",\n      \"timestamp\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"permalink\": \"https://www.instagram.com/p/demo/\",\n      \"author\": {\n        \"id\": null,\n        \"username\": \"example\",\n        \"name\": \"Example Author\",\n        \"profile_picture_url\": \"https://example.invalid/avatar.webp\",\n        \"public_metrics\": {\n          \"followers_count\": 100\n        }\n      },\n      \"public_metrics\": {\n        \"like_count\": 10,\n        \"comments_count\": 0\n      },\n      \"media\": [\n        {\n          \"type\": \"photo\",\n          \"url\": \"https://example.invalid/photo.webp\"\n        }\n      ],\n      \"location\": null,\n      \"hashtags\": [\n        \"example\"\n      ],\n      \"mentions\": [],\n      \"tagged_users\": [],\n      \"sentiment\": \"neutral\",\n      \"gender\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/instagram/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "instagram",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue instagram data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — Instagram next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/instagram/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "instagram",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue instagram data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"instagram\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Threads",
          "description": "The source is fixed to threads. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/threads/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "threads",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get Threads data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id, shortcode, text, timestamp, permalink, inline author (id/username/name/profile_picture_url/verified), public_metrics (like_count/reply_count/repost_count/quote_count/reshare_count), media objects (type/url), and reply metadata."
              },
              "response": [
                {
                  "name": "200 — Threads data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/threads/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "threads",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get Threads data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id, shortcode, text, timestamp, permalink, inline author (id/username/name/profile_picture_url/verified), public_metrics (like_count/reply_count/repost_count/quote_count/reshare_count), media objects (type/url), and reply metadata."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"threads\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"threads\",\n      \"id\": \"demo-threads\",\n      \"shortcode\": \"demo\",\n      \"text\": \"Example Threads post.\",\n      \"timestamp\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"permalink\": \"https://www.threads.com/@example/post/demo\",\n      \"author\": {\n        \"id\": null,\n        \"username\": \"example\",\n        \"name\": \"Example Author\",\n        \"profile_picture_url\": \"https://example.invalid/avatar.webp\",\n        \"verified\": false\n      },\n      \"public_metrics\": {\n        \"like_count\": 10,\n        \"reply_count\": 2,\n        \"repost_count\": 1,\n        \"quote_count\": 0,\n        \"reshare_count\": 1\n      },\n      \"media\": [\n        {\n          \"type\": \"photo\",\n          \"url\": \"https://example.invalid/photo.webp\"\n        }\n      ],\n      \"is_reply\": false,\n      \"reply_to_post_id\": null,\n      \"reply_to_username\": null,\n      \"hashtags\": [\n        \"example\"\n      ],\n      \"mentions\": [],\n      \"sentiment\": \"neutral\",\n      \"gender\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], threads: ['id', 'text', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/threads/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "threads",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue threads data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — Threads next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/threads/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "threads",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue threads data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"threads\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], threads: ['id', 'text', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "YouTube",
          "description": "The source is fixed to youtube. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/youtube/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "youtube",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get YouTube data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id/title/description/published_at, channel (id/title/thumbnail_url), public_metrics (view_count/like_count/comment_count), duration_seconds, thumbnail_url, tags, categories, sentiment, url and embed_url. CDN image URLs are preserved; explicit stored archive paths become signed full URLs. Duplicate IDs, derived impression, unavailable dislikes, encoding placeholders, rating and lang are omitted."
              },
              "response": [
                {
                  "name": "200 — YouTube data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/youtube/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "youtube",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get YouTube data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use id/title/description/published_at, channel (id/title/thumbnail_url), public_metrics (view_count/like_count/comment_count), duration_seconds, thumbnail_url, tags, categories, sentiment, url and embed_url. CDN image URLs are preserved; explicit stored archive paths become signed full URLs. Duplicate IDs, derived impression, unavailable dislikes, encoding placeholders, rating and lang are omitted."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"youtube\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"youtube\",\n      \"id\": \"demo-video\",\n      \"title\": \"Example video\",\n      \"description\": \"Example description.\",\n      \"published_at\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"url\": \"https://www.youtube.com/watch?v=demo-video\",\n      \"embed_url\": \"https://www.youtube.com/embed/demo-video\",\n      \"thumbnail_url\": \"https://example.invalid/thumbnail.webp\",\n      \"channel\": {\n        \"id\": \"demo-channel\",\n        \"title\": \"Example Channel\",\n        \"thumbnail_url\": \"https://example.invalid/avatar.webp\"\n      },\n      \"public_metrics\": {\n        \"view_count\": 100,\n        \"like_count\": 10,\n        \"comment_count\": 0\n      },\n      \"duration_seconds\": 120,\n      \"tags\": [],\n      \"categories\": [\n        \"Sports\"\n      ],\n      \"sentiment\": \"neutral\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/youtube/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "youtube",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue youtube data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — YouTube next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/youtube/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "youtube",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue youtube data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"youtube\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "TikTok",
          "description": "The source is fixed to tiktok. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/tiktok/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "tiktok",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get TikTok data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use one post id, description, created_at, url, author, public_metrics (view_count/like_count/comment_count/share_count/favorites_count), media video objects (type/url/cover_image_url/duration_seconds/width/height/resolution), and nullable music metadata. Avatar and covers are full URLs, preferring stored archives. Internal video/storage identifiers, *_s3 aliases, flat author/music/stats fields and lang are omitted. Archived video URLs can return 404 if no archive exists."
              },
              "response": [
                {
                  "name": "200 — TikTok data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/tiktok/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "tiktok",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get TikTok data for an active keyword_path. Set start/end/limit; next_cursor is captured automatically. Fields use one post id, description, created_at, url, author, public_metrics (view_count/like_count/comment_count/share_count/favorites_count), media video objects (type/url/cover_image_url/duration_seconds/width/height/resolution), and nullable music metadata. Avatar and covers are full URLs, preferring stored archives. Internal video/storage identifiers, *_s3 aliases, flat author/music/stats fields and lang are omitted. Archived video URLs can return 404 if no archive exists."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"tiktok\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"tiktok\",\n      \"id\": \"demo-tiktok\",\n      \"description\": \"Example video.\",\n      \"created_at\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"url\": \"https://www.tiktok.com/@example/video/demo-tiktok\",\n      \"author\": {\n        \"id\": null,\n        \"username\": \"example\",\n        \"name\": \"Example Author\",\n        \"profile_image_url\": \"https://example.invalid/avatar.webp\",\n        \"bio\": \"\",\n        \"verified\": false\n      },\n      \"public_metrics\": {\n        \"view_count\": 100,\n        \"like_count\": 10,\n        \"comment_count\": 0,\n        \"share_count\": 0,\n        \"favorites_count\": 0\n      },\n      \"media\": [\n        {\n          \"type\": \"video\",\n          \"url\": \"https://example.invalid/video.mp4\",\n          \"cover_image_url\": \"https://example.invalid/cover.webp\",\n          \"duration_seconds\": 30,\n          \"width\": null,\n          \"height\": null,\n          \"resolution\": null\n        }\n      ],\n      \"music\": {\n        \"id\": \"demo-music\",\n        \"title\": \"Example music\",\n        \"author_name\": \"Example Artist\",\n        \"duration_seconds\": 60,\n        \"play_url\": \"https://example.invalid/music.mp3\",\n        \"cover_image_url\": \"https://example.invalid/music.webp\",\n        \"is_original\": true,\n        \"album\": \"\",\n        \"is_copyrighted\": false\n      },\n      \"sentiment\": \"neutral\",\n      \"gender\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/tiktok/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "tiktok",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue tiktok data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — TikTok next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/tiktok/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "tiktok",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue tiktok data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"tiktok\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Facebook",
          "description": "The source is fixed to facebook. Get data accepts start/end/limit; Get next page sends only cursor and automatically continues the original query.",
          "item": [
            {
              "name": "Get data",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/facebook/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "facebook",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "start",
                      "value": "{{start}}",
                      "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "end",
                      "value": "{{end}}",
                      "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                    },
                    {
                      "key": "limit",
                      "value": "{{limit}}",
                      "description": "Records per page, 1–1000."
                    }
                  ]
                },
                "description": "Get Facebook data for an active keyword_path. Set start, end and limit in collection Variables. The response saves next_cursor for Get next page. Items use id, message, created_time, permalink_url, from (Page id/name/username/link), public_metrics (reaction_count/comment_count/share_count), reactions (stored reaction breakdown), sentiment and category. A Page link is separate from the post permalink. No duplicate IDs, derived impression, placeholder type/gender, entities, emotion or lang. Images/avatars are not available in the stored Facebook schema. Reaction breakdown can be partial and is not a list of people."
              },
              "response": [
                {
                  "name": "200 — Facebook data (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/facebook/{{keyword_path}}?start={{start}}&end={{end}}&limit={{limit}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "facebook",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "start",
                          "value": "{{start}}",
                          "description": "Inclusive start date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "end",
                          "value": "{{end}}",
                          "description": "Inclusive end date in Asia/Jakarta (YYYY-MM-DD), 1970-01-01 through 2106-02-07."
                        },
                        {
                          "key": "limit",
                          "value": "{{limit}}",
                          "description": "Records per page, 1–1000."
                        }
                      ]
                    },
                    "description": "Get Facebook data for an active keyword_path. Set start, end and limit in collection Variables. The response saves next_cursor for Get next page. Items use id, message, created_time, permalink_url, from (Page id/name/username/link), public_metrics (reaction_count/comment_count/share_count), reactions (stored reaction breakdown), sentiment and category. A Page link is separate from the post permalink. No duplicate IDs, derived impression, placeholder type/gender, entities, emotion or lang. Images/avatars are not available in the stored Facebook schema. Reaction breakdown can be partial and is not a list of people."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"facebook\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [\n    {\n      \"source_key\": \"facebook\",\n      \"id\": \"1234567890\",\n      \"message\": \"Example Facebook post.\",\n      \"created_time\": \"2026-11-18T00:00:00Z\",\n      \"updated_at\": \"2026-11-18T00:00:00Z\",\n      \"permalink_url\": \"https://www.facebook.com/1234567890\",\n      \"from\": {\n        \"id\": \"9876543210\",\n        \"name\": \"Example Page\",\n        \"username\": \"example\",\n        \"link\": \"https://www.facebook.com/example\"\n      },\n      \"public_metrics\": {\n        \"reaction_count\": 10,\n        \"comment_count\": 2,\n        \"share_count\": 1\n      },\n      \"reactions\": [\n        {\n          \"id\": \"like\",\n          \"name\": \"Like\",\n          \"count\": 10\n        }\n      ],\n      \"sentiment\": \"neutral\",\n      \"category\": \"sports\"\n    }\n  ],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"example-cursor-from-api-response\"\n  }\n}\n"
                }
              ],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get next page",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/v1/data/facebook/{{keyword_path}}?cursor={{next_cursor}}",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "v1",
                    "data",
                    "facebook",
                    "{{keyword_path}}"
                  ],
                  "query": [
                    {
                      "key": "cursor",
                      "value": "{{next_cursor}}",
                      "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                    }
                  ]
                },
                "description": "Send only cursor to continue facebook data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
              },
              "response": [
                {
                  "name": "200 — Facebook next page (synthetic example)",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{base_url}}/v1/data/facebook/{{keyword_path}}?cursor={{next_cursor}}",
                      "host": [
                        "{{base_url}}"
                      ],
                      "path": [
                        "v1",
                        "data",
                        "facebook",
                        "{{keyword_path}}"
                      ],
                      "query": [
                        {
                          "key": "cursor",
                          "value": "{{next_cursor}}",
                          "description": "Signed next_cursor from the previous page. Restores filters, limit and last position automatically."
                        }
                      ]
                    },
                    "description": "Send only cursor to continue facebook data for the same keyword_path. Dates, page size and last position are restored from the signed cursor, without database/Redis cursor storage. Send Get data first; the next cursor is captured automatically. If next_cursor is empty the request is skipped. Changing start/end/limit variables does not change this ongoing query; send Get data again to apply new filters. A different source/keyword, modified token, or incompatible older cursor is rejected."
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "body": "{\n  \"keyword\": {\n    \"id\": 1,\n    \"source\": \"facebook\",\n    \"keyword\": \"Example\",\n    \"path\": \"example\"\n  },\n  \"data\": [],\n  \"pagination\": {\n    \"limit\": 100,\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}\n"
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (!pm.variables.get('next_cursor')) {",
                      "  pm.execution.skipRequest();",
                      "}"
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "pm.test(\"Expected response status\", function () { pm.expect(pm.response.code).to.be.oneOf([200]); });",
                      "",
                      "if (pm.response.code === 200) {",
                      "  const body = pm.response.json();",
                      "  pm.test('Data and pagination are present', function () {",
                      "    pm.expect(body.data).to.be.an('array');",
                      "    pm.expect(body.pagination.has_more).to.be.a('boolean');",
                      "    pm.expect(body.pagination).to.have.property('next_cursor');",
                      "  });",
                      "  pm.collectionVariables.set('next_cursor', body.pagination.next_cursor || '');",
                      "  pm.collectionVariables.set('has_more', String(body.pagination.has_more));",
                      "  const required = {",
                      "    news: ['title', 'text', 'image'], twitter: ['id', 'text', 'created_at', 'author', 'public_metrics'],",
                      "    instagram: ['id', 'caption', 'timestamp', 'author', 'public_metrics', 'media'], youtube: ['id', 'description', 'channel', 'public_metrics', 'duration_seconds'],",
                      "    tiktok: ['id', 'description', 'created_at', 'author', 'public_metrics', 'media', 'music'], facebook: ['id', 'message', 'created_time', 'permalink_url', 'from', 'public_metrics', 'reactions'],",
                      "  };",
                      "  pm.test('Content uses the requested source fields', function () {",
                      "    body.data.forEach(item => {",
                      "      pm.expect(item.source_key).to.equal(body.keyword.source);",
                      "      (required[item.source_key] || []).forEach(field => pm.expect(item).to.have.property(field));",
                      "    });",
                      "  });",
                      "}"
                    ]
                  }
                }
              ]
            }
          ]
        }
      ],
      "description": "Choose a source folder. Each source has exactly two requests: Get data with start/end/limit, and Get next page with only cursor. The signed cursor restores the initial period, page size and last position. Use the same source/keyword_path. To change filters, send Get data again."
    }
  ]
}
