Download the PHP package aporat/scrapecreators-php without Composer

On this page you can find all versions of the php package aporat/scrapecreators-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scrapecreators-php

Scrape Creators PHP

A PHP client for the Scrape Creators API: a typed method for every documented endpoint across TikTok, Instagram, YouTube, X, Reddit, LinkedIn, Facebook, GitHub, Threads, Bluesky, Spotify and twenty more platforms, control of the provider-side cache that turns repeat lookups into zero-credit calls, and exceptions that tell a missing profile from a restricted one from an outage, including the HTTP 200 placeholders the API uses for some of them. Works in any PHP project; a service provider is included for Laravel.

Latest Stable Version Downloads codecov GitHub Actions License

Not affiliated with Scrape Creators.


✨ Features


🛠 Installation

Requires PHP 8.4+ and Guzzle 7.9 or 8. Get an API key at app.scrapecreators.com.


📚 Usage

Platforms

One accessor per platform, one method per endpoint. Method names follow the path: /v1/tiktok/video/transcript is $client->tiktok()->videoTranscript($url), /v3/tiktok/profile/videos is profileVideos(), /v1/account/get-api-usage is $client->account()->apiUsage().

Accessor Platform Accessor Platform
tiktok() TikTok, TikTok Shop, TikTok Ad Library twitch() Twitch
instagram() Instagram appleMusic() Apple Music
youtube() YouTube spotify() Spotify
facebook() Facebook, Marketplace, Events, Ad Library soundCloud() SoundCloud
twitter() X / Twitter kwai() Kwai
reddit() Reddit kick() Kick
linkedin() LinkedIn, LinkedIn Ad Library snapchat() Snapchat
github() GitHub telegram() Telegram
google() Google search, Google Ad Library cosmos() Cosmos
threads() Threads rumble() Rumble
bluesky() Bluesky creatorTools() find social profiles, find creator emails, detect age and gender
truthSocial() Truth Social linkInBio() Linktree, Komi, Pillar, Linkbio, Linkme
pinterest() Pinterest amazon() Amazon shop
account() credit balance, usage

The three endpoints that also accept a JSON body have a ...Post() twin taking the body as an array: facebook()->adLibrarySearchAdsPost([...]), facebook()->adLibraryCompanyAdsPost([...]), reddit()->postCommentsPost([...]).

Any endpoint

Booleans are sent as true / false, nulls are dropped, enums are sent by value. cacheable says whether the endpoint takes cache_max_age, so the client's default applies.

Responses

The provider-side cache

Thirty-six endpoints take cache_max_age (1d, 3d, 7d, 14d, 30d): when Scrape Creators holds a scrape at least that fresh it returns it for 0 credits, marked cached: true with cached_at. Set a default once and override per call:

A cached profile carries whatever signed CDN image URLs the scrape saw, and networks expire those within days. Keep the default short if you download pictures.

Errors

How responses map:

What Scrape Creators sends Exception
400 InvalidRequestException
401 AuthenticationException (also thrown before any request when the key is empty)
402 InsufficientCreditsException
403, or any envelope with age_restricted: true or a message saying "restricted" or "private" RestrictedException
404, any other 4xx, or a 200 with error: "not_found", account_deactivated: true, userId: null or a 4xx errorStatus NotFoundException
429 RateLimitException
5xx, a 200 with a 5xx errorStatus, or no response at all UnavailableException
a body that is not a JSON object InvalidResponseException
success: false with anything else ScrapeCreatorsException

🧱 Laravel

The service provider is auto-discovered and binds Aporat\ScrapeCreators\Client as a singleton. Publish the config and set the key:

In tests, bind a client built on a Guzzle MockHandler, or $this->app->instance(Client::class, ...).


🔁 Keeping up with the API

spec/openapi.json is a snapshot of docs.scrapecreators.com/openapi.json. src/Resources is generated from it:

CI fails when the committed resources differ from what the snapshot produces. Until a new endpoint lands here, call it with get() / post().


📄 License

MIT. See LICENSE.


All versions of scrapecreators-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-json Version *
guzzlehttp/guzzle Version ^7.9 || ^8.0
psr/http-message Version ^1.1 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aporat/scrapecreators-php contains the following files

Loading the files please wait ...