APIs

Social Media URLs API

The Social Media URLs API returns your brand's social media URLs from the Bolster platform. It covers the same URLs you see in the Live Detections, Takedown in Progress, Taken Down and Ignored tables of the Social Media module. You choose which tables to get URLs from, and you can narrow the results by First Seen, Detection Date and Takedown Timestamp.

Important Notes

  • Each URL is returned once, under the table it is in now. The table field in the response tells you which one.
  • All date ranges are optional. Each range works like the date filter on the matching table column. When you send more than one range, a URL must match all of them. When you send no dates, every URL in the selected tables is returned.
  • A URL with no value for a date you filter on is not returned. For example, a takedown date range only returns URLs that have been taken down.
  • Results cover the brands your API key has access to, the same as what you see on the platform.
  • Your account needs the Social Media module. If the module is not enabled for your account, for example it is not part of your plan or it is turned off for your user, the API returns a 403 error and no URLs.
  • A single request returns at most 10,000 URLs. The total field always shows how many URLs matched. If total is more than 10,000, or a request fails with a server error, narrow your date ranges and make several smaller requests.
  • All dates and times are in UTC. Dates without a time zone offset are read as UTC, and dates with an offset are converted to UTC.
  • Results are sorted by First Seen, newest first.
  • Responses can be large. We recommend requesting a compressed response by sending the Accept-Encoding: gzip header (--compressed in curl).

Step 1: Locate Your API Key

Before using the Social Media URLs API, you need your Bolster API key. Follow these steps to find it:

  1. Click on the user dropdown in the top-right corner of the page.
  2. Select Profile Information from the dropdown menu.
  3. Copy the API key displayed on your profile screen.

Step 2: Initiate Request Through API

Endpoint:

/api/social-media/v1/urls

API Host:

https://developers.bolster.ai

To make a request, use the following details.

Request Format

Get every URL in the Live Detections, Takedown in Progress and Taken Down tables:

curl --compressed --location 'https://developers.bolster.ai/api/social-media/v1/urls' \
--header 'Content-Type: application/json' \
--data '{
  "apiKey": "<your_api_key>",
  "table": ["live", "in_progress", "taken_down"]
}'

Get the URLs detected in January that are still live or in takedown:

curl --compressed --location 'https://developers.bolster.ai/api/social-media/v1/urls' \
--header 'Content-Type: application/json' \
--data '{
  "apiKey": "<your_api_key>",
  "table": ["live", "in_progress"],
  "detectionStartDate": "1970-01-01T00:00:00Z",
  "detectionEndDate": "1970-01-31T23:59:59Z"
}'

Request Parameters

  • apiKey (required): Your user API key.
  • table (required): The tables to get URLs from. An array with one or more of the values in the Tables section below.
  • firstSeenStartDate (optional): Only return URLs first seen at or after this time.
  • firstSeenEndDate (optional): Only return URLs first seen at or before this time, inclusive to the second.
  • detectionStartDate (optional): Only return URLs detected at or after this time.
  • detectionEndDate (optional): Only return URLs detected at or before this time, inclusive to the second.
  • takedownStartDate (optional): Only return URLs taken down at or after this time.
  • takedownEndDate (optional): Only return URLs taken down at or before this time, inclusive to the second.

You can send a start date, an end date or both. When you send both for the same range, the start date must not be later than the end date. A date sent as null is treated as not sent.

Tables

ValueTable on the platform
liveLive Detections
in_progressTakedown in Progress, including URLs awaiting documents and exhausted takedowns
taken_downTaken Down
ignoredIgnored

Date Format

Every date needs a date and a time. A date on its own, such as 1970-01-01, is not accepted. Milliseconds and a time zone offset are optional:

ValueRead as (UTC)
1970-01-01T00:00:00Z1970-01-01T00:00:00Z
1970-01-01T00:00:00.000Z1970-01-01T00:00:00Z
1970-01-01T00:00:001970-01-01T00:00:00Z (no offset, so UTC is assumed)
1970-01-01T05:30:00+05:301970-01-01T00:00:00Z

Response

The API returns the matching URLs along with the total number of matches.

Response Fields

FieldDescription
totalTotal number of URLs that matched. This can be more than the number of URLs returned.
urlsAn array of up to 10,000 URL objects, sorted by First Seen, newest first. See Per-URL Fields below.

Per-URL Fields

Each object in the urls array contains the following fields. Every field is always present; fields with no value are returned as null, and categories and searchTerms as empty arrays.

FieldDescription
urlThe social media URL.
tableThe table the URL is in now: live, in_progress, taken_down or ignored.
brandThe brand the URL was found for.
platformThe social media platform, for example Facebook, Instagram or LinkedIn.
originWhere the URL was found on the platform, for example Profile, Page, Post or Advertisement.
categoriesThe categories of the URL, for example Executive Impersonations or Crypto Scams.
searchTermsMatched Search Terms: the search terms the URL was found for.
threatIntentThreat Intent: the kind of threat the URL poses, for example Brand Impersonation, Investment Fraud or Credential Phishing. null if the URL has not been assessed.
threatIntentSummaryThreat Intent Summary: a short description of why the URL is a threat. null if the URL has not been assessed.
firstSeenTsFirst Seen: when Bolster first saw the URL (UTC).
detectionTsDetection Date: when the URL was added to Live Detections, Takedown in Progress or Taken Down (UTC). If the URL was ignored and later added back, this is when it was added back. null if the URL has never been in those tables.
takedownSubmittedTsTakedown Submission Timestamp: when the takedown request was submitted (UTC). null if no takedown has been requested.
takedownTsTakedown Timestamp: when the URL was taken down (UTC). null if the URL has not been taken down.
insightsUrlLink to the URL's insights page on the Bolster platform.

Successful Response (Status Code: 200)

The following example shows one URL in takedown and one URL that has been taken down:

{
  "total": 2,
  "urls": [
    {
      "url": "https://www.facebook.com/example.brand.support",
      "table": "in_progress",
      "brand": "Example Brand",
      "platform": "Facebook",
      "origin": "Page",
      "categories": [
        "Executive Impersonations"
      ],
      "searchTerms": [
        "example brand"
      ],
      "threatIntent": "Brand Impersonation",
      "threatIntentSummary": "The page poses as Example Brand customer support and asks visitors to share account details in direct messages.",
      "firstSeenTs": "1970-01-18T10:15:02.120Z",
      "detectionTs": "1970-01-18T14:02:41.508Z",
      "takedownSubmittedTs": "1970-01-19T09:30:12.004Z",
      "takedownTs": null,
      "insightsUrl": "https://platform.bolster.ai/social-media/insights/b25f69540b544f2e0bf790caf4c602548e7e642aef122f823be29294912afc36"
    },
    {
      "url": "https://www.instagram.com/example_brand_giveaway",
      "table": "taken_down",
      "brand": "Example Brand",
      "platform": "Instagram",
      "origin": "Profile",
      "categories": [
        "Crypto Scams"
      ],
      "searchTerms": [
        "example brand giveaway"
      ],
      "threatIntent": "Crypto Scam",
      "threatIntentSummary": "The profile promotes a fake Example Brand crypto giveaway that asks users to send funds first.",
      "firstSeenTs": "1970-01-05T08:42:11.311Z",
      "detectionTs": "1970-01-05T12:20:07.915Z",
      "takedownSubmittedTs": "1970-01-05T13:01:44.270Z",
      "takedownTs": "1970-01-12T16:05:47.530Z",
      "insightsUrl": "https://platform.bolster.ai/social-media/insights/75788cea81bed557dd4d1b37eaa52c1060b72ed6935d629ef309c95945fcb862"
    }
  ]
}

Error Responses

If the request is invalid, the API returns an error response and no URLs.

Status Code: 401

{
  "error": {
    "statusCode": 401,
    "name": "Error",
    "message": "Invalid API key or API key not enabled."
  }
}

Status Code: 403

The Social Media module is not enabled for your account:

{
  "error": {
    "statusCode": 403,
    "name": "Error",
    "message": "The Social Media module is not enabled for your account."
  }
}

Status Code: 400

The following 400 errors may be returned:

Missing parameter:

{
  "error": {
    "statusCode": 400,
    "name": "Error",
    "message": "table is a required argument"
  }
}

Invalid table:

{
  "error": {
    "statusCode": 400,
    "name": "Error",
    "message": "table must be a non-empty array of: live, in_progress, taken_down, ignored"
  }
}

Invalid date:

{
  "error": {
    "statusCode": 400,
    "name": "Error",
    "message": "detectionStartDate must be an ISO 8601 date-time such as 1970-01-01T00:00:00Z"
  }
}

Start date after end date:

{
  "error": {
    "statusCode": 400,
    "name": "Error",
    "message": "detectionStartDate must not be after detectionEndDate"
  }
}

Support

If you have any questions or encounter any issues while using the Social Media URLs API, please contact our support team at [email protected].