DotPics API Documentation

API

The API can be reached at the URL https://api.dotpics.info.

Authentication

To gain access to this API, please contact me at toni[at]ethereum.org or on Telegram at @nero_eth.

Rate Limiting

For now, the API is limited to 5 request per minute.

Endpoints

/beaconchain/{day}

Retrieve beacon chain data for a specified day. Parameters: day (int)

Show table schema

Show code sample

import json
import requests
from requests.auth import HTTPBasicAuth

# URL of your deployed application
url = "https://api.dotpics.info/beaconchain/20231115" # 15. Nov. 2023

# Basic Authentication credentials
auth = HTTPBasicAuth('username', 'password')

# Sending a GET request
response = requests.get(url, auth=auth)

# Add assertions based on your expected response
if response.status_code == 200:
    print("Success! Response Data: ")
else:
    print("Failed with status code: ", response.status_code)

print(json.loads(response.content))

/validator/{index}

Get data for a specific validator by index. Parameters: index (int)

Show table schema

Show code sample

import json
import requests
from requests.auth import HTTPBasicAuth

# URL of your deployed application
url = "https://api.dotpics.info/validator/1234" # Validator with ID 1234

# Basic Authentication credentials
auth = HTTPBasicAuth('username', 'password')

# Sending a GET request
response = requests.get(url, auth=auth)

# Add assertions based on your expected response
if response.status_code == 200:
    print("Success! Response Data: ")
else:
    print("Failed with status code: ", response.status_code)

print(json.loads(response.content))