X app search query format problem

Describe the problem/error/question

I am trying to use search from X app node. I am using this format in search box “” -filter:retweets -filter:replies since:2025-12-21, e.g. “Word cup football” -filter:retweets -filter:replies since:2025-12-21 but getting query format issue in x response. What am I doing wrong?

What is the error message (if any)?

Incorrect search query format

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“operation”: “search”,
“searchText”: “=“WORLD CUP FOOTBALL” -filter:retweets -filter:replies since:{{ $json.Year }}-{{ DateTime.fromFormat($json.Month, ‘LLLL’).toFormat(‘MM’) }}-{{ $json[‘Day of month’]-1 }}”,
“additionalFields”: {
“tweetFieldsObject”:
}
},
“type”: “n8n-nodes-base.twitter”,
“typeVersion”: 2,
“position”: [
208,
0
],
“name”: “Search Tweets”,
}
}
],
“connections”: {
“Search Tweets”: {
“main”: [

]
}
},
“pinData”: {},
}

your n8n setup

selfhosted on Hostinger

The problem is probally with how your building the since date in the expression. X’s API is pretty strict about date formats and it needs to be in YYYY-MM-DD format without any extra spaces or weird formatting. Try simplifying your expression to make sure the date is coming out clean, maybe use a set node before the search to build the date string first so you can see exactly what its outputing. Also double check theres no extra spaces around the filters, X can be picky about that. You might want to try a simpler query first like just “WORLD CUP FOOTBALL” without the dynamic date stuff to see if the base query works, then add the filters back one at a time