<p>You'll want to use <code>siteId</code> for this.</p>
<pre><code>query {
    entries (section: &quot;newsIntranet&quot;, siteId: &quot;2&quot;) {
        title
        postDate
        expiryDate
        contentText
    }
}
</code></pre>
<p>Swap out &quot;2&quot; with whatever the <code>siteId</code> of the French site is on your system.</p>

CC BY-SA 4.0
2020-11-10T09:33:54.020Z
Thank you a lot for your quick and helpful answer!
dannybucks
CC BY-SA 4.0
2020-11-10T00:13:07.707Z
2020-11-10T00:13:07.707Z
Brad Bell
<p>I try to use graphQL to get language specific entries from my Craft CMS. I (naively?) tried this:</p>
<pre><code>query {
    entries (section: &quot;newsIntranet&quot;, language: &quot;fr&quot;) {
        title
        postDate
        expiryDate
        contentText
    }
}
</code></pre>
<p>because of this part of <a href="https://craftcms.com/docs/3.x/graphql.html#pre-defined-interfaces" rel="nofollow noreferrer">doc</a>.
How can I get make sure that I only get entries of a given language when using graphQL from an extrernal system?</p>

CC BY-SA 4.0
2020-11-09T15:02:55.717Z
I tried using language too, and didn't seem to be able to make it work either.
Have you tried using `site` or `siteId` instead? That seems to work for me.
Joorren
<language><graphql>
Filter for language when using graphQL
# Filter for language when using graphQL

(Asked by: username_0 on 2020-11-09)

I try to use graphQL to get language specific entries from my Craft CMS. I (naively?) tried this:
query {
    entries (section: "newsIntranet", language: "fr") {
        title
        postDate
        expiryDate
        contentText
    }
}

because of this part of doc.
How can I get make sure that I only get entries of a given language when using graphQL from an extrernal system?

**Tags:** language, graphql

> **Comments:**
> **username_1**: I tried using language too, and didn't seem to be able to make it work either. Have you tried using `site` or `siteId` instead? That seems to work for me.  

---

## 1 answers

### Answer by username_2 on 2020-11-10. Score: 2 | Accepted answer

You'll want to use siteId for this.
query {
    entries (section: "newsIntranet", siteId: "2") {
        title
        postDate
        expiryDate
        contentText
    }
}

Swap out "2" with whatever the siteId of the French site is on your system.

> **Comments:**
> **username_0**: Thank you a lot for your quick and helpful answer!  

---

