Hi,

I’m trying to use API v2 to search and retrieve tweets. I have Elevated access to the API, but when I try to add -is:nullcast to my query it returns the error: “Reference to invalid operator ‘is:nullcast’. Operator is not available in current product or product packaging.”

According the documentation, this operator is available in the Elevated mode. I’ve tried to regenerate the API tokens after I got approval for Elevated mode but I still get the same error. Here’s the response I get from the API.

{
    "errors": [
        {
            "parameters": {
                "query": [
                    "((cloud aws) OR (python programming) OR (from:NASA webb)) (lang:en -is:nullcast -is:retweet -is:reply -is:quote is:verified)"
                ]
            },
            "message": "There were errors processing your request: Reference to invalid operator "is:nullcast". Operator is not available in current product or product packaging. Please refer to complete available operator list at .../t.co/operators. (at position 72)"
        }
    ],
    "title": "Invalid Request",
    "detail": "One or more parameters to your request was invalid.",
    "type": ".../2/problems/invalid-request"
} 

Bad Request, Request payload: {
    "query": "((cloud aws) OR (python programming) OR (from:NASA webb)) (lang:en -is:nullcast -is:retweet -is:reply -is:quote is:verified)",
    "max_results": 100
}

Previously this was only available for Academic Access, so i think it’s still the case, and the docs are misleading Search Tweets - How to build a query | Docs | Twitter Developer Platform

The filter stream added new operators for Elevated Access but not the search as far as I know: More operators supported with Twitter API v2 filtered stream | Twitter Developer Platform