PHPackages                             xquik/x-twitter-scraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. xquik/x-twitter-scraper

ActiveLibrary[API Development](/categories/api)

xquik/x-twitter-scraper
=======================

Xquik PHP SDK for tweet search, profile tweets, followers, webhooks, and automation. Not affiliated with X Corp.

v0.10.0(2w ago)0111[6 PRs](https://github.com/Xquik-dev/x-twitter-scraper-php/pulls)Apache-2.0PHPPHP ^8.1CI passing

Since Mar 30Pushed 1w agoCompare

[ Source](https://github.com/Xquik-dev/x-twitter-scraper-php)[ Packagist](https://packagist.org/packages/xquik/x-twitter-scraper)[ Docs](https://docs.xquik.com/sdks/php)[ RSS](/packages/xquik-x-twitter-scraper/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (10)Dependencies (42)Versions (25)Used By (0)

X (Twitter) Scraper PHP SDK: Tweet Search, Timelines, Followers &amp; Posting
=============================================================================

[](#x-twitter-scraper-php-sdk-tweet-search-timelines-followers--posting)

[![OpenSSF Best Practices](https://camo.githubusercontent.com/60e9ff9a4b6024510c6d62160dc7b81ef45b0f32b751cf51e20f4a8c06853609/68747470733a2f2f7777772e626573747072616374696365732e6465762f70726f6a656374732f31333733372f6261646765)](https://www.bestpractices.dev/projects/13737)[![CI](https://github.com/Xquik-dev/x-twitter-scraper-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Xquik-dev/x-twitter-scraper-php/actions/workflows/ci.yml)

Use Xquik's typed Composer SDK as an X API alternative.

Search tweets, read timelines, export followers, and deliver webhooks.

Confirmed methods also support posting and other account actions.

Is This A Twitter API Alternative?
----------------------------------

[](#is-this-a-twitter-api-alternative)

This package calls Xquik's documented REST API.

It does not call or emulate the official X API.

Use it for supported X data and automation workflows from PHP.

Choose the PHP SDK
------------------

[](#choose-the-php-sdk)

Choose this client for Composer applications using typed value objects and retries. Reuse its client inside framework-based or standalone PHP services. Use REST when Composer installation is unavailable.

Documentation
-------------

[](#documentation)

Read the [PHP SDK guide](https://docs.xquik.com/sdks/php) or [API guide](https://docs.xquik.com/api-reference/overview).

Common X Data Tasks
-------------------

[](#common-x-data-tasks)

Use the linked SDK guide for typed method names.

Customer QuestionREST RouteWorkflow NoteHow do I search tweets?`GET /x/tweets/search`Use keyword or advanced operator queries.How do I extract a profile timeline?`GET /x/users/{id}/tweets`Paginate bounded X timeline results.How do I scrape X followers?`GET /x/users/{id}/followers`Use an extraction for complete datasets.How do I scrape X following accounts?`GET /x/users/{id}/following`Use an extraction for complete datasets.How do I read my home timeline?`GET /x/timeline`Approve this private read.How do I read lists or communities?`/x/lists/*`, `/x/communities/*`Use the typed nested services.How do I export large X datasets?`POST /extractions`Poll status, then download results.How do I monitor an account?`POST /monitors`Deliver events through HMAC webhooks.How do I post or reply?`POST /x/tweets`Confirm the account and payload.The [API reference](https://docs.xquik.com/api-reference/overview) lists every route.

The SDK exposes matching typed services and request models.

Installation
------------

[](#installation)

Install the package from Packagist with Composer:

```
composer require xquik/x-twitter-scraper:^0.10.0
```

Verify a Release
----------------

[](#verify-a-release)

Composer users install through Packagist.

Verify Xquik's matching project archive before upgrading:

```
release_tag=vVERSION
archive="x-twitter-scraper-php-$release_tag.zip"

gh release download "$release_tag" \
  --repo Xquik-dev/x-twitter-scraper-php \
  --pattern "$archive"

gh attestation verify "$archive" \
  --repo Xquik-dev/x-twitter-scraper-php \
  --signer-workflow Xquik-dev/x-twitter-scraper-php/.github/workflows/release-provenance.yml \
  --source-ref "refs/tags/$release_tag" \
  --deny-self-hosted-runners
```

Require the Xquik-dev repository and expected release workflow.

GitHub verifies the archive digest, signer identity, and transparency proof.

Usage
-----

[](#usage)

This library uses named parameters to specify optional arguments. Parameters with a default value must be set by name.

```
