SocialData.Tools: API Documentation
  • Getting Started
  • Authentication
  • Pricing
  • SDKs and Code Examples
  • Twitter: Tweets
    • Retrieve tweet details
    • Retrieve thread
    • Retrieve article details
    • Retrieve all users who retweeted a tweet
    • Retrieve search results by keyword
    • Retrieve all users who liked a tweet
  • Twitter: Users
    • Retrieve user profile details
    • Retrieve profile's affiliated users
    • Retrieve tweets and replies made by a specific user
    • Retrieve likes made by a specific user
    • Retrieve user's articles
    • Retrieve user's highlighted tweets
    • Retrieve user's followers
    • Retrieve user's following
    • Retrieve user's lists
    • Check if a user is following another user
    • Check if a user retweeted a specific tweet
    • Check if a user commented on a specific tweet
    • Check if a user liked a specific tweet
    • Retrieve users search results by screenname
  • Twitter: Lists
    • Retrieve list details
    • Retrieve list members
  • Twitter: Spaces
    • Retrieve Twitter spaces stream details
  • Twitter / X: Communities
    • Retrieve community tweets timeline
    • Retrieve community members
Powered by GitBook
On this page
  • Endpoint
  • Endpoint parameters
  • Response codes
  • Example request
  • Example response
  1. Twitter / X: Async Endpoints

Getting job status

Endpoint

GET https://api.socialdata.tools/jobs/[job_id]

Endpoint parameters

Name
Description
Example

job_id (Required)

A numeric ID of a job you created earlier using one of the async endpoints

42

Response codes

  • HTTP 200 OK - succeeded

  • HTTP 403 Forbidden - requested job belongs to another user

  • HTTP 404 Not Found - requested job does not exist

  • HTTP 500 Internal Server Error - other error (highly unlikely)

Example request

curl "https://api.socialdata.tools/jobs/42
-H 'Authorization: Bearer API_KEY'
-H 'Accept: application/json'

Example response

// Job pending, processing not started yet: 
{
    "job_id": 42,
    "status": "pending"
}

// Job still being processed: 
{
    "job_id": 42,
    "status": "processing"
}


// Job finished successfully: 
{
    "job_id": 42,
    "status": "success",
    "result": {
        "datafile_url": "https://s3.amazonaws.com/..."    
    }
}

// Job failed: 
{
    "job_id": 42,
    "status": "error"
    "message": "Insufficient balance"
}

Last updated 11 months ago