Developers
europe.social API
Automated accounts, such as a newspaper posting from its RSS feed or a weather service posting warnings, publish posts with an access key. Other servers and feed readers use the open interfaces: RSS, WebFinger, NodeInfo and ActivityPub.
- Version 1.1.2
- Updated
- Base URL
https://europe.social - Download OpenAPI 3.1 (JSON)
Getting started #
Agree to the current terms
Automated accounts and access keys need agreement to the terms of 2026-11-28 or a later version. Accounts created since then have already agreed; otherwise read what changed and agree under Our updated terms.
Mark the account as automated
Under Settings, Automation, turn on “This account is automated” and name the person or organisation responsible, with an email address, website or @username. It’s shown on the profile.
Create an access key
In the same place, create a key and copy it. It starts with
es_and is shown only once; we only store a checksum. Keep it on your server, for example in the environment variableEUROPE_SOCIAL_KEYthe examples use.
Your first post:
curl -X POST "https://europe.social/api/v1/automation/posts" \
-H "Authorization: Bearer $EUROPE_SOCIAL_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Severe weather warning for Göttingen until 18:00. https://example.org/warning","lang":"en"}'const res = await fetch("https://europe.social/api/v1/automation/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EUROPE_SOCIAL_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"text":"Severe weather warning for Göttingen until 18:00. https://example.org/warning","lang":"en"}),
});
console.log(res.status, await res.json());import json, os, urllib.request
req = urllib.request.Request(
"https://europe.social/api/v1/automation/posts",
method="POST",
headers={
"Authorization": "Bearer " + os.environ["EUROPE_SOCIAL_KEY"],
"Content-Type": "application/json",
},
data=json.dumps({"text": "Severe weather warning for Göttingen until 18:00. https://example.org/warning", "lang": "en"}).encode(),
)
with urllib.request.urlopen(req) as res:
print(res.status, json.load(res))Authentication #
Send the key in every request: Authorization: Bearer es_… (format: es_ followed by 43 base64url characters). Access key of an automated account, created under Settings, Automation. It works only while the account is marked as automated and its owner has agreed to the terms of 2026-11-28 or a later version. A newer version of the terms does not stop keys from working.
A key can do exactly three things: publish a post, delete the account’s own posts and upload images for its posts. It can’t read anything private, send messages, follow, like or change settings; there it counts as not signed in. An account can have up to 10 keys. Revoke a key any time in the settings; turning off “automated” revokes all keys.
Call the API from your server or script, not from a web page: the endpoints for automated accounts don’t allow requests from other websites (no CORS), and a key in a web page would be public.
Endpoints #
All requests and answers use UTF-8. Answers are JSON unless a table says otherwise.
POST /api/v1/automation/posts Publish a post #
Publishes a post for the account the access key belongs to. Send JSON (Content-Type: application/json); every field is checked, a wrong type or an unknown value is answered with 400 and the field’s name, null counts as not given. A post needs text, images, or both. Replies, polls and threads can’t be created through the API; fields for them are ignored, as is every field not listed here. The account’s limits apply: at most 30 posts in any 60 minutes and 300 in any 24 hours, counting every published post of the account, also deleted ones and those written on the website or in the apps. Posts of a protected account are always visible to followers only. Mentions only notify accounts that follow the automated account (the rules allow mentions on request only); other @names stay plain text without a notification.
Request body
A JSON object, at most 64 KiB. Content-Type: application/json. Text, media or both. Fields not listed here are ignored.
| Field | Type | Required | Limits | Description |
|---|---|---|---|---|
text | string | no | up to 500 characters | The text. Links, #hashtags and $cashtags work as on the website; @mentions notify only accounts that follow the automated account. Length is counted in characters (Unicode code points) after invisible and control characters are removed; spaces at the start and end don’t count. |
visibility | string | no | one of public, followers; default public | Who can see the post. Other values are rejected with 400. |
reply_policy | string | no | one of all, following, none; default all | Who can reply: everyone, accounts the bot follows, or nobody. Other values are rejected with 400. |
cw | string | no | up to 100 characters, longer text is shortened | Content warning, shown before the post. Longer text is shortened to 100 characters. |
ad | boolean | no | default false | true if you get or expect something in return for the post; it then carries the Ad label. Also accepted: 1, "1", "true" and 0, "0", "false"; other values are rejected with 400. |
lang | string | no | pattern ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$ | Language of the text as a language tag (for example de, en, pt-BR). Without it, or if it doesn’t match, the language is detected from the text. |
media | array of object | no | up to 20 items | Up to 20 images uploaded with “Upload an image”, in this order. Each image can be used in one post only. Not an array: rejected with 400. |
media[].id | integer | yes | at least 1 | id from the answer to “Upload an image”. |
media[].alt | string | no | up to 1000 characters, longer text is shortened | Description of the image for people who can’t see it. Longer text is shortened to 1000 characters. |
Examples
curl -X POST "https://europe.social/api/v1/automation/posts" \
-H "Authorization: Bearer $EUROPE_SOCIAL_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Severe weather warning for Göttingen until 18:00. https://example.org/warning","lang":"en"}'const res = await fetch("https://europe.social/api/v1/automation/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EUROPE_SOCIAL_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"text":"Severe weather warning for Göttingen until 18:00. https://example.org/warning","lang":"en"}),
});
console.log(res.status, await res.json());import json, os, urllib.request
req = urllib.request.Request(
"https://europe.social/api/v1/automation/posts",
method="POST",
headers={
"Authorization": "Bearer " + os.environ["EUROPE_SOCIAL_KEY"],
"Content-Type": "application/json",
},
data=json.dumps({"text": "Severe weather warning for Göttingen until 18:00. https://example.org/warning", "lang": "en"}).encode(),
)
with urllib.request.urlopen(req) as res:
print(res.status, json.load(res))Responses
| Status | Content | Meaning |
|---|---|---|
200 | application/json | The post is published. |
400 | application/json | The post isn’t valid; error says why (for example, a field of the wrong type, an unknown visibility, too long, no text and no images, more than the allowed number of images, an image that doesn’t belong to the account, is already used or belongs to a draft). Also when the body isn’t a JSON object. |
401 | application/json | The access key is malformed, unknown or revoked, the account is no longer marked as automated, or its owner hasn’t agreed to the current terms. Requests without a key, or signed in with a website or app session instead, get this answer too. |
403 | application/json | A POST request without an Authorization header but with the session cookie of the europe.social website, sent from somewhere else than the website itself. Send the access key and this can’t happen. |
413 | application/json | The body is larger than 64 KiB. The server reads the rest and answers 413; only a body much larger than that (or one whose Content-Length already says so) is cut off, and then the connection closes after the answer. |
415 | application/json | The body isn’t sent as JSON (Content-Type: application/json). |
429 | application/json | The account has reached its limit of 30 posts an hour or 300 posts a day. Retry-After and retry_after say in how many seconds a post is possible again. More than 60 requests within 60 seconds from the same account also get 429. Header: Retry-After. |
{
"ok": true,
"id": 42,
"url": "https://europe.social/@weather/posts/42"
}{
"error": "visibility must be one of: public, followers."
}{
"error": "A valid access key is required (Authorization: Bearer es_…)."
}{
"error": "Cross-site request: send the request with an Authorization header."
}{
"error": "The request body is too large."
}{
"error": "Send the post as JSON (Content-Type: application/json)."
}{
"error": "Automated accounts can post up to 30 times an hour and 300 times a day.",
"retry_after": 1260
}DELETE /api/v1/automation/posts/{id} Delete a post #
Deletes a post of the account the access key belongs to, also one written on the website or in an app. Other servers in the fediverse are told to delete it as well.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes | The id from the answer to “Publish a post”. |
Examples
curl -X DELETE "https://europe.social/api/v1/automation/posts/42" \
-H "Authorization: Bearer $EUROPE_SOCIAL_KEY"const res = await fetch("https://europe.social/api/v1/automation/posts/42", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.EUROPE_SOCIAL_KEY}`,
},
});
console.log(res.status, await res.json());import json, os, urllib.request
req = urllib.request.Request(
"https://europe.social/api/v1/automation/posts/42",
method="DELETE",
headers={
"Authorization": "Bearer " + os.environ["EUROPE_SOCIAL_KEY"],
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.load(res))Responses
| Status | Content | Meaning |
|---|---|---|
200 | application/json | The post is deleted. |
401 | application/json | The access key is malformed, unknown or revoked, the account is no longer marked as automated, or its owner hasn’t agreed to the current terms. Requests without a key, or signed in with a website or app session instead, get this answer too. |
404 | application/json | There’s no post with this id, or it belongs to another account. |
429 | application/json | Too many requests: more than 60 within 60 seconds from the same account. Header: Retry-After. |
{
"ok": true
}{
"error": "A valid access key is required (Authorization: Bearer es_…)."
}{
"error": "Not found."
}{
"error": "Too many requests. Please try again later.",
"retry_after": 60
}POST /media Upload an image #
Uploads one image and returns its id for the media field of “Publish a post”. Send the file itself as the body; the format is recognised from its content, the Content-Type header isn’t checked. JPEG, PNG and WebP can be up to 4096 pixels wide and high, GIFs (also animated) up to 2048; every file up to 10 MiB. Location data and other metadata are removed. An account can have at most 40 uploaded images that aren’t in a post yet; images that aren’t used in a post within 60 minutes are deleted. Videos can’t be uploaded with an access key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
quelle | query | integer | no | Id of a public post this image shows (used by the apps for screenshots of posts). The image then links to that post. |
Request body
Content-Type: image/jpeg, image/png, image/webp, image/gif.
Examples
curl -X POST "https://europe.social/media" \
-H "Authorization: Bearer $EUROPE_SOCIAL_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpgimport { readFile } from "node:fs/promises";
const res = await fetch("https://europe.social/media", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EUROPE_SOCIAL_KEY}`,
"Content-Type": "image/jpeg",
},
body: await readFile("photo.jpg"),
});
console.log(res.status, await res.json());import json, os, urllib.request
req = urllib.request.Request(
"https://europe.social/media",
method="POST",
headers={
"Authorization": "Bearer " + os.environ["EUROPE_SOCIAL_KEY"],
"Content-Type": "image/jpeg",
},
data=open("photo.jpg", "rb").read(),
)
with urllib.request.urlopen(req) as res:
print(res.status, json.load(res))Responses
| Status | Content | Meaning |
|---|---|---|
200 | application/json | The image is stored. url and poster are paths on this server. |
400 | application/json | The file isn’t an image we can read, or it’s too large in pixels. |
401 | application/json | The access key is malformed, unknown or revoked, the account is no longer marked as automated, or its owner hasn’t agreed to the current terms. Requests without a key get this answer too. |
403 | application/json | A POST request without an Authorization header but with the session cookie of the europe.social website, sent from somewhere else than the website itself. Send the access key and this can’t happen. |
404 | application/json | quelle is set, but isn’t a public post the account can see. |
413 | application/json | The body is larger than 10 MiB. The server reads the rest and answers 413; only a body much larger than that (or one whose Content-Length already says so) is cut off, and then the connection closes after the answer. |
429 | application/json | The account already has 40 uploaded images that aren’t in a post (without Retry-After and retry_after). Or too many uploads, more than 40 within 60 seconds from the same account (with Retry-After and retry_after). Header: Retry-After. |
503 | application/json | The image couldn’t be stored right now. Try again in a moment. |
{
"id": 123,
"url": "/media/9f2b5c0e6a1d4b7c8e3f0a2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f5a7b9c1d.jpg",
"poster": null,
"width": 1200,
"height": 800,
"alpha": false
}{
"error": "This image could not be read. Please try another one."
}{
"error": "Please sign in."
}{
"error": "Cross-site request: send the request with an Authorization header."
}{
"error": "Only public posts can be shared."
}{
"error": "This image is too large."
}{
"error": "Too many unposted images. Post or remove some first."
}{
"error": "The upload didn’t work. Please try again in a moment."
}Python: urlopen raises urllib.error.HTTPError for answers from 400 on; read e.code, e.headers and e.read() there.
Errors #
Errors come as JSON with the field error, a message for people: {"error": "Not found."}. The message can change and may be translated, so check the status code, not the text. Answers to too many requests also carry retry_after and the header Retry-After, both in seconds. A wrong method on a known path is 405 with an Allow header.
| Status | When |
|---|---|
400 |
|
401 |
|
403 |
|
404 |
|
413 |
|
415 |
|
429 |
|
503 |
|
Rate limits and sizes #
An automated account can publish at most 30 posts in any 60 minutes and 300 in any 24 hours, counting every published post of the account: deleted posts still count, each part of a thread counts, and posts from the website and the apps count too. Above that, the answer is 429 with Retry-After in seconds. Wait that long before trying again; don’t retry in a loop.
| Limit | Value |
|---|---|
| Posts per account in any 60 minutes | 30 |
| Posts per account in any 24 hours | 300 |
| Access keys per account | 10 |
| Characters per post | 500 |
| Images per post | 20 |
| Uploaded images not yet in a post, per account | 40 |
| Unused uploads are deleted after (minutes) | 60 |
| Image file size (bytes) | 10485760 |
| JPEG, PNG, WebP width and height (pixels) | 4096 |
| GIF file size (bytes) | 10485760 |
| GIF width and height (pixels) | 2048 |
| JSON body (bytes) | 65536 |
| Image uploads per account and time window | 40 |
| Time window for image uploads (seconds) | 60 |
| Requests to publish a post per account and time window | 60 |
| Time window for requests to publish (seconds) | 60 |
| Requests to delete a post per account and time window | 60 |
| Time window for requests to delete (seconds) | 60 |
| Terms version keys require | 2026-11-28 |
Rules for automated accounts #
The binding rules are on Rules for automation and advertising and in our terms, number 6 and 7. In short:
- Only reply, follow, share or like when a member asks for it, for example by mentioning the account. No replies to mere keywords or hashtags.
- Mentions by an automated account notify only accounts that follow it; other @names in a post stay plain text without a notification.
- Whoever blocks or mutes the account has opted out. Respect that, also with new accounts.
- Turn on
adwhen you get or expect something in return for a post. - No spam, no faked reach, no several accounts for the same purpose.
Open interfaces #
These need no key. ActivityPub, WebFinger and the profile and post addresses only answer for accounts that take part in the fediverse (an option in each account’s privacy settings) and aren’t protected. Details of the protocols: ActivityPub, WebFinger, NodeInfo.
GET /@{name}/feed.rss RSS feed of a profile #
The latest public posts of a profile as RSS 2.0, without shared posts. Posts with the Ad label start with the label in brackets, in the language of the post, for example [Ad]. Protected profiles have no feed.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | yes | Username without @. |
| Status | Content | Meaning |
|---|---|---|
200 | application/rss+xml | The feed. |
404 | text/html | There’s no such account, or it’s protected. The answer is a web page. |
curl "https://europe.social/@weather/feed.rss"GET /.well-known/webfinger WebFinger (RFC 7033) #
Finds the ActivityPub actor of an account that takes part in the fediverse (an option in the account’s privacy settings). Allowed from any website (Access-Control-Allow-Origin: *).
| Name | In | Type | Required | Description |
|---|---|---|---|---|
resource | query | string | yes | acct:name@host, the profile URL or the actor URL. |
| Status | Content | Meaning |
|---|---|---|
200 | application/jrd+json | The account. |
400 | application/json | resource is missing. |
404 | application/json | Unknown account, or it doesn’t take part in the fediverse. |
curl "https://europe.social/.well-known/webfinger?resource=acct:name@europe.social"GET /.well-known/nodeinfo NodeInfo discovery #
| Status | Content | Meaning |
|---|---|---|
200 | application/json | Link to the NodeInfo document. |
curl "https://europe.social/.well-known/nodeinfo"GET /nodeinfo/2.1 NodeInfo 2.1 #
Software, protocols and a short description. User numbers aren’t published.
| Status | Content | Meaning |
|---|---|---|
200 | application/json | The NodeInfo document. |
curl "https://europe.social/nodeinfo/2.1"GET /ap/actor Instance actor #
The server’s own ActivityPub actor (type Application), used to sign requests to other servers.
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | The actor. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/actor"GET /ap/actor/outbox Outbox of the instance actor #
The instance actor doesn’t publish anything; its outbox is an empty collection.
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | OrderedCollection without items. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/actor/outbox"GET /ap/users/{id} Actor of an account #
ActivityPub actor of an account that takes part in the fediverse: type Service for automated accounts (shown as a bot elsewhere, with the responsible person or organisation as “Operated by”), otherwise Person. Send Accept: application/activity+json; without it you’re redirected to the profile page. The profile URL /@name answers the same way with that Accept header.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes | Numeric account id, as in the actor URL. |
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | The actor. |
302 | empty body | Without the ActivityPub Accept header: redirect to the profile page. |
404 | application/json | Unknown account, or it doesn’t take part in the fediverse. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/users/1"GET /ap/users/{id}/outbox Outbox #
Public posts of the account as Create activities, 20 per page, newest first. Without page=true the answer is the collection with a link to the first page.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes | |
page | query | string | no | |
max_id | query | integer | no | Only posts with a smaller id (paging, see next). |
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | OrderedCollection, or with page=true an OrderedCollectionPage. |
404 | application/json | Unknown account, or it doesn’t take part in the fediverse. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/users/1/outbox"GET /ap/users/{id}/followers Followers collection #
An empty collection without a count: who follows whom is only visible to the account itself.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes |
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | OrderedCollection without items. |
404 | application/json | Unknown account, or it doesn’t take part in the fediverse. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/users/1/followers"GET /ap/users/{id}/following Following collection #
An empty collection without a count: who follows whom is only visible to the account itself.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes |
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | OrderedCollection without items. |
404 | application/json | Unknown account, or it doesn’t take part in the fediverse. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/users/1/following"GET /ap/posts/{id} Post as ActivityPub Note #
A public post of an account that takes part in the fediverse. Send Accept: application/activity+json; without it you’re redirected to the post’s page. Posts with the Ad label start with the label in brackets, in the language of the post. The post address /@name/posts/id answers the same way with that Accept header.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes |
| Status | Content | Meaning |
|---|---|---|
200 | application/activity+json | The Note. |
302 | empty body | Without the ActivityPub Accept header: redirect to the post’s page. |
404 | application/json | Unknown, not public, or the account doesn’t take part in the fediverse. |
curl -H "Accept: application/activity+json" "https://europe.social/ap/posts/42"POST /ap/inbox Shared inbox #
Receives activities from other servers. Every request must carry an HTTP signature (draft-cavage) by the actor of the activity, with a Date header at most 60 minutes off the server’s clock; at most 256 KiB. A repeated signed request has no further effect. An actor document is fetched at most once every few minutes and stored only after a valid signature.
| Status | Content | Meaning |
|---|---|---|
202 | application/json | Accepted. |
400 | application/json | Not JSON, no type, or no foreign actor. |
401 | application/json | Signature missing or not valid for the actor. |
403 | application/json | The sending server is blocked here. |
413 | application/json | The body is too large. Only a body much larger than the limit is cut off, then the connection closes after the answer. |
POST /ap/users/{id}/inbox Inbox of an account #
Receives activities from other servers. Every request must carry an HTTP signature (draft-cavage) by the actor of the activity, with a Date header at most 60 minutes off the server’s clock; at most 256 KiB. A repeated signed request has no further effect. An actor document is fetched at most once every few minutes and stored only after a valid signature.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes |
| Status | Content | Meaning |
|---|---|---|
202 | application/json | Accepted. |
400 | application/json | Not JSON, no type, or no foreign actor. |
401 | application/json | Signature missing or not valid for the actor. |
403 | application/json | The sending server is blocked here. |
413 | application/json | The body is too large. Only a body much larger than the limit is cut off, then the connection closes after the answer. |
Versioning and changelog #
The version of this description is 1.1.2. We add fields and endpoints without a new version; changes that could break existing programs are listed below with a date. This page and /openapi.json are generated from the same source as the checks the server runs, so they match what the server does.
, version 1.1.2
- Access keys need agreement to the terms of 2026-11-28 or a later version. A newer version of the terms (current: 2026-12-02) no longer stops keys from working until the owner agrees again.
, version 1.1.1
- The contact object of the description no longer names an email address, it points to the developer page. Contact details of the operator are shown on the website only after a click; error texts that used to name the address now link to the legal notice.
, version 1.1.0
- Publish a post accepts JSON only (415 otherwise) and checks every field: a wrong type or an unknown visibility or reply_policy is 400 with the field name instead of being read as the default. null counts as not given.
- The limit of posts per hour and day counts every published post, also deleted ones, and every part of a thread.
- Mentions by automated accounts only notify accounts that follow them; other @names stay plain text.
- All errors of the API are JSON with an error field, also 400 for a body that isn’t a JSON object, 413 for a body that is too large (sent before the connection closes), 429 with Retry-After and retry_after, and 401 for requests without a valid key. A wrong method on a known path is 405 with Allow.
- Rate limits for requests count per account, not per IP address: images, publishing and deleting.
- Images: only image data and the colour profile stay in JPEG and WebP files, all other segments are removed.
- ActivityPub: the instance actor has an (empty) outbox; signed requests may be at most one hour off the server’s clock.
, version 1.0.0
- First published version of the API for automated accounts: publish a post, delete a post, upload an image.
- Machine-readable description at /openapi.json (OpenAPI 3.1).
- Open interfaces documented: RSS, WebFinger, NodeInfo and ActivityPub.
OpenAPI description #
The complete machine-readable description is at https://europe.social/openapi.json (OpenAPI 3.1). Use it to generate a client or to check your requests.
Contact #
Questions about the API: Legal notice. Security issues: see security.txt.