social

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-social"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/f94432e6-a1bb-4f01-9142-32c8ce8421d2/social-card.svg?v=3e7ae33eec8b" alt="social" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/social/accountsScope social:read

Public profiles the creator has connected, with follower counts and sync state.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/social/accounts" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": [
    {}
  ]
}
Schema
dataobject[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/social/accountsScope social:write

Connect a public profile by handle. It is synced once straight away; a handle that never resolves is refused.

Request body

application/json
platformstringrequired
BLUESKY | MASTODON | GITHUB | YOUTUBE | TIKTOK | INSTAGRAM
handlestringrequired
A handle or profile URL.
{
  "platform": "BLUESKY",
  "handle": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/social/accounts" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"BLUESKY","handle":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /social/accounts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/social/accounts/{accountId}/syncScope social:write

Refresh a connected account now. It also refreshes hourly on its own.

Parameters

accountIdstringpathrequired

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/social/accounts/{accountId}/sync" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /social/accounts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/social/accounts/{accountId}Scope social:write

Remove a connected account and its synced posts.

Parameters

accountIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/social/accounts/{accountId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /social/accounts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated