API Reference

Unified API for extracting media from 15+ platforms.

Single Endpoint

One endpoint, auto-detect platform

Rate Limited

Guest: 6/5m, Signed-in: 15/2m, Premium: bypass

15+ Platforms

Native + yt-dlp + gallery-dl

Base URL

https://re-fetchtium.up.railway.app
POST/api/v1/web/extract

Extract media information from any supported URL. Platform is auto-detected.

⏱ Extract Rate Limits

  • • Guest: 6 requests / 5 minutes
  • • Logged-in non-premium: 15 requests / 2 minutes
  • • Premium: effectively bypasses the extract limiter

🍪 Cookie Support

For private content, pass cookies in the cookie field using format: name=value; name2=value2

Request

request.json
curl -X POST https://re-fetchtium.up.railway.app/api/v1/web/extract \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-dwa_your_api_key" \
  -d '{"url": "https://instagram.com/p/ABC123/"}'

Parameters

FieldTypeRequiredDescription
urlstringYesMedia URL to extract
cookiestringNoCookie string for private content
Format: sessionid=abc; csrftoken=xyz

Response

response.json
{
  "success": true,
  "data": {
    "platform": "instagram",
    "contentType": "video",
    "title": "Video Title Here",
    "author": "Display Name",
    "authorUsername": "username",
    "description": "Post caption text...",
    "stats": {
      "views": 37344,
      "likes": 11234,
      "comments": 256
    },
    "items": [
      {
        "index": 0,
        "type": "video",
        "thumbnail": "https://...",
        "sources": [
          {
            "quality": "720p",
            "url": "https://...",
            "resolution": "1280x720",
            "mime": "video/mp4",
            "size": 10485760,
            "filename": "username_video_title_720p.mp4"
          }
        ]
      }
    ]
  },
  "meta": {
    "responseTime": 1458,
    "accessMode": "authenticated",
    "publicContent": false,
    "cookieSource": "server",
    "requestId": "3f3fe71f-7f90-4f4f-b5c3-9bd88075e9e1"
  }
}

Other Endpoints

Error Codes

CodeHTTPDescription
INVALID_URL400Invalid URL format
UNSUPPORTED_PLATFORM400Platform not supported
PRIVATE_CONTENT403Content is private, needs cookie
LOGIN_REQUIRED403Login required to access
AGE_RESTRICTED403Age-restricted content
GEO_RESTRICTED403Geo-blocked content
DELETED_CONTENT404Content has been deleted
NO_MEDIA_FOUND404No downloadable media found
STORY_EXPIRED404Story has expired
RATE_LIMITED429Too many requests
EXTRACTION_FAILED500Server error during extraction
TIMEOUT504Request timeout

🔑 Authentication

API key is required for /api/v1/web/extract and all /api/v1/api/* routes. Pass it via Authorization: Bearer sk-dwa_xxx.

Media read routes on the web namespace (/stream, /download, /thumbnail) accept guest mode and optional API key.

🍪 Cookie Behavior

  • Server cookies are used automatically for API key users (private pool)
  • Custom cookie can be passed in request body for private content
  • • Response meta.cookieSource shows: server, client, or none
  • • Response meta.publicContent is false when cookie-backed/private data is used