API Document

Usage Information:

cURL: Use the following command in your terminal:

curl -X GET 'https://new.gpfile.site/api/link?url=YOUR_URL_HERE'

Python: Use the following code snippet:

import requests

url = 'https://new.gpfile.site/api/link?url=YOUR_URL_HERE'
response = requests.get(url)
print(response.json())

PHP: Use the following code snippet:

<?php

$url = 'https://new.gpfile.site/api/link?url=YOUR_URL_HERE';
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);

?>

Node.js (JavaScript): Use the following code snippet:

const fetch = require('node-fetch');

const url = 'https://new.gpfile.site/api/link?url=YOUR_URL_HERE';
fetch(url)
  .then(response => response.json())
  .then(data => console.log(data));

Node.js (TypeScript): Use the following code snippet:

import fetch from 'node-fetch';

const url: string = 'https://new.gpfile.site/api/link?url=YOUR_URL_HERE';
fetch(url)
  .then(response => response.json())
  .then(data => console.log(data));