Skip to main content
POST
/
api
/
result-analysis
/
list-cursor
Get cursor-based result analysis for a project
curl --request POST \
  --url https://api.mentionlab.io/api/result-analysis/list-cursor \
  --header 'Content-Type: application/json' \
  --header 'x-organisation-id: <x-organisation-id>' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "cachedJobId": "<string>",
  "timeFrom": "2023-11-07T05:31:56Z",
  "timeTo": "2023-11-07T05:31:56Z",
  "updatedAtFrom": "2023-11-07T05:31:56Z",
  "updatedAtTo": "2023-11-07T05:31:56Z",
  "tagNames": [
    "<string>"
  ],
  "tagIds": [
    "<string>"
  ],
  "cursor": {
    "lastId": "01234567-89ab-cdef-0123-456789abcdef",
    "lastUpdatedAt": "2024-01-01T00:00:00.000Z"
  }
}
'
{
  "cursor": {
    "limit": 123,
    "count": 123,
    "lastId": "<string>",
    "lastUpdatedAt": "<string>"
  },
  "results": [
    {
      "id": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
      "cachedJob": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
      "time": "2023-08-22T10:00:00.000Z",
      "analysisResult": {
        "model": "gpt-5-mini",
        "object": {
          "brands": [
            {
              "name": "ACME Corp",
              "mentioned": true,
              "mention_count": 1,
              "sentiment_score": 70,
              "ranking_position": 1
            },
            {
              "name": "Globex Inc",
              "mentioned": true,
              "mention_count": 2,
              "sentiment_score": 50,
              "ranking_position": 2
            }
          ]
        },
        "executionKey": "gpt-5-mini:0",
        "executionNumber": 0
      },
      "sourcesAnalysisResult": {
        "https://example.com/amazing_article": {
          "found": false,
          "matches": [],
          "subDomain": null,
          "rootDomain": "example.com"
        },
        "https://www.another.be/best_in_class": {
          "found": true,
          "matches": [
            {
              "text": "Another",
              "context": "ance : ★★★★  \nThe contract Another got the**Lab",
              "position": 10280
            }
          ],
          "subDomain": null,
          "rootDomain": "another.be"
        }
      },
      "updatedAt": "2023-08-22T10:00:00.000Z"
    }
  ]
}

Headers

x-organisation-id
string
required

Organisation ID to specify the organisation context

x-project-id
string
required

Project ID to specify the project context

Query Parameters

limit
number
Example:

500

Body

application/json
cachedJobId
string
timeFrom
string<date-time>
timeTo
string<date-time>
updatedAtFrom
string<date-time>
updatedAtTo
string<date-time>
tagNames
string[]
tagIds
string[]
cursor
object

Cursor for pagination (contains lastId and lastUpdatedAt)

Response

200 - application/json
cursor
object
required
results
object[]