Include a Movie / TVSeries JSON-LD sameAs IMDb URL, an IMDb link, or explicit IMDb metadata. Use data-feeldb-mount on your reserved target.
02 /
Variants that fit your page
Five real widgets, one title. Switch light, dark or system theme. Previews load only when visible and use our own origin-bound house key.
Chips · compact emotion badges
Bar · proportional emotion strip
Card · stacked details
Poster · beneath the poster
Arc · emotional journey chart
Reserve space before the script loads: chips 132px, bar 56px (112px in containers ≤480px), card 244px, poster 180px. The optional arc strip adds 40px. The arc chart needs an inline-size container at least 240px wide and height: max(316px, calc(167.68px + 26cqi)), with height: 352px at container widths ≤480px for wrapped legend rows; see the Arc chart example.
Clicking anywhere on a rendered widget opens the film’s FeelDB page in a new tab.
03 /
Copy a quickstart
Replace YOUR_PUBLISHABLE_KEY with a pk issued for your website origin. Browser examples never contain a secret key.
import { FeelDB } from '@feeldb/emotions';
const client = new FeelDB({
publishableKey: 'YOUR_PUBLISHABLE_KEY',
baseUrl: 'https://feeldb.com',
lang: 'en'
});
const title = await client.emotions('tt0133093');
// Compact payload: t, s, e, u, x. Keep the FeelDB attribution link.
console.log(title);
php
require __DIR__.'/feeldb-php/autoload.php';
use FeelDB\Emotions\Badge;
use FeelDB\Emotions\Client;
// Server only: FEELDB_API_KEY holds your secret key.
$client = new Client(getenv('FEELDB_API_KEY'), [
'base_url' => 'https://feeldb.com', 'lang' => 'en',
]);
$title = $client->emotions('tt0133093');
if ($title !== null) {
echo Badge::html($title, ['lang' => 'en', 'theme' => 'auto']);
}
// Optional paid arcs entitlement, server only.
$arc = $client->arc('tt0133093');
curl
# Server only: FEELDB_API_KEY holds your secret key
curl -H "Authorization: Bearer $FEELDB_API_KEY" \
'https://feeldb.com/api/v1/titles/tt0133093/emotions?lang=en'
# Server only: up to 100 IDs per batch
curl -X POST 'https://feeldb.com/api/v1/emotions/batch' \
-H "Authorization: Bearer $FEELDB_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"imdb_ids":["tt0133093"],"lang":"en"}'
JavaScript supports pk in browsers and sk on servers. PHP uses a server secret and can render Badge::html(). Download the 1.1.0 archives and verify SHA256SUMS; registry publication is pending.
Every key gets 10,000 lookups a day, emotions and arc charts included. Up to 3 keys per account. Need more volume or a server-side secret key? Write to us below.
A missing IMDb ID or mount target, network failure, script error or taxonomy mismatch sends a small best-effort report to our failure log. Reports carry a publishable key and optional title ID, never a secret. Partner admins can inspect aggregated failures. A failed report never interrupts the host page.
Handle stable error codes: 401 key_required / key_revoked, 403 origin_not_allowed / addon_required, 402 balance_exhausted and 429 quota_exceeded. Respect Retry-After; never retry in a tight loop.
Not every title has enough data. Widgets show an honest empty state; unknown, hidden and malformed titles share the same 404. Requests without pk receive uniform 401 when keyless lookup is retired.
06 /
Keep the attribution
The widgets and PHP badge include a visible FeelDB link. Keep that link visible and followable. With a custom interface, use the compact response’s u path on the API origin.
Yes. A pk is intended for browser markup and is bound to your registered website origins. Keep sk secret and server-side.
Can I use title lookups without a key?+
Get a free publishable key above for browser lookups, widgets and arc charts. Taxonomy, icons and OpenAPI remain public. For a server-side secret key or higher limits, use the request form below.
What does the drop-in script detect?+
It reads IMDb metadata, Movie / TVSeries JSON-LD or IMDb links. Reserve a target with data-feeldb-mount for predictable placement. Explicit elements take priority over auto-mount.
Which SDK should I use?+
JavaScript supports pk in browsers and sk on servers. PHP uses a server secret and can render Badge::html(). Download the 1.1.0 archives and verify SHA256SUMS; registry publication is pending.