POST

API health

24h health
Normal
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

Last 24 hours

Last 30 days

Get the clips cut from a Twitch channel. Each clip has title, views, length, game and the viewer who clipped it. period picks the past day, week (the default), month or all time. The window may not hold every clip.

Send POST https://api.everyinfra.com/api/v1/social with platform set to twitch and action set to clips. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Twitch Clips endpoint (twitch/clips).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to twitch and action to clips, and put the parameters inside params.
- Required parameters:
  - username: Twitch channel login short name for profile or clips, optionally prefixed with @, without parsing full twitch.tv URLs.
- Optional parameters:
  - period: Time window for clips: LAST_DAY for the past day, LAST_WEEK for the past week (default), LAST_MONTH for the past month, or ALL_TIME for unrestricted.
  - limit: The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. (default: 10)
- Returns a list of records. Main fields of each record: id, title, url, view_count, duration_seconds, duration_sec, game, channel_username, channel_name, curator_username, curator_name, thumbnail_url; 13 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=twitch.
- Example request body:
{
  "platform": "twitch",
  "action": "clips",
  "params": {
    "username": "shroud"
  }
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYestwitchPlatform identifier, fixed value.
actionbodystringYesclipsCapability identifier, fixed value.
usernamebody.paramsstringYes-Twitch channel login short name for profile or clips, optionally prefixed with @, without parsing full twitch.tv URLs.
periodbody.paramsstringNo-Time window for clips: LAST_DAY for the past day, LAST_WEEK for the past week (default), LAST_MONTH for the past month, or ALL_TIME for unrestricted. Values are case-insensitive, and invalid values fall back to LAST_WEEK.
limitbody.paramsinteger (1–30)No10The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "twitch",
  "action": "clips",
  "params": {
    "username": "shroud"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured September 26, 2026 at 08:56 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "platform": "twitch",  "action": "clips",  "results": [    {      "id": "•••",      "title": "wtf !!",      "url": "https://www.twitch.tv/shroud/clip/SeductiveFurryPotCmonBruh--v2IUlxXQxpw8YUZ",      "view_count": 2230,      "duration_seconds": 39,      "game": "Active Matter",      "channel_username": "shroud",      "channel_name": "shroud",      "curator_username": "•••",      "curator_name": "Taisseeer",      "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/f4e752a4-c4c1-42b9-a4a1-a7a28106a717/landscape/thumb/thumb-0000000000-1920x1080.jpg",      "created_at": "2026-09-19T22:08:27+00:00",      "platform": "twitch"    },    {      "id": "•••",      "title": "Pilot Kill",      "url": "https://www.twitch.tv/shroud/clip/BreakableAssiduousBulgogiUnSane-oAR-wxU-JuRMLxdl",      "view_count": 1042,      "duration_seconds": 21,      "game": "WARDOGS",      "channel_username": "shroud",      "channel_name": "shroud",      "curator_username": "•••",      "curator_name": "primo11119",      "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/f45445b1-9e8c-4cfd-88b0-d6cbe5d00b61/landscape/thumb/thumb-0000000000-1920x1080.jpg",      "created_at": "2026-09-21T18:00:52+00:00",      "platform": "twitch"    }  ],  "count": 10,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
titleTitle. null when the platform has no titles (for example text-only posts).
urlLink to the record on the platform.
view_countViews or plays. null means not disclosed, not 0.
duration_secondsDuration in seconds. null for content that is not video or audio.
duration_secKeeps the platform's own meaning
gameKeeps the platform's own meaning
channel_usernameKeeps the platform's own meaning
channel_nameKeeps the platform's own meaning
curator_usernameKeeps the platform's own meaning
curator_nameKeeps the platform's own meaning
thumbnail_urlThumbnail link, lower resolution than image_url.
created_atCreation time, same format as posted_at.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Official references

#

Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.

  • Twitch: Clip Creators, Source Channels, and View Counts ↗

    Twitch's official documentation for clips separates broadcaster from creator, defines view_count as the clip view count, and defines duration in seconds. This section only verifies terminology and does not replicate official start/end dates, cursors, or clip creation parameters.

    Checked 2026-09-04

Google Analytics needs consent. Privacy