Social Media

Social Media Support Paths

Retrieve the list of social media API endpoints supported by the APRO AI Oracle proxy.

Credit Consumption: 1 API call credit per request

Endpoint: GET /v2/socialmedia/support_paths


Request

Query Parameters:

  • name (string) – Name of the social media platform Example: Twitter


Sample Request

curl -X GET "https://api-ai-oracle.apro.com/v2/socialmedia/support_paths?name=Twitter" \
 -H "accept: application/json"

Response

{
    "status": {
        "timestamp": 1744263802743,
        "code": 200,
        "message": ""
    },
    "data": {
        "name": "twitter",
        "timestamp": 1744263802,
        "response": {
            "/2/tweets": "get",
            "/2/tweets/search/recent": "get",
            "/2/tweets/{id}": "get",
            "/2/users": "get",
            "/2/users/by": "get",
            "/2/users/by/username/{username}": "get",
            "/2/users/{id}": "get",
            "/2/users/{id}/mentions": "get",
            "/2/users/{id}/tweets": "get"
        }
    }
}

Social Media Proxy

APRO AI Oracle social media proxy API endpoint.

Credit Consumption: 5 API call credits per request

Endpoint: GET /v2/socialmedia/proxy


Request

Body (JSON Parameters):

  • name (string) – Name of the social media platform Example: Twitter

  • method (string) – HTTP method to be used Example: Get

  • path (string) – API endpoint path (refer to the /socialmedia/support_paths API for supported paths) See reference at: https://docs.x.com/x-api/introductionarrow-up-right


Sample Request

Response

List of Supported Social Media API Endpoints X (formerly Twitter)

/2/tweets

Returns a variety of information about the Post specified by the requested ID.

Sample Request

Sample Response

/2/tweets/search/recent

Returns Post Counts from the last 7 days that match a search query.

Sample Request

Sample Reponse

/2/tweets/{id}

Returns a variety of information about the Post specified by the requested ID.

Sample Request

Sample Reponse

/2/users

This endpoint returns information about Users. Specify Users by their ID.

Sample Request

Sample Reponse

/2/users/by

This endpoint returns information about Users. Specify Users by their username.

Sample Request

Sample Reponse

/2/users/by/username/{username}

This endpoint returns information about a User. Specify User by username.

Sample Request

Sample Reponse

/2/users/{id}

This endpoint returns information about a User. Specify User by ID.

Sample Request

Sample Reponse

/2/users/{id}/mentions

Returns Post objects that mention username associated to the provided User ID.

Sample Request

Sample Reponse

/2/users/{id}/tweets

Returns a list of Posts authored by the provided User ID.

Sample Request

Sample Reponse

Last updated