Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
""" API Checker Sends a request to a free Ping endpoint and displays the HTTP status code and ping result. """ import requests url = "https://api.formatdock.com/v1/free/ping" try: response = requests.get(url, timeout=5) response.raise_for_status() data = response.json() print(f"Status: {response.status_code}") print(f"Result: {data['result']}") except requests.RequestException as e: print(f"Request failed: {e}") except (ValueError, KeyError) as e: print(f"Unexpected response: {e}")
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)