Skip to content
Client for Yandex Rich Content API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Yandex Rich Content API

Client for Yandex Rich Content API

The Rich Content API provides access to the Yandex content system, containing tens of billions of pages. For any of them, you can receive the snippet, title and URL in canonical form, as well as the complete text and also a list of links to the images and videos they contain. This API is useful for services whose users exchange links. It allows them to see a preview of any web page without leaving the service.

API reference


Package version corresponds to the version of the API.


Use composer:

composer require s37dap42x/yandex-rich-content-api

or manually add into your composer.json:

  "require": {
    "s37dap42x/yandex-rich-content-api": "1.1.*"

and then use the update command: composer update


Get your own api key

use Yandex\RichContentAPI\RichContent;

$key = "rca.1.1...";
$url = "";

try {
    $yandex = new RichContent($key);

    // Set optional parameters
    $yandex->setOptions(['img' => 'no', 'content' => 'full']);

    $data = $yandex->getContent($url);
    var_dump($data); // object
} catch (Exception $e) {
    echo $e->getMessage();



You can’t perform that action at this time.