Skip to main content
POST
/
api
/
queries
/
list
Get all queries for a project
curl --request POST \
  --url https://api.mentionlab.io/api/queries/list \
  --header 'Content-Type: application/json' \
  --header 'x-organisation-id: <x-organisation-id>' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "query": "<string>",
  "language": "<string>",
  "country": "<string>",
  "tagIds": [
    "<string>"
  ],
  "tagNames": [
    "<string>"
  ],
  "sort": [
    "<string>"
  ]
}
'
{
  "page": {
    "totalRecords": 123,
    "limit": 123,
    "currentPage": 123,
    "totalPages": 123,
    "nextPage": 123,
    "prevPage": 123
  },
  "results": [
    {
      "id": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
      "project": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
      "tags": [
        1,
        2,
        3
      ],
      "query": "mentionlab",
      "language": "en",
      "country": "US",
      "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:

50

page
number
Example:

0

Body

application/json
query
string
language
string
country
string
tagIds
string[]
tagNames
string[]
sort
string[]

Response

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