> ## Documentation Index
> Fetch the complete documentation index at: https://docs.realitydefender.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Social Media URL Upload

<ParamField body="socialLink" type="string">
  The social media URL you would like to analyze.
</ParamField>

Use this endpoint to submit a social media link for deepfake detection. The returned response includes a `requestId` that you can use to fetch the analysis result from the media detail endpoint.

### Authorization

To submit a social media URL, you must include the `x-api-key` in your request headers.

### Supported Social Platforms

* Facebook
* Instagram
* Twitter/X
* YouTube
* TikTok
* Threads

### Sample Code Snippet

Here's an example of how you can submit a social media URL and then retrieve the result.

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST \
    'https://api.prd.realitydefender.xyz/api/files/social' \
    -H 'X-API-KEY: your-api-key-here' \
    -H 'Content-Type: application/json' \
    -d '{"socialLink": "https://www.youtube.com/watch?v=6O0fySNw-Lw"}'
  ```

  ```python python theme={null}
  import requests

  url = "https://api.prd.realitydefender.xyz/api/files/social"
  payload = {
      "socialLink": "https://www.youtube.com/watch?v=6O0fySNw-Lw"
  }
  headers = {
      "X-API-KEY": "your-api-key-here",
      "Content-Type": "application/json"
  }
  response = requests.post(url, json=payload, headers=headers).json()
  print(response)
  ```
</CodeGroup>
