📡 Public API

Submit public MEGA links from your app or workflow

Use the Meawfy submission endpoint to send public links from sites, automations, internal tools, or browser extensions with a lightweight request format.

Authentication None required
Request type POST
Accepted input One link or batches up to 50
Best for Forms, scripts, bots, and automations

A small submission endpoint designed for simple integrations

Our public API lets you submit mega.nz links directly to Meawfy. It works well for websites, apps, and automation workflows that want to publish discoverable public links efficiently.

  • Free to use with no authentication flow.
  • Batch-friendly for up to 50 links in one request.
  • Flexible parsing for commas, spaces, semicolons, or new lines.
Single endpoint JSON responses Simple form payload

Request shape and payload rules

URL
https://meawfy.com/api/submit-link
Method
POST
Content-Type
application/x-www-form-urlencoded
Authentication
None required

Expected parameter: send one field named url. It can contain a single mega.nz link or multiple links separated by commas, spaces, semicolons, or line breaks.

Parameter Type Required Description
url string Yes Single mega.nz link or multiple links separated by comma, space, newline, or semicolon.

Copy-ready examples in the most common stacks

JavaScript (Fetch API)

// Submit single link
async function submitLink(megaUrl) {
    const response = await fetch('https://meawfy.com/api/submit-link', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
        body: `url=${encodeURIComponent(megaUrl)}`
    });

    const result = await response.json();
    console.log(result.message);
}

// Submit multiple links
async function submitMultipleLinks(urls) {
    const urlString = urls.join(',');
    const response = await fetch('https://meawfy.com/api/submit-link', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
        body: `url=${encodeURIComponent(urlString)}`
    });

    const result = await response.json();
    console.log(result.message);
}

// Usage
submitLink('https://mega.nz/file/abc123#def456');
submitMultipleLinks([
    'https://mega.nz/file/abc123#def456',
    'https://mega.nz/folder/xyz789#uvw012'
]);

Python (requests)

import requests
def submit_link(mega_url):
    """Submit single mega.nz link"""
    response = requests.post('https://meawfy.com/api/submit-link', {
        'url': mega_url
    })
    return response.json()


def submit_multiple_links(urls):
    """Submit multiple mega.nz links"""
    url_string = ','.join(urls)
    response = requests.post('https://meawfy.com/api/submit-link', {
        'url': url_string
    })
    return response.json()


# Usage examples
result = submit_link('https://mega.nz/file/abc123#def456')
print(result['message'])

result = submit_multiple_links([
    'https://mega.nz/file/abc123#def456',
    'https://mega.nz/folder/xyz789#uvw012'
])
print(result['message'])

PHP (cURL)

function submitLink($megaUrl) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://meawfy.com/api/submit-link');
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['url' => $megaUrl]));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        'Content-Type: application/x-www-form-urlencoded'
    ]);

    $response = curl_exec($ch);
    curl_close($ch);

    return json_decode($response, true);
}

// Submit multiple links
function submitMultipleLinks($urls) {
    $urlString = implode(',', $urls);
    return submitLink($urlString);
}

// Usage
$result = submitLink('https://mega.nz/file/abc123#def456');
echo $result['message'];

Simple, predictable JSON output

The API always returns a JSON response. That keeps client-side handling straightforward across scripts, browser apps, or backend services.

Successful response

{
    "success": true,
    "message": "Link submitted successfully",
    "count": 1
}

Multiple links response

{
    "success": true,
    "message": "Links submitted successfully",
    "count": 3
}

Practical ways to plug it into existing products

Website form integration

<form id="linkSubmissionForm">
    <textarea
        name="url"
        placeholder="Paste your mega.nz links here (one per line or separated by commas)"
        rows="5"
        cols="50"
    ></textarea>
    <button type="submit">Submit Links</button>
</form>

<script>
document.getElementById('linkSubmissionForm').addEventListener('submit', async (e) => {
    e.preventDefault();
    const formData = new FormData(e.target);

    try {
        const response = await fetch('https://meawfy.com/api/submit-link', {
            method: 'POST',
            body: formData,
            headers: {
                'Access-Control-Allow-Origin': '*',
            }
        });
        const result = await response.json();
        alert(result.message);
    } catch (error) {
        alert('Submission completed');
    }
});
</script>

Browser extension integration

// Browser extension to submit current page if it's a mega link
function submitCurrentPage() {
    const currentUrl = window.location.href;

    if (currentUrl.includes('mega.nz')) {
        fetch('https://meawfy.com/api/submit-link', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
            },
            body: `url=${encodeURIComponent(currentUrl)}`
        })
        .then(response => response.json())
        .then(data => {
            console.log('Link submitted to Meawfy:', data.message);
        });
    }
}

Keep the integration fast, stable, and useful

Best practices

  • Batch submissions: submit multiple links in a single request when possible.
  • Error handling: handle network failures and invalid payloads gracefully.
  • Rate limiting: keep requests reasonable instead of sending bursts.
  • Valid links only: send actual mega.nz file or folder links.
  • User feedback: surface success and failure states clearly.

Fair use policy

Our API is free and open for legitimate use.

  • Quality over quantity: submit valid, working public links.
  • Community contribution: help keep the index useful and searchable.
  • No reverse engineering: use the public endpoint as intended.

Questions, partnerships, and integration help

Need help integrating the API? We are happy to help developers build clean, useful integrations around public link submission.