# Rest API search locale

**URL:** https://community.zammad.org/t/rest-api-search-locale/19199
**Category:** Development
**Created:** [December 3, 2025, 3:08pm UTC](https://community.zammad.org/t/rest-api-search-locale/19199 "2025-12-03T15:08:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MarkW](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@MarkW](https://community.zammad.org/u/MarkW)
#### Post date: [December 3, 2025, 3:08pm UTC](https://community.zammad.org/t/rest-api-search-locale/19199/1 "2025-12-03T15:08:00Z")

</div>

I if use the API /search?query= **factuur** &objects=KnowledgeBaseAnswerTranslation&limit=10 call i don’t get any results, even thought i have multiple Knowlegde Base articles with this word in it.

If i use the API /search?query= **invoice** &objects=KnowledgeBaseAnswerTranslation&limit=10 call, i see the KB articles i want to see.

All the KB articles are both in Dutch and English.

My question is if it is possible to force searching for Dutch or to search in both languages and how to change the API call to do so.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![rolfschmidt](https://community.zammad.org/user_avatar/community.zammad.org/rolfschmidt/32/3368_2.png) [@rolfschmidt](https://community.zammad.org/u/rolfschmidt)
#### Post date: [January 21, 2026, 1:42pm UTC](https://community.zammad.org/t/rest-api-search-locale/19199/2 "2026-01-21T13:42:11Z")

</div>

Hey @MarkW ,

currently it looks like that with the zammad api it is not possible, since it only uses the user language for the locales it gathers:

[zammad/app/models/knowledge\_base/answer/translation/search.rb at 43c2242a282683dba6a616d0dc9146eda4a55fa4 · zammad/zammad · GitHub](https://github.com/zammad/zammad/blob/43c2242a282683dba6a616d0dc9146eda4a55fa4/app/models/knowledge_base/answer/translation/search.rb#L36)

I also checked my addon [Rolfs-TableSearch](https://community.zammad.org/t/rolfs-tablesearch-search-your-database-tables-via-rest-package/12172), but with that you would need multiple REST requests to climb up to the tables and find the proper locales which will get inconvienient as well, since you only have postgres search.

Your best chance is maybe to access your elastic search server directly and query it manually without zammad between? Then you would have the pro’s of a nice search and could grab single data via official api.

Would this maybe an option?

---

<div class="post-metadata">

### Author: ![MarkW](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@MarkW](https://community.zammad.org/u/MarkW)
#### Post date: [February 20, 2026, 1:42pm UTC](https://community.zammad.org/t/rest-api-search-locale/19199/3 "2026-02-20T13:42:45Z")

</div>

Hello @rolfschmidt ,

Thanks for your answer and your help.  
For now it is working for us, but good to know why it is happening.

Mark

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [February 27, 2026, 1:43pm UTC](https://community.zammad.org/t/rest-api-search-locale/19199/4 "2026-02-27T13:43:01Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
