A free temporary file bin

Use Restwords to temporarily store XML, HTML, JSON, and TWIML. Paste your text below or use the API to create a file and receive a valid link with its own public URL. The file and link will be removed after 48 hours.



File Upload and API



Create a file here or with the API.






Ensure your text is valid XML, HTML, JSON, or TWIML





Latest Uploads

(auto-updated every 30 seconds)



1 Simple examples with CURL
POST JSON to the REST API:
                
curl --header "Content-Type: application/json" \
 --request POST --data '{"hello": "world"}' \
https://www.restwords.com/api/post_json
                
              
                
{
  "date": "2019-11-06T20:43:17.459-05:00",
  "file_name": "7bd1f1b5b2184d68b6c5eae10cb8ccce",
  "format": "json",
  "url": "https://www.restwords.com/api/7bd1f1b5b2184d68b6c5eae10cb8ccce"
}
                
              
POST XML or HTML to the REST API:
                
curl -X POST -H 'Content-type: text/xml'  \
-d '<?xml version="1.0" encoding="UTF-8"?><hello>foo world</hello>' \
https://www.restwords.com/api/post_markup
                
              
                
{
  "date": "2019-11-06T20:57:27.077-05:00",
  "file_name": "c039f609f51d4105a158ec1fad5d8841",
  "format": "xml",
  "url": "https://www.restwords.com/api/c039f609f51d4105a158ec1fad5d8841"
}
                
              
2 Simple examples with Python
POST JSON to the REST API:
                
from requests import post, get


url = 'https://www.restwords.com/api/post_json'
response = post(url, json={"hello": "world"}).json()
print(response)
                
              
                
{
  'date': '2019-11-04T22:59:13.854-05:00',
  'file_name': '4503aa8c854242029997f40b752cfbee',
  'format': 'json',
  'url': 'https://www.restwords.com/api/4503aa8c854242029997f40b752cfbee'
}
                
              
GET JSON from the REST API - retrieve the newly created document:
                
print(get(response['url']).json())
                
              
                
{'hello': 'world'}
                
              
POST XML to the REST API:
                
from requests import post


url = 'https://www.restwords.com/api/post_markup'
xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
xml += "<hello><there>foo world</there></hello>"
response = post(url, data=xml).json()
print(response)
                
              
                
{
  'date': '2019-11-05T23:29:30.947-05:00',
  'file_name': 'd4cd681dafdc4266bed154d77bf0dda6',
  'format': 'xml',
  'url': 'https://www.restwords.com/api/d4cd681dafdc4266bed154d77bf0dda6'
}
                
              
POST HTML to the REST API:
                
from requests import post


url = 'https://www.restwords.com/api/post_markup'
html = '<!DOCTYPE html><html><head>'
html += '<meta charset=\"UTF-8\">'
html += '<title>Hello World</title>'
html += '</head><h1>HELLO WORLD</h1></html>'
response = post(url, data=html).json()
print(response)
                
              
                
{
  'date': '2019-11-17T23:33:54.180-05:00',
  'file_name': '0529da424d364399a9977bada58c6b0f',
  'format': 'html',
  'url': 'https://www.restwords.com/api/0529da424d364399a9977bada58c6b0f'
}