socialdata-tools Social Actions API
Endpoints for validating social actions Twitter
Endpoints for validating social actions Twitter
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/socialdata-tools:socialdata-tools-social-actions-api-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SocialData API Reference Social Actions API
description: SocialData API is a scalable and reliable API that simplifies the process of fetching data from Twitter/X. With SocialData API, you can easily retrieve tweets, user profiles, user followers/following and other information without the need for proxies or parsing Twitter responses.
termsOfService: https://socialdata.tools/legal/terms-and-conditions
contact:
email: support@socialdata.tools
version: 1.0.0
servers:
- url: https://api.socialdata.tools
security:
- bearerAuth: []
tags:
- name: Social Actions API
description: Endpoints for validating social actions Twitter
paths:
/twitter/user/{source_user_id}/following/{target_user_id}:
get:
tags:
- Social Actions API
summary: Verify User Following Relationship
description: This endpoint provides a convenient way to check if a user (identified by source_user_id) is following another user (identified by target_user_id). The endpoint achieves this without scraping the entire followers list which allows us to deliver a fully accurate result with minimal latency.
operationId: verifyTwitterUserFollowing
parameters:
- name: source_user_id
in: path
required: true
description: The numeric ID of the follower user. When using languages where the user_id value exceeds the default Integer type limit (e.g., JavaScript), you should store user_id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: '1729591119699124560'
- name: target_user_id
in: path
required: true
description: The numeric ID of the user being followed. When using languages where the user_id value exceeds the default Integer type limit (e.g., JavaScript), you should store user_id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: '1729591119699124560'
responses:
'200':
description: Request succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/UserFollowingResponse'
'402':
description: Payment required - not enough credits to perform this request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found - requested target user does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation failed (e.g. user IDs are not provided or in invalid format)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: API internal error, typically means that SocialData API failed to obtain the requested information. Retry may succeed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
externalDocs:
url: https://docs.socialdata.tools/social-actions/verify-user-following/
/twitter/tweets/{tweet_id}/retweeted_by/{user_id}:
get:
tags:
- Social Actions API
summary: Verify User Retweeted a Tweet
description: This endpoint provides a convenient way to check if a user retweeted a tweet identified by tweet_id. This will recursively retrieve all users who recently retweeted a tweet and check if the user_id is present among the retrieved users.
operationId: verifyTwitterUserRetweeted
parameters:
- name: tweet_id
in: path
required: true
description: The numeric ID of the target tweet. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: '1625802236571033602'
- name: user_id
in: path
required: true
description: The numeric ID of the user. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: '1489552236571048124'
responses:
'200':
description: Request succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/UserRetweetedResponse'
'402':
description: Payment required - not enough credits to perform this request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found - requested tweet does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation failed (e.g. tweet_id or user_id is not provided or in invalid format)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: API internal error, typically means that SocialData API failed to obtain the requested information. Retry may succeed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
externalDocs:
url: https://docs.socialdata.tools/social-actions/verify-user-retweeted/
/twitter/tweets/{tweet_id}/commented_by/{user_id}:
get:
tags:
- Social Actions API
summary: Verify User Commented on a Tweet
description: 'This endpoint provides a convenient way to check if a user identified by user_id posted a comment in response to a tweet identified by tweet_id. This endpoint only detects direct replies to a target tweet, and not comments posted under other comments.
The endpoint returns an array of comment_ids taking into account that a single user may have posted more than a single reply.'
operationId: verifyTwitterUserCommented
parameters:
- name: tweet_id
in: path
required: true
description: The numeric ID of the target tweet. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: 1625802236571033602
- name: user_id
in: path
required: true
description: The numeric ID of the user. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.
schema:
type: string
example: 1489552236571048124
responses:
'200':
description: Request succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/UserCommentedResponse'
'402':
description: Payment required - not enough credits to perform this request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found - requested user does not exist
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation failed (e.g. tweet_id or user_id is not provided or in invalid format)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: API internal error, typically means that SocialData API failed to obtain the requested information. Retry may succeed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
externalDocs:
url: https://docs.socialdata.tools/social-actions/verify-user-commented/
components:
schemas:
ErrorResponse:
type: object
properties:
status:
type: string
enum:
- error
message:
type: string
required:
- status
- message
UserCommentedResponse:
type: object
description: Provides information about whether a user has commented on a specific tweet
properties:
status:
type: string
description: Status of the request, "success" when successful
example: success
is_commented:
type: boolean
description: Indicates whether the user has commented on the target tweet
example: true
comment_ids:
type: array
description: List of comment IDs made by the user on the target tweet
items:
type: string
description: The string representation of the unique identifier for the comment
example:
- 1111111...
- 2222222...
required:
- status
- is_commented
- comment_ids
UserRetweetedResponse:
type: object
properties:
status:
type: string
source_user_id:
type: string
description: The string representation of the unique identifier for User.
example: '44196397'
target_tweet_id:
type: string
description: The string representation of the unique identifier for the Tweet being retweeted.
example: '1319287761048723458'
is_retweeted:
type: boolean
description: Indicates whether user identified by source_user_id has retweeted the Tweet= identified by target_tweet_id.
retweeters_checked_count:
type: integer
description: Deprecated. Currently returns 'null'
deprecated: true
required:
- status
- source_user_id
- target_tweet_id
- is_retweeted
- retweeters_checked_count
UserFollowingResponse:
type: object
properties:
status:
type: string
source_user_id:
type: string
description: The string representation of the unique identifier for follower User.
example: '44196397'
target_user_id:
type: string
description: The string representation of the unique identifier for the User being followed.
example: '1319287761048723458'
is_following:
type: boolean
description: Indicates whether user identified by source_user_id is following user identified by target_user_id.
followers_checked_count:
type: integer
description: Deprecated. Currently returns 'null'
deprecated: true
required:
- status
- source_user_id
- target_user_id
- is_following
- followers_checked_count
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'Each request to SocialData API needs to contain your API key in the Authorization header.
Example: `Authorization: Bearer YOUR_API_KEY`'
externalDocs:
description: SocialData API Reference
url: https://docs.socialdata.tools