> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/docs/api/v1/dailymotion/videos/videoid/get>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/api/v1/dailymotion/videos/videoid/get.mdx>

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` and `/v2/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** <https://www.socialfetch.dev/openapi.json>

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 910 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# Get Dailymotion video (https://www.socialfetch.dev/docs/api/v1/dailymotion/videos/videoid/get)

## Summary

Get a Dailymotion video with title, counts, owner and thumbnails.

**Tags:** `Dailymotion`

## HTTP

- **Method:** GET
- **Path:** `/v1/dailymotion/videos/{videoId}`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.dailymotion.getVideo({ videoId: "x9hffw2" })`
- **Accepted identifiers:** `videoId` (path)
- **Pagination:** none
- **Business outcome field:** `data.lookupStatus` with values `found`, `not_found`

## Credits

- **Base:** 1 credit per successful lookup.
- **Maximum on success (200):** 1 credit.
- **Failed requests (`lookup_failed`, `503`):** not charged.
- **Authoritative field:** `meta.creditsCharged`.

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `videoId` (path)

- **Required:** yes
- **Constraints:** type `string`; pattern: `^x[0-9a-z]{1,11}$`
- **Description:** Dailymotion video id, e.g. `x9hffw2`. A video URL such as https://www.dailymotion.com/video/x9hffw2 is also accepted.

## Responses (status codes)

- **200**: A Dailymotion video.
- **400**: Invalid request
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed.
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

A Dailymotion video.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **lookupStatus** (required) — type `string`; enum: found, not_found. Whether the item was found. A deleted or unknown id is `not_found`. The lists of a deleted user (videos, followers) and the `source=api` related list of a deleted video stay available on Dailymotion, so they are `found` while the user or video itself is `not_found`.
  - **video** (required) — type `object`; nullable. The video when found; otherwise null.
    - **id** (required) — type `string`. Video id, e.g. `x9hffw2`.
    - **url** (required) — type `string`; nullable. Video page URL.
    - **shortUrl** (required) — type `string`; nullable. Short link (dai.ly).
    - **title** (required) — type `string`; nullable. Title.
    - **description** (required) — type `string`; nullable. Description text. It can contain `<br>` or `<br />` line breaks and a literal `\r`; strip the markup if you need plain text.
    - **tags** (required) — type `array`. Tags the owner set.
      - _items:_
        - type `string`
    - **language** (required) — type `string`; nullable. Language code the owner set.
    - **country** (required) — type `string`; nullable. Country code the owner set.
    - **categoryId** (required) — type `string`; nullable. Category id, as listed by the channels endpoint.
    - **durationSeconds** (required) — type `integer`; minimum: 0; nullable. Length in seconds. 0 on live videos and placeholders.
    - **createdAt** (required) — type `string`; nullable. When the video was created. Null where Dailymotion holds a placeholder date. `sort=old` can list these rows ahead of the oldest real dates; `uploadedAt` is still filled.
    - **uploadedAt** (required) — type `string`; nullable. When the file was uploaded.
    - **explicit** (required) — type `boolean`; nullable. Whether the video is marked explicit.
    - **madeForKids** (required) — type `boolean`; nullable. Whether the owner marked the video as made for kids.
    - **allowEmbed** (required) — type `boolean`; nullable. Whether the video may be embedded elsewhere.
    - **geoblocking** (required) — type `object`; nullable. Where the video is blocked or allowed.
      - **mode** (required) — type `string`; enum: allow, deny. `allow`: the video is shown everywhere, or only in `countries` when any are listed. `deny`: it is blocked in `countries`.
      - **countries** (required) — type `array`. Lower-case two-letter country codes the rule names.
        - _items:_
          - type `string`
    - **partner** (required) — type `boolean`; nullable. Whether the owner is a partner.
    - **verified** (required) — type `boolean`; nullable. Whether the owner is verified.
    - **alteredWithAi** (required) — type `boolean`; nullable. Whether the owner flagged the video as altered with AI.
    - **status** (required) — type `string`; nullable. Publication status, `published` on a public video.
    - **updatedAt** (required) — type `string`; nullable. When the record was last changed.
    - **thumbnails** (required) — type `object`. The same image at several heights.
      - **original** (required) — type `string`; nullable. Image at its original size.
      - **h60** (required) — type `string`; nullable. 60 pixels high.
      - **h120** (required) — type `string`; nullable. 120 pixels high.
      - **h180** (required) — type `string`; nullable. 180 pixels high.
      - **h240** (required) — type `string`; nullable. 240 pixels high.
      - **h360** (required) — type `string`; nullable. 360 pixels high.
      - **h480** (required) — type `string`; nullable. 480 pixels high.
      - **h720** (required) — type `string`; nullable. 720 pixels high.
      - **h1080** (required) — type `string`; nullable. 1080 pixels high.
    - **firstFrames** (required) — type `object`. The first frame of the video at several heights.
      - **h60** (required) — type `string`; nullable. First frame, 60 pixels high.
      - **h120** (required) — type `string`; nullable. First frame, 120 pixels high.
      - **h180** (required) — type `string`; nullable. First frame, 180 pixels high.
      - **h240** (required) — type `string`; nullable. First frame, 240 pixels high.
      - **h360** (required) — type `string`; nullable. First frame, 360 pixels high.
      - **h480** (required) — type `string`; nullable. First frame, 480 pixels high.
      - **h720** (required) — type `string`; nullable. First frame, 720 pixels high.
      - **h1080** (required) — type `string`; nullable. First frame, 1080 pixels high.
    - **storyboard** (required) — type `object`. Preview images for scrubbing.
      - **spriteUrl** (required) — type `string`; nullable. Sprite sheet of thumbnails along the video.
      - **sprite320Url** (required) — type `string`; nullable. The same sprite sheet at 320 pixels wide.
      - **filmstripUrl** (required) — type `string`; nullable. Filmstrip of 60-pixel frames.
      - **seekerUrl** (required) — type `string`; nullable. Seek-bar preview image.
    - **embed** (required) — type `object`. Embed code.
      - **url** (required) — type `string`; nullable. Player URL for an iframe.
      - **html** (required) — type `string`; nullable. Ready-made iframe markup.
    - **dimensions** (required) — type `object`. Frame size.
      - **width** (required) — type `integer`; minimum: 0; nullable. Width in pixels.
      - **height** (required) — type `integer`; minimum: 0; nullable. Height in pixels.
      - **aspectRatio** (required) — type `number`; nullable. Width divided by height. Below 1 is a vertical video.
    - **metrics** (required) — type `object`. Counts for the video.
      - **views** (required) — type `integer`; minimum: 0; nullable. Views over the video's life.
      - **viewsLastHour** (required) — type `integer`; minimum: 0; nullable. Views in the last hour.
      - **viewsLastDay** (required) — type `integer`; minimum: 0; nullable. Views in the last day.
      - **viewsLastWeek** (required) — type `integer`; minimum: 0; nullable. Views in the last week.
      - **viewsLastMonth** (required) — type `integer`; minimum: 0; nullable. Views in the last month.
      - **likes** (required) — type `integer`; minimum: 0; nullable. Likes. 0 on most videos.
    - **hashtags** (required) — type `array`. Hashtags in the description, with the leading #.
      - _items:_
        - type `string`
    - **aiSubtitleLanguages** (required) — type `array`. Languages Dailymotion made subtitles for with AI.
      - _items:_
        - type `string`
    - **coordinates** (required) — type `object`; nullable. Where the video was shot, when the owner set it.
      - **longitude** (required) — type `number`. Longitude.
      - **latitude** (required) — type `number`. Latitude.
    - **conversationOpener** (required) — type `object`; nullable. Comment prompt the owner set, when there is one.
      - **text** (required) — type `string`. The prompt text.
      - **createdAt** (required) — type `string`; nullable. When it was written.
      - **modifiedAt** (required) — type `string`; nullable. When it was last changed.
    - **mediaType** (required) — type `string`; nullable. `video` or similar.
    - **availableFormats** (required) — type `array`. Quality tiers on offer, e.g. `sd`, `hq`.
      - _items:_
        - type `string`
    - **live** (required) — type `object`. Live-stream fields. Null on an on-demand video.
      - **isLive** (required) — type `boolean`. Whether this is a live video (not on demand).
      - **onAir** (required) — type `boolean`; nullable. Whether the stream is on air now.
      - **publicStatus** (required) — type `string`; nullable. State of a live video: `on_air`, `unprogrammed`, `scheduled_not_started` and similar.
      - **recordStatus** (required) — type `string`; nullable. State of the recording of a live video.
      - **audience** (required) — type `integer`; minimum: 0; nullable. Viewers now. 0 on the on-air streams sampled.
      - **audienceTotal** (required) — type `integer`; minimum: 0; nullable. Viewers over the whole stream.
      - **startAt** (required) — type `string`; nullable. When the live video starts.
      - **endAt** (required) — type `string`; nullable. When the live video ends.
      - **airingAt** (required) — type `string`; nullable. When the live video is scheduled to air.
      - **recurrence** (required) — type `string`; nullable. How often a scheduled live video repeats.
      - **audioBitrate** (required) — type `integer`; minimum: 0; nullable. Audio bitrate of the stream.
      - **autoRecord** (required) — type `boolean`; nullable. Whether the live video is recorded automatically.
    - **availability** (required) — type `object`. Visibility and permissions.
      - **isPrivate** (required) — type `boolean`; nullable. Whether the video is private.
      - **isPublished** (required) — type `boolean`; nullable. Whether the video is published.
      - **passwordProtected** (required) — type `boolean`; nullable. Whether a password is needed to watch.
      - **allowedInPlaylists** (required) — type `boolean`; nullable. Whether the video can be added to playlists.
      - **advertisingInstreamBlocked** (required) — type `boolean`; nullable. Whether in-stream ads are blocked.
      - **allowContentStitching** (required) — type `boolean`; nullable. Whether others may stitch the video into theirs.
    - **owner** (required) — type `object`; nullable. A Dailymotion user.
      - **id** (required) — type `string`. User id, e.g. `x2znl3e`.
      - **username** (required) — type `string`; nullable. Username.
      - **screenName** (required) — type `string`; nullable. Display name.
      - **url** (required) — type `string`; nullable. Profile page URL.
      - **description** (required) — type `string`; nullable. Profile description text. It can contain `<br>` or `<br />` line breaks; strip the markup if you need plain text.
      - **status** (required) — type `string`; nullable. Account status, `active` on a public user.
      - **country** (required) — type `string`; nullable. Country code the user set.
      - **city** (required) — type `string`; nullable. City the user set.
      - **language** (required) — type `string`; nullable. Language code the user set.
      - **createdAt** (required) — type `string`; nullable. When the account was created.
      - **verified** (required) — type `boolean`; nullable. Whether the user is verified.
      - **partner** (required) — type `boolean`; nullable. Whether the user is a Dailymotion partner.
      - **counts** (required) — type `object`. Counts for the user.
      - **links** (required) — type `object`. Links the user lists on the profile.
      - **avatars** (required) — type `object`. The profile picture at several sizes.
      - **cover** (required) — type `object`. The profile cover image at several sizes.
    - **channel** (required) — type `object`; nullable. A Dailymotion category.
      - **id** (required) — type `string`. Category id, e.g. `music`.
      - **name** (required) — type `string`; nullable. Category name, e.g. `Music`.
      - **slug** (required) — type `string`; nullable. URL slug on the site, which can differ from the id.
      - **description** (required) — type `string`; nullable. Category description text. It can contain `<br>` or `<br />` line breaks; strip the markup if you need plain text.
      - **createdAt** (required) — type `string`; nullable. When the category was created.
      - **updatedAt** (required) — type `string`; nullable. When the category was last changed.
    - **extras** (required) — type `object`. Extra video fields. Empty when `status` is `unavailable`.
      - **status** (required) — type `string`; enum: included, not_offered, unavailable. `included`: the fields below are present. `not_offered`: Dailymotion has none for this item (a live stream), so they are empty. `unavailable`: they are temporarily unavailable and empty; every other field of the video is complete, and a later request usually fills them.
      - **detectedLanguage** (required) — type `string`; nullable. Language Dailymotion detected in the audio, e.g. `en`.
      - **categories** (required) — type `array`. Content categories Dailymotion assigned.
        - _items:_
      - **iabCategories** (required) — type `array`. IAB advertising categories at 70% confidence or more, e.g. `iab-326`.
        - _items:_
          - type `string`
      - **moderationReviewedAt** (required) — type `string`; nullable. When Dailymotion's moderators last reviewed the video.
      - **suggestive** (required) — type `boolean`; nullable. Whether Dailymotion marks the video as suggestive.
      - **canDisplayAds** (required) — type `boolean`; nullable. Whether Dailymotion may show ads on the video.
      - **bestAvailableQuality** (required) — type `string`; nullable. Best quality offered, e.g. `HD1080P`.
      - **commentCount** (required) — type `integer`; minimum: 0; nullable. Comments on the video as Dailymotion counts them, replies included. The comments endpoint's `total` counts top-level comments only, so it is lower when there are replies.
      - **hasTranscript** (required) — type `boolean`; nullable. Whether a transcript exists. Read it with the transcript endpoint.
      - **chapters** (required) — type `array`. Chapters. Empty on every video sampled.
        - _items:_
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.

### Example JSON (found)

```json
{
  "data": {
    "lookupStatus": "found",
    "video": {
      "id": "x9hffw2",
      "url": "https://www.dailymotion.com/video/x9hffw2",
      "shortUrl": "https://dai.ly/x9hffw2",
      "title": "The Senator's Son Full Movie",
      "description": "The Senators Son Full Movie",
      "tags": [
        "the senators son full movie"
      ],
      "language": "en",
      "country": "US",
      "categoryId": "shortfilms",
      "durationSeconds": 5192,
      "createdAt": "2025-04-06T16:36:34.000Z",
      "uploadedAt": "2025-04-06T16:22:38.000Z",
      "explicit": false,
      "madeForKids": false,
      "allowEmbed": true,
      "geoblocking": {
        "mode": "allow",
        "countries": []
      },
      "partner": true,
      "verified": false,
      "alteredWithAi": false,
      "status": "published",
      "updatedAt": "2026-06-25T13:55:10.000Z",
      "thumbnails": {
        "original": "https://s1.dmcdn.net/v/YBdCo1gV-TL9YLyoN",
        "h60": "https://s2.dmcdn.net/v/YBdCo1gV-TL8voZuC/x60",
        "h120": "https://s2.dmcdn.net/v/YBdCo1gV-TLF8Swiq/x120",
        "h180": "https://s1.dmcdn.net/v/YBdCo1gV-TLRQp1un/x180",
        "h240": "https://s2.dmcdn.net/v/YBdCo1gV-TL9dWqgB/x240",
        "h360": "https://s1.dmcdn.net/v/YBdCo1gV-TLdnRTpw/x360",
        "h480": "https://s2.dmcdn.net/v/YBdCo1gV-TLk6STNe/x480",
        "h720": "https://s2.dmcdn.net/v/YBdCo1gV-TLTq-onw/x720",
        "h1080": "https://s1.dmcdn.net/v/YBdCo1gV-TLhNI1PD/x1080"
      },
      "firstFrames": {
        "h60": "https://s1.dmcdn.net/1/YBdCo1gV-TLtAUPfd/108x60f",
        "h120": "https://s2.dmcdn.net/1/YBdCo1gV-TLNY9h3F/216x120f",
        "h180": "https://s1.dmcdn.net/1/YBdCo1gV-TLFDI_4T/320x180f",
        "h240": "https://s2.dmcdn.net/1/YBdCo1gV-TLDoipG5/428x240f",
        "h360": "https://s2.dmcdn.net/1/YBdCo1gV-TL_ncdKe/640x360f",
        "h480": "https://s2.dmcdn.net/1/YBdCo1gV-TLhgGO97/856x480f",
        "h720": "https://s2.dmcdn.net/1/YBdCo1gV-TLtt9j2f/1280x720f",
        "h1080": "https://s2.dmcdn.net/1/YBdCo1gV-TLiuTdHz/1920x1080f"
      },
      "storyboard": {
        "spriteUrl": "https://s2.dmcdn.net/s/YBdCo1gV-TLsBcvES/320x",
        "sprite320Url": "https://s2.dmcdn.net/s/YBdCo1gV-TLsBcvES/320x",
        "filmstripUrl": "https://s2.dmcdn.net/k/YBdCo1gV-TL2EqCjr",
        "seekerUrl": "https://s1.dmcdn.net/n/YBdCo1gV-TLNY3LH2"
      },
      "embed": {
        "url": "https://geo.dailymotion.com/player.html?video=x9hffw2",
        "html": "<iframe src=\"https://geo.dailymotion.com/player.html?video=x9hffw2\" allow=\"autoplay; fullscreen; picture-in-picture; web-share\" frameborder=\"0\" width=\"640\" height=\"360\"></iframe>"
      },
      "dimensions": {
        "width": 480,
        "height": 848,
        "aspectRatio": 0.566038
      },
      "metrics": {
        "views": 668853,
        "viewsLastHour": 1,
        "viewsLastDay": 1,
        "viewsLastWeek": 4,
        "viewsLastMonth": 54,
        "likes": 1024
      },
      "hashtags": [],
      "aiSubtitleLanguages": [],
      "coordinates": null,
      "conversationOpener": null,
      "mediaType": "video",
      "availableFormats": [
        "sd"
      ],
      "live": {
        "isLive": false,
        "onAir": false,
        "publicStatus": null,
        "recordStatus": null,
        "audience": null,
        "audienceTotal": null,
        "startAt": null,
        "endAt": null,
        "airingAt": null,
        "recurrence": null,
        "audioBitrate": null,
        "autoRecord": false
      },
      "availability": {
        "isPrivate": false,
        "isPublished": true,
        "passwordProtected": false,
        "allowedInPlaylists": true,
        "advertisingInstreamBlocked": false,
        "allowContentStitching": false
      },
      "owner": {
        "id": "x2znl3e",
        "username": "abinashkathariya",
        "screenName": "Abinash Kathariya",
        "url": "https://www.dailymotion.com/abinashkathariya",
        "description": "TV Shows",
        "status": "active",
        "country": "GB",
        "city": null,
        "language": "en",
        "createdAt": "2024-05-24T03:42:47.000Z",
        "verified": false,
        "partner": true,
        "counts": {
          "views": 1160041,
          "videos": 55,
          "playlists": 0,
          "followers": 2027,
          "following": 0,
          "reposts": 0,
          "communityMembers": 0,
          "communityMemberships": 0,
          "children": 0
        },
        "links": {
          "website": null,
          "facebook": null,
          "twitter": null,
          "instagram": null,
          "pinterest": null
        },
        "avatars": {
          "w25": "https://s1.dmcdn.net/u/AnnMA1gxNQuVJLPrX/25x25",
          "w60": "https://s1.dmcdn.net/u/AnnMA1gxNQuL8ZbAn/60x60",
          "w80": "https://s1.dmcdn.net/u/AnnMA1gxNQutHKJtH/80x80",
          "w120": "https://s2.dmcdn.net/u/AnnMA1gxNQuu4LZx0/120x120",
          "w190": "https://s1.dmcdn.net/u/AnnMA1gxNQuhwnXa-/190x190",
          "w240": "https://s1.dmcdn.net/u/AnnMA1gxNQu9BQkew/240x240",
          "w360": "https://s2.dmcdn.net/u/AnnMA1gxNQu3rMG6m/360x360",
          "w480": "https://s2.dmcdn.net/u/AnnMA1gxNQu-WF7U7/480x480",
          "w720": "https://s2.dmcdn.net/u/AnnMA1gxNQuFXsSuq/720x720"
        },
        "cover": {
          "url": null,
          "w100": null,
          "w150": null,
          "w200": null,
          "w250": null
        }
      },
      "channel": {
        "id": "shortfilms",
        "name": "Movies",
        "slug": "movies",
        "description": "Shows, movies, and trailers from Hulu, The WB, Fox, HBO and more. Catch some of the hottest shows shortly after they air, plus the latest in blockbusters and independent film.",
        "createdAt": "2011-09-27T08:19:22.000Z",
        "updatedAt": "2014-12-01T10:40:54.000Z"
      },
      "extras": {
        "status": "included",
        "detectedLanguage": "en",
        "categories": [
          {
            "name": "MOVIES",
            "slug": "content-movies"
          }
        ],
        "iabCategories": [
          "iab-326"
        ],
        "moderationReviewedAt": "2025-04-09T21:03:58.000Z",
        "suggestive": false,
        "canDisplayAds": false,
        "bestAvailableQuality": "HQ480P",
        "commentCount": 73,
        "hasTranscript": false,
        "chapters": []
      }
    }
  },
  "meta": {
    "requestId": "req_ce763c85-30a1-46a6-a665-a38f51bcf682",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid request **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed. **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.dailymotion.getVideo({
  videoId: "x9hffw2",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/dailymotion/videos/x9hffw2",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/dailymotion/videos/x9hffw2" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/dailymotion/videos/x9hffw2",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```