Get a language's built-in stop words
GET
/v1/apps/{appId}/languages/{code}/stop-words
const url = 'https://api.shoofai.com/v1/apps/demo-store/languages/ar/stop-words';const options = {method: 'GET', headers: {'x-shoof-api-key': '<x-shoof-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.shoofai.com/v1/apps/demo-store/languages/ar/stop-words \ --header 'x-shoof-api-key: <x-shoof-api-key>'Returns a language’s built-in stop words.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
string
The app’s id, shown in the dashboard (for example ali-sport-goods). demo-store is the public demo app.
Example
demo-storecode
required
string
Responses
Section titled “Responses”The built-in stop words.
Media typeapplication/json
object
language
string
stopWords
Array<string>
Example
{ "language": "ar"}The record doesn’t exist (not_found).
Media typeapplication/json
object
error
required
object
code
required
A stable, machine-readable code.
string
message
required
A human-readable explanation.
string
details
More about the error, such as the validation problems.
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}