API Documentation

Integrate with the darknetworld.com platform to manage your site's mirror URLs programmatically. Keep your listings up-to-date with our secure API.

📡

API Overview

The darknetworld.com API allows market administrators to programmatically submit mirror URLs for their sites. This ensures that our listings remain current and accurate, providing users with reliable access points.

To use the API, you must first obtain an API token by contacting our administrator. The API uses Bearer token authentication and requires all requests to be sent as JSON.

🔑

Authentication

All API requests must include an authorization header with your unique API token:

HEADER
Authorization: Bearer YOUR_API_TOKEN
Include this header in all API requests for authentication.

Obtaining an API Token

To get your API token:

  1. Contact the darknetworld.com admin via Jabber (OMEMO):
  2. Provide your site details and official URL for verification
  3. Upon verification, you'll receive your unique API token
🔌

API Endpoint

POST
https://darknetworld.com/api/push-mirror
Submit new mirror URLs for your site.

Request Body

The request body must be a JSON object with a mirrors field. You can submit mirror URLs in either of two formats:

Parameter Type Required Description
mirrors Array or String Yes Array of mirror URLs OR comma-separated string of mirror URLs

Example with JSON Array:

JSON
{
  "mirrors": [
    "http://mirror1.example.onion",
    "http://mirror2.example.onion"
  ]
}

Example with Comma-Separated String:

JSON
{
  "mirrors": "http://mirror1.example.onion, http://mirror2.example.onion"
}
📤

Response

Successful requests will receive a 200 OK response with a JSON object containing:

JSON
{
  "message": "Mirrors added successfully",
  "mirrors": [
    "http://existingmirror.onion",
    "http://mirror1.example.onion",
    "http://mirror2.example.onion"
  ]
}

⚠️ Important Notes

  • Keep your API token secure and never share it publicly
  • Unauthorized or invalid tokens will result in 401 Unauthorized errors
  • You can update your mirrors anytime by pushing new URLs via the API
  • Duplicate URLs will be ignored and not added to the list
  • All submitted URLs are validated before being added
📬

Contact & Support

For API token requests, questions, or support, contact the darknetworld.com administrator:

📱
Jabber (OMEMO)

Please include detailed information about your site and use case when requesting an API token.