Skip to content

Get Lookup Datasources

Retrieve the data sources used to generate a specific lookup report.

GET https://api.whitebridge.ai/lookups/{lookupId}/datasources

Parameters

ParameterTypeRequiredDescription
lookupIdstringYesThe unique identifier of the lookup

Response

Returns an array of datasource objects containing the raw data collected for the lookup:

json
[
  {
    "date": "2024-11-15T21:12:29Z",
    "lookupId": "48abcc2b-f0c6-4a6b-b203-be14ab3a80da",
    "source": "https://x.com/johndoe/status/1234567890123456789",
    "data": "{\"tweet\":{\"url\":\"https://x.com/johndoe/status/1234567890123456789\",\"full_text\":\"Excited about the new product launch next week!\",\"favorite_count\":42,\"retweet_count\":5},\"originalAuthor\":\"True\"}"
  },
  {
    "lookupId": "48abcc2b-f0c6-4a6b-b203-be14ab3a80da",
    "date": "2024-10-20T14:30:01.646Z",
    "source": "https://www.linkedin.com/feed/update/urn:li:activity:7123456789012345678",
    "data": "{\"author\":{\"title\":\"John Doe\",\"occupation\":\"Software Engineer @ Example Corp\"},\"text\":\"Happy to announce that I've joined Example Corp as a Software Engineer...\",\"created_at\":\"2024-10-20T14:30:01.646Z\",\"shares\":12,\"comments\":8,\"likes\":156}"
  },
  {
    "source": "https://www.johndoe.com/",
    "data": "John Doe - Personal Website\\nAbout Me\\nI'm a software engineer passionate about building great products...",
    "lookupId": "48abcc2b-f0c6-4a6b-b203-be14ab3a80da",
    "date": null
  }
]

Response Fields

FieldTypeDescription
datestring | nullWhen the data was collected (ISO 8601)
lookupIdstringThe lookup ID this datasource belongs to
sourcestringURL of the data source
datastringRaw text data collected from the source (may be JSON-encoded or plain text)

Example

GET https://api.whitebridge.ai/lookups/48abcc2b-f0c6-4a6b-b203-be14ab3a80da/datasources