Welcome to Pastenet.xyz, a powerful platform designed to help you create, share, and manage text-based pages with ease. Whether you’re sharing content with friends, publishing links, or creating online notes, Pastenet provides a simple yet effective interface for managing your digital text.
To start using Pastenet.xyz, you can either manually create your pastes through the web interface or automate the process using our API. Below is a detailed guide on how to use the platform, including how to properly format your text, manage your pastes, and maximize your earnings.
To include a clickable link in your paste, you need to enclose the URL in asterisks (*
). This ensures that the link is recognized and properly formatted when the paste is viewed.
Correct Usage:
*https://pastenet.xyz/home*
will be rendered as a clickable link.
To insert a new line in your text (i.e., starting a new paragraph or line), use \n
in your content. This is crucial for ensuring that your text is properly formatted when displayed.
Correct Usage:
This is line one.\nThis is line two.
will be rendered as:
This is line one.
This is line two.
You can combine both asterisks and \n
in your content to create well-formatted text with embedded links.
Welcome to my paste!\nHere you can find more information about our platform:\n*https://pastenet.xyz/home*.
This will be rendered as:
Welcome to my paste!
Here you can find more information about our platform:
https://pastenet.xyz/home
To create a new paste, send a POST request to the /create_page/<hash>
endpoint with the content
and title
as parameters.
Endpoint: POST https://pastenet.xyz/create_page/<user_hash>
Parameters:
user_hash
: Your unique user hash (e.g., a1b2c3d4e5f6g7h8
).content
: The text content of your paste, properly formatted with asterisks and \n
.title
: An optional title for your paste.import requests
url = "https://pastenet.xyz/create_page/a1b2c3d4e5f6g7h8"
data = {
'content': 'Check out my new paste! For more info, visit *https://pastenet.xyz/home*.\nThanks for reading!',
'title': 'My New Paste'
}
response = requests.post(url, data=data)
print(response.text)
To modify an existing paste, send a POST request to the /edit_api/<user_hash>/<page_hash>
endpoint with the updated content
and title
.
Endpoint: POST https://pastenet.xyz/edit_api/<user_hash>/<page_hash>
url = "https://pastenet.xyz/edit_api/a1b2c3d4e5f6g7h8/i9j0k1l2m3n4o5p6"
data = {
'content': 'Here’s the updated content for my paste!\nVisit *https://pastenet.xyz/home* for more details.',
'title': 'Updated Paste Title'
}
response = requests.post(url, data=data)
print(response.text)
To delete a paste, send a GET request to the /delete_api/<user_hash>/<page_hash>
endpoint.
Endpoint: GET https://pastenet.xyz/delete_api/<user_hash>/<page_hash>
import requests
url = "https://pastenet.xyz/delete_api/a1b2c3d4e5f6g7h8/i9j0k1l2m3n4o5p6"
response = requests.get(url)
print(response.text)
Referrers are sources (websites) that direct traffic to your paste. You may want to block certain referrers to control who can view your content. You can specify which referrers to block in the settings. If a visitor arrives from a blocked referrer, they will be shown a custom message that you set.
The Bypass Blocker is a feature that automatically prevents users who bypass your links from accessing your content. However, be aware that enabling this feature might unintentionally block legitimate users. You can set a specific message that will be displayed to anyone blocked by this feature.
The Pastenet dashboard provides an overview of your activity, including: