1- # TwexAPI PHP SDK: Twitter API for search, followers, DMs & X automation
1+ # TwexAPI PHP SDK: Twitter API for search, followers, profiles & timelines
22
33Use the TwexAPI PHP SDK to search tweets, scrape Twitter followers, and read X profiles, timelines, replies, and threads.
4- Send DMs, search communities, fetch lists, articles, hashtags, cashtags, and global trending tweets with typed request objects.
5- Like, retweet, follow, and post through documented REST routes. It is a Twitter API alternative for Composer apps and agents.
4+ Search communities, fetch lists, articles, hashtags, cashtags, and global trending tweets with typed request objects.
5+ It is a Twitter API alternative for Composer apps and agents.
66
77[ REST API] ( https://docs.twexapi.io ) | [ TypeScript SDK] ( https://github.com/twexapi-dev/x-api-scraper-typescript ) | [ Python SDK] ( https://github.com/twexapi-dev/x-api-scraper-python ) | [ Ruby SDK] ( https://github.com/twexapi-dev/x-api-scraper-ruby ) | [ Java SDK] ( https://github.com/twexapi-dev/x-api-scraper-java ) | [ Kotlin SDK] ( https://github.com/twexapi-dev/x-api-scraper-kotlin ) | [ C# SDK] ( https://github.com/twexapi-dev/x-api-scraper-csharp ) | [ Dashboard] ( https://twexapi.io/dashboard )
88
@@ -20,10 +20,8 @@ Like, retweet, follow, and post through documented REST routes. It is a Twitter
2020| Scrape following accounts | ` POST /v3/twitter/users/following ` | ` $sdk->users->following->list(...) ` |
2121| Read tweet replies | ` POST /twitter/tweets/{tweet_id}/replies/page ` | ` $sdk->tweets->replies->page(...) ` |
2222| Read a tweet thread | ` POST /twitter/tweets/thread_by_id ` | ` $sdk->tweets->thread(...) ` |
23- | Send or read DMs | ` /v3/twitter/send-dm ` , ` /v3/twitter/dm-history ` | ` $sdk->dm ` |
2423| Search communities | ` POST /twitter/community/search ` | ` $sdk->communities->search(...) ` |
2524| Get global trending tweets | ` GET /twitter/global-trending/tweets ` | ` $sdk->trending->tweets(...) ` |
26- | Post or reply | ` POST /twitter/tweets/create ` | ` $sdk->tweets->actions->create(...) ` |
2725
2826## Package & registry trust
2927
@@ -39,7 +37,6 @@ Like, retweet, follow, and post through documented REST routes. It is a Twitter
3937X API Scraper: Speakeasy-ready OpenAPI document for the x-api-scraper TypeScript SDK.
4038
4139The SDK wraps TwexAPI's X/Twitter API surface with bearer-token authentication.
42- Cookie/proxy based endpoints are excluded except tweet actions, follow/unfollow, and v3 DM operations.
4340Paid engagement services, profile mutation, legacy-only operations, and non-v3 follower/following endpoints remain excluded.
4441
4542Not affiliated with X Corp.
@@ -122,8 +119,6 @@ var_dump($response);
122119
123120Get an API key from the [ TwexAPI dashboard] ( https://twexapi.io/dashboard ) . Pass it to ` setSecurity() ` , or set ` X_API_SCRAPER_KEY ` .
124121
125- Write actions (tweet, follow, like, DM send) also need a Twitter cookie or ` auth_token ` on the request. Pass them on the operation input.
126-
127122Keep API keys out of source code, URLs, and logs.
128123<!-- End SDK Example Usage [usage] -->
129124
@@ -205,7 +200,6 @@ if ($response->advancedSearchCursorResponse !== null) {
205200### [ Dm] ( docs/sdks/dm/README.md )
206201
207202* [ status] ( docs/sdks/dm/README.md#status ) - Check DM Permissions
208- * [ send] ( docs/sdks/dm/README.md#send ) - Send DM
209203* [ history] ( docs/sdks/dm/README.md#history ) - Get DM History
210204* [ media] ( docs/sdks/dm/README.md#media ) - Get DM Media
211205* [ conversations] ( docs/sdks/dm/README.md#conversations ) - Get Conversations
@@ -256,7 +250,6 @@ if ($response->advancedSearchCursorResponse !== null) {
256250* [ createThread] ( docs/sdks/actions/README.md#createthread ) - Create a Tweet Thread
257251* [ create] ( docs/sdks/actions/README.md#create ) - Create a Tweet or Reply
258252* [ quote] ( docs/sdks/actions/README.md#quote ) - Create a Quote Tweet
259- * [ createWithoutCookie] ( docs/sdks/actions/README.md#createwithoutcookie ) - Post Tweet (Auto Cookie)
260253* [ bookmark] ( docs/sdks/actions/README.md#bookmark ) - Bookmark a Tweet
261254* [ unbookmark] ( docs/sdks/actions/README.md#unbookmark ) - Delete Bookmark
262255* [ deleteBatch] ( docs/sdks/actions/README.md#deletebatch ) - Delete One or More Tweets
0 commit comments