Web API for Roblox's Text Filter

I’m going to get straight to the point.

Is there a Web API for Roblox’s Text Filter?

I’m in the middle of a project that involves testing to see if Roblox’s chat filter will censor a specific message.

Is there some sort of API I can use to do that?

I’d suggest checking out Roblox’s TextService!

Here is a cool article for exactly what our looking for:

local TextService = game:GetService("TextService")

local filteredText = "hello world"
local success, errorMessage = pcall(function()
	filteredTextResult = TextService:FilterStringAsync(filteredText, fromPlayerId)
end)
if not success then
	-- text will be filtered
else
    -- text will no be filtered
end

Actually, the project is not for a roblox game. It’s outside Studio, which is why I was asking for a web API.

I took a look and there is no real web API for this although you can recreate it with Roblox’s docs Develop Api

All you’d have to do is use PATCH /v2/places/{placeId} with the placeId and set the description to whatever the user has in their message through the description and the name can be something like “Filtering Test” on an alternative account.

I do HIGHLY recommend making this on an alternative account since if a user purposefully uses a censored word then well your account may be moderated.

2 Likes

Does the filter for game descriptions with the <13 filter or the 13+ filter or does it depend on the account age?