Μετάβαση στο περιεχόμενο
GET /v1/account

Account lookup

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/mastodon-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/mastodon-api/v1/account" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mastodon-api/v1/account", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mastodon-api/v1/account");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/mastodon-api/v1/account",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "id": "1",
        "bot": false,
        "uri": "https://mastodon.social/users/Gargron",
        "url": "https://mastodon.social/@Gargron",
        "acct": "Gargron",
        "note": "<p>Executive Strategy &amp; Product Advisor, Founder of <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url mention\">@<span>Mastodon</span></a></span>. Film photography, prog metal, Dota 2. Likes all things analog.</p>",
        "group": false,
        "roles": [],
        "avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/6b2384b33799a0dd.png",
        "emojis": [],
        "fields": [
            {
                "name": "GitHub",
                "value": "<a href=\"https://github.com/Gargron\" target=\"_blank\" rel=\"nofollow noopener me\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">github.com/Gargron</span><span class=\"invisible\"></span></a>",
                "verified_at": "2023-02-07T23:24:40.347+00:00"
            },
            {
                "name": "Portfolio",
                "value": "<a href=\"https://eugenrochko.com\" target=\"_blank\" rel=\"nofollow noopener me\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">eugenrochko.com</span><span class=\"invisible\"></span></a>",
                "verified_at": "2024-07-06T01:06:10.801+00:00"
            },
            {
                "name": "Mastodon Merch",
                "value": "<a href=\"https://shop.joinmastodon.org\" target=\"_blank\" rel=\"nofollow noopener me\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">shop.joinmastodon.org</span><span class=\"invisible\"></span></a>",
                "verified_at": null
            }
        ],
        "header": "https://files.mastodon.social/accounts/headers/000/000/001/original/d13e4417706a5fec.jpg",
        "locked": false,
        "noindex": false,
        "username": "Gargron",
        "indexable": true,
        "created_at": "2016-03-16T00:00:00.000Z",
        "show_media": true,
        "discoverable": true,
        "display_name": "Eugen Rochko",
        "avatar_static": "https://files.mastodon.social/accounts/avatars/000/000/001/original/6b2384b33799a0dd.png",
        "header_static": "https://files.mastodon.social/accounts/headers/000/000/001/original/d13e4417706a5fec.jpg",
        "show_featured": true,
        "last_status_at": "2026-06-02",
        "statuses_count": 81488,
        "followers_count": 380511,
        "following_count": 710,
        "feature_approval": {
            "manual": [],
            "automatic": [
                "public"
            ],
            "current_user": "denied"
        },
        "hide_collections": false,
        "avatar_description": "A white man with medium-length black hair, a short beard and a mustache, wearing dark-framed glasses and a white t-shirt, holding a Pentax 6x7 camera.",
        "header_description": "",
 
…