<p>I've tested this works on my install:</p>

<pre><code>{% set tweets = craft.twitter.get('search/tweets', {q:'#craftcms'}) %}

{% for tweet in tweets.statuses %}
    {{ tweet.text }}
{% endfor %}
</code></pre>

<p>Have you tried running a <code>{{ dump(tweets) }}</code> to see what you get?</p>

CC BY-SA 3.0
2015-10-29T16:49:35.233Z
Thanks, it works. It didn't work cause of a stupid bug in my code.
user4020
CC BY-SA 3.0
2015-10-23T13:37:11.987Z
2015-10-23T13:37:11.987Z
crawf
<p>we're using the Dukt Twitter plugin 0.9.25 and it works fine with calling the user's timeline:</p>

<pre><code>    {% set tweets = craft.twitter.get('statuses/user_timeline', {count:1}) %}
</code></pre>

<p>If we request any other data like</p>

<pre><code>    {% set tweets = craft.twitter.get('search/tweets', {q:'#craftcms',}) %}
</code></pre>

<p>we're receiving two tweets which are empty. Anyone else having these problems and found a solution?</p>

<p>Thanks, Lars</p>

CC BY-SA 3.0
2015-08-28T15:11:49.850Z
Not used the plugin but try %23 instead of #
j00lz
CC BY-SA 3.0
2015-08-28T20:41:34.857Z
Thanks, but that didn't help.
user4020
<plugin-dukttwitter>
Dukt Twitter Plugin, problem with "search/tweets" or request to Twitter REST API
# Dukt Twitter Plugin, problem with "search/tweets" or request to Twitter REST API

(Asked by: username_0 on 2015-08-28)

we're using the Dukt Twitter plugin 0.9.25 and it works fine with calling the user's timeline:
    {% set tweets = craft.twitter.get('statuses/user_timeline', {count:1}) %}

If we request any other data like
    {% set tweets = craft.twitter.get('search/tweets', {q:'#craftcms',}) %}

we're receiving two tweets which are empty. Anyone else having these problems and found a solution?
Thanks, Lars

**Tags:** plugin-dukttwitter
> **Comments:**
> **username_1**: Not used the plugin but try %23 instead of #  
> **username_0**: Thanks, but that didn't help.  

---

## 1 answers

### Answer by username_2 on 2015-10-23. Score: 2

I've tested this works on my install:
{% set tweets = craft.twitter.get('search/tweets', {q:'#craftcms'}) %}

{% for tweet in tweets.statuses %}
    {{ tweet.text }}
{% endfor %}

Have you tried running a {{ dump(tweets) }} to see what you get?

> **Comments:**
> **username_0**: Thanks, it works. It didn't work cause of a stupid bug in my code.  

---

