Beecargo

INTRODUCTION

Welcome

API

Overview
  • Upload a file
  • Remote upload
  • Claim a file
  • Agent API
  • Retrieve a file
  • Get file info
  • List files & folders
  • Delete a file

MCP

Overview

LEGAL

PrivacyTermsAcceptable useCookiesRefundsDMCA
PreviousRetrieve a fileNextList files & folders

Get file info

Get file information by shortCodes (similar to DDownload API).


Endpoint

GET https://api.beecargo.net/files/info?file_code=shortCode1,shortCode2

Authentication

Optional: You can authenticate using an API key via the Authorization header or the key query parameter. Authentication is optional for this endpoint.

Authorization: Bearer YOUR_API_KEY

Or use the key query parameter: ?key=YOUR_API_KEY

Request examples

Get file information for one or more files by providing their shortCodes (comma-separated).

# Get info for a single file

curl "https://api.beecargo.net/files/info?file_code=abc123"

# Get info for multiple files (comma-separated)

curl "https://api.beecargo.net/files/info?file_code=abc123,xyz789,def456"

# With API key authentication

curl "https://api.beecargo.net/files/info?file_code=abc123&key=YOUR_API_KEY"

# Or with Authorization header

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.beecargo.net/files/info?file_code=abc123,xyz789"

Parameters

ParameterTypeRequiredDescription
file_codeStringYesComma-separated list of shortCodes (e.g., "abc123,xyz789")
keyStringNoAPI key for authentication (alternative to Authorization header)

Response

Returns an array of file information objects. Each object has a status field indicating whether the file was found (200) or not found (404).

{
  "msg": "OK",
  "server_time": "2024-01-01 12:00:00",
  "status": 200,
  "result": [
    {
      "status": 200,
      "filecode": "abc123",
      "name": "document.pdf",
      "size": "1048576",
      "uploaded": "2024-01-01 10:00:00",
      "download": "42",
      "status_field": "active"
    },
    {
      "status": 404,
      "filecode": "xyz789"
    },
    {
      "status": 200,
      "filecode": "def456",
      "name": "image.jpg",
      "size": "524288",
      "uploaded": "2024-01-01 11:00:00",
      "download": "15",
      "status_field": "active"
    }
  ]
}

Response fields

FieldTypeDescription
msgStringResponse message ("OK" on success)
server_timeStringServer timestamp in "YYYY-MM-DD HH:MM:SS" format
statusNumberHTTP status code (200 for success)
resultArrayArray of file info objects
result[].statusNumber200 if file found, 404 if not found
result[].filecodeStringThe shortCode (short_id) of the file
result[].nameStringFile name (only if status is 200)
result[].sizeStringFile size in bytes as string (only if status is 200)
result[].uploadedStringUpload timestamp in "YYYY-MM-DD HH:MM:SS" format (only if status is 200)
result[].downloadStringDownload count as string (only if status is 200)
result[].status_fieldStringFile status: "active", "deleted", "dmca_removed", or "expired" (only if status is 200)

Error response

{
  "msg": "Bad Request",
  "status": 400,
  "error": "file_code parameter is required (comma-separated shortCodes)"
}

Usage notes

  • You can query multiple files at once by providing comma-separated shortCodes
  • Each file in the result array will have its own status (200 for found, 404 for not found)
  • The response format is similar to DDownload API for compatibility
  • File status field indicates the current state: active, deleted, dmca_removed, or expired
  • Only files with status "active" can be downloaded
  • Authentication is optional but recommended for rate limiting benefits