Get native tweets with retweets


#1

How to get the original tweet without RT using the search API. The following example is an RT, however I want to get the tweet that is inside retweeted_status as part of the search

[0] => stdClass Object
                (
                    [created_at] => Fri Jan 06 16:08:53 +0000 2017
                    [id] => 817402569760849920
                    [id_str] => 817402569760849920
                    [text] => RT @seniat_falcon: #06Ene Auxiliares fueron orientados sobre la declaración y pago del #ISLR en la Aduana Principal Las Piedras Paraguaná.…
                    [truncated] => 
                    [entities] => stdClass Object
                        (
                            [hashtags] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [text] => 06Ene
                                            [indices] => Array
                                                (
                                                    [0] => 19
                                                    [1] => 25
                                                )

                                        )

                                    [1] => stdClass Object
                                        (
                                            [text] => ISLR
                                            [indices] => Array
                                                (
                                                    [0] => 87
                                                    [1] => 92
                                                )

                                        )

                                )

                            [symbols] => Array
                                (
                                )

                            [user_mentions] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [screen_name] => seniat_falcon
                                            [name] => Aduana Las Piedras
                                            [id] => 3166058825
                                            [id_str] => 3166058825
                                            [indices] => Array
                                                (
                                                    [0] => 3
                                                    [1] => 17
                                                )

                                        )

                                )

                            [urls] => Array
                                (
                                )

                        )

                    [metadata] => stdClass Object
                        (
                            [iso_language_code] => es
                            [result_type] => recent
                        )

                    [source] => <a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>
                    [in_reply_to_status_id] => 
                    [in_reply_to_status_id_str] => 
                    [in_reply_to_user_id] => 
                    [in_reply_to_user_id_str] => 
                    [in_reply_to_screen_name] => 
                    [user] => stdClass Object
                        (
                            [id] => 783274029436239872
                            [id_str] => 783274029436239872
                            [name] => JOSE PAEZ RCNT
                            [screen_name] => 13PAEZRC
                            [location] => Venezuela
                            [description] => @Seniat_Central
                            [url] => 
                            [entities] => stdClass Object
                                (
                                    [description] => stdClass Object
                                        (
                                            [urls] => Array
                                                (
                                                )

                                        )

                                )

                            [protected] => 
                            [followers_count] => 147
                            [friends_count] => 151
                            [listed_count] => 0
                            [created_at] => Tue Oct 04 11:54:16 +0000 2016
                            [favourites_count] => 0
                            [utc_offset] => 
                            [time_zone] => 
                            [geo_enabled] => 
                            [verified] => 
                            [statuses_count] => 2634
                            [lang] => es
                            [contributors_enabled] => 
                            [is_translator] => 
                            [is_translation_enabled] => 
                            [profile_background_color] => F5F8FA
                            [profile_background_image_url] => 
                            [profile_background_image_url_https] => 
                            [profile_background_tile] => 
                            [profile_image_url] => http://pbs.twimg.com/profile_images/783437542989389824/7bUF6jSh_normal.jpg
                            [profile_image_url_https] => https://pbs.twimg.com/profile_images/783437542989389824/7bUF6jSh_normal.jpg
                            [profile_banner_url] => https://pbs.twimg.com/profile_banners/783274029436239872/1475620104
                            [profile_link_color] => 1DA1F2
                            [profile_sidebar_border_color] => C0DEED
                            [profile_sidebar_fill_color] => DDEEF6
                            [profile_text_color] => 333333
                            [profile_use_background_image] => 1
                            [has_extended_profile] => 1
                            [default_profile] => 1
                            [default_profile_image] => 
                            [following] => 
                            [follow_request_sent] => 
                            [notifications] => 
                            [translator_type] => none
                        )

                    [geo] => 
                    [coordinates] => 
                    [place] => 
                    [contributors] => 
                    [retweeted_status] => stdClass Object
                        (
                            [created_at] => Fri Jan 06 14:31:53 +0000 2017
                            [id] => 817378155510034437
                            [id_str] => 817378155510034437
                            [text] => #06Ene Auxiliares fueron orientados sobre la declaración y pago del #ISLR en la Aduana Principal Las Piedras Paragu… https://t.co/knjpwahWlb
                            [truncated] => 1
                            [entities] => stdClass Object
                                (
                                    [hashtags] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [text] => 06Ene
                                                    [indices] => Array
                                                        (
                                                            [0] => 0
                                                            [1] => 6
                                                        )

                                                )

                                            [1] => stdClass Object
                                                (
                                                    [text] => ISLR
                                                    [indices] => Array
                                                        (
                                                            [0] => 68
                                                            [1] => 73
                                                        )

                                                )

                                        )

                                    [symbols] => Array
                                        (
                                        )

                                    [user_mentions] => Array
                                        (
                                        )

                                    [urls] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [url] => https://t.co/knjpwahWlb
                                                    [expanded_url] => https://twitter.com/i/web/status/817378155510034437
                                                    [display_url] => twitter.com/i/web/status/8…
                                                    [indices] => Array
                                                        (
                                                            [0] => 117
                                                            [1] => 140
                                                        )

                                                )

                                        )

                                )

                            [metadata] => stdClass Object
                                (
                                    [iso_language_code] => es
                                    [result_type] => recent
                                )

                            [source] => <a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>
                            [in_reply_to_status_id] => 
                            [in_reply_to_status_id_str] => 
                            [in_reply_to_user_id] => 
                            [in_reply_to_user_id_str] => 
                            [in_reply_to_screen_name] => 
                            [user] => stdClass Object
                                (
                                    [id] => 3166058825
                                    [id_str] => 3166058825
                                    [name] => Aduana Las Piedras
                                    [screen_name] => seniat_falcon
                                    [location] => Punto Fijo, Falcón
                                    [description] => Aduana Principal Las Piedras Paraguaná - Servicio Nacional Integrado de Administración Aduanera y Tributaria (SENIAT)
                                    [url] => http://t.co/f79GiT2vk3
                                    [entities] => stdClass Object
                                        (
                                            [url] => stdClass Object
                                                (
                                                    [urls] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [url] => http://t.co/f79GiT2vk3
                                                                    [expanded_url] => http://www.seniat.gob.ve
                                                                    [display_url] => seniat.gob.ve
                                                                    [indices] => Array
                                                                        (
                                                                            [0] => 0
                                                                            [1] => 22
                                                                        )

                                                                )

                                                        )

                                                )

                                            [description] => stdClass Object
                                                (
                                                    [urls] => Array
                                                        (
                                                        )

                                                )

                                        )

                                    [protected] => 
                                    [followers_count] => 1782
                                    [friends_count] => 1176
                                    [listed_count] => 9
                                    [created_at] => Tue Apr 14 14:06:03 +0000 2015
                                    [favourites_count] => 35
                                    [utc_offset] => -14400
                                    [time_zone] => Caracas
                                    [geo_enabled] => 1
                                    [verified] => 
                                    [statuses_count] => 8975
                                    [lang] => es
                                    [contributors_enabled] => 
                                    [is_translator] => 
                                    [is_translation_enabled] => 
                                    [profile_background_color] => ABB8C2
                                    [profile_background_image_url] => http://pbs.twimg.com/profile_background_images/588004675590303744/elWCke1n.jpg
                                    [profile_background_image_url_https] => https://pbs.twimg.com/profile_background_images/588004675590303744/elWCke1n.jpg
                                    [profile_background_tile] => 
                                    [profile_image_url] => http://pbs.twimg.com/profile_images/631457926897631233/Ci7NyY8F_normal.jpg
                                    [profile_image_url_https] => https://pbs.twimg.com/profile_images/631457926897631233/Ci7NyY8F_normal.jpg
                                    [profile_banner_url] => https://pbs.twimg.com/profile_banners/3166058825/1464105483
                                    [profile_link_color] => DD2E44
                                    [profile_sidebar_border_color] => C0DEED
                                    [profile_sidebar_fill_color] => DDEEF6
                                    [profile_text_color] => 333333
                                    [profile_use_background_image] => 1
                                    [has_extended_profile] => 
                                    [default_profile] => 
                                    [default_profile_image] => 
                                    [following] => 
                                    [follow_request_sent] => 
                                    [notifications] => 
                                    [translator_type] => none
                                )

                            [geo] => 
                            [coordinates] => 
                            [place] => stdClass Object
                                (
                                    [id] => 043383f8b2b79918
                                    [url] => https://api.twitter.com/1.1/geo/id/043383f8b2b79918.json
                                    [place_type] => country
                                    [name] => Venezuela
                                    [full_name] => Venezuela
                                    [country_code] => VE
                                    [country] => Venezuela
                                    [contained_within] => Array
                                        (
                                        )

                                    [bounding_box] => stdClass Object
                                        (
                                            [type] => Polygon
                                            [coordinates] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [0] => -73.3540725
                                                                    [1] => 0.648837
                                                                )

                                                            [1] => Array
                                                                (
                                                                    [0] => -59.8037796
                                                                    [1] => 0.648837
                                                                )

                                                            [2] => Array
                                                                (
                                                                    [0] => -59.8037796
                                                                    [1] => 12.1968022
                                                                )

                                                            [3] => Array
                                                                (
                                                                    [0] => -73.3540725
                                                                    [1] => 12.1968022
                                                                )

                                                        )

                                                )

                                        )

                                    [attributes] => stdClass Object
                                        (
                                        )

                                )

                            [contributors] => 
                            [is_quote_status] => 
                            [retweet_count] => 107
                            [favorite_count] => 4
                            [favorited] => 
                            [retweeted] => 
                            [possibly_sensitive] => 
                            [lang] => es
                        )

                    [is_quote_status] => 
                    [retweet_count] => 107
                    [favorite_count] => 0
                    [favorited] => 
                    [retweeted] => 
                    [lang] => es
                )