Skip to content

job/preview

Runs a preview search for a job configuration without saving the job.

Method and path

POST /job/preview

Authentication

Authentication is required. See Authentication.

Permissions

Accessible to tier 1 and 2 users.

Request headers

HeaderRequiredDescription
X-Api-Key or X_API_KEYyesAPI key.
Content-Typeyesapplication/json.

Request body

FieldTypeRequiredDescription
typestringyesJob type code.
searchstringnoSearch string used by simple search platforms.
searchLangstringnoSearch language code used by some platforms.
search_langstringnoAlternate language field used by the wh preview branch.
searchJsonobjectnoStructured search object used by composed search platforms.
optionsobjectnoAdditional options. For nfo, supported keys include platforms and language_codes.

Example request

bash
curl -X POST "$SIGNAL_API_BASE_URL/job/preview" \
  -H "X-Api-Key: $SIGNAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "nfo",
    "searchJson": {
      "all": "\"example phrase\"",
      "authors": "example_account"
    }
  }'
json
{
  "type": "nfo",
  "searchJson": {
    "all": "\"example phrase\"",
    "authors": "example_account"
  },
  "options": {
    "platforms": ["facebook", "instagram"],
    "language_codes": ["it", "en"]
  }
}

Example response

json
{
  "totalResults": "<total_matches>",
  "posts": [
    {
      "title": "<post_title>",
      "post_text": "<post_text>",
      "full_uri": "<post_url>",
      "platform": "<platform_code>",
      "post_time": "<post_datetime>"
    }
  ]
}

Response fields

FieldTypeDescription
totalResultsintegerTotal matches returned by the upstream provider.
postsarray<object>Sample converted posts.

Post object fields

FieldTypeDescription
titlestringnull
post_textstringnull
full_uristringnull
platformstringnull
post_timestringnull
Additional fieldsmixedPlatform-specific converted fields can be included.

Notes

  • The endpoint calls upstream providers directly and returns a converted preview payload.
  • Authentication is handled through headers.

Doc rev.1.12.3 2026.05.08