List what assistants searched the web for while answering
/v1/results/accounts/presence/searches/tableLists the web searches an assistant ran before it answered, one row per answer. They show who the assistant thought to look for, which is an earlier question than who it ended up naming.
Today only ChatGPT reports its searches, so only its answers are listed. An answer with no row is one whose searches were not reported, not one that searched for nothing.
Rows are sorted newest first. search matches the searches and the prompt.
curl "https://api.eu.silktide.com/v1/results/accounts/presence/searches/table?workspaceId=1&rowsPerPage=1" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"result": {
"page": 1,
"minPage": 1,
"maxPage": 154,
"numRows": 154,
"rowsPerPage": 1,
"rows": [
{
"responseId": 83810,
"promptId": 12,
"promptText": "Who sells used oak barrels to small wineries?",
"isBranded": false,
"requestedAt": 1793610000,
"searchList": [
"used oak barrels small wineries suppliers",
"oakmoor cooperage used barrel prices"
],
"moreSearches": 0,
"searchDetail": [
{
"query": "used oak barrels small wineries suppliers",
"kind": "shortlist",
"subject": "",
"segments": [
{
"text": "used oak barrels small wineries suppliers",
"brandId": 0,
"entityId": 0
}
]
},
{
"query": "oakmoor cooperage used barrel prices",
"kind": "check",
"subject": "Oakmoor Cooperage",
"segments": [
{
"text": "oakmoor cooperage",
"brandId": 5,
"entityId": 0
},
{
"text": " used barrel prices",
"brandId": 0,
"entityId": 0
}
]
}
],
"brands": [
"Oakmoor Cooperage"
],
"brandDetail": [
{
"brandId": 5,
"entityId": 0,
"name": "Oakmoor Cooperage",
"url": "https://oakmoor.example",
"tracked": true,
"isIdentity": false
}
]
}
]
},
"selector": "/v1/results/accounts/presence/searches/table",
"duration": 1.1
}Request
Query parameters
workspaceIdintegerrequiredat least 1Where the account's markets live. Get the workspace answers with it.
marketIdintegerat least 1Only this market: the number after
/presence/in the market's address in Silktide. Left out, every market the API key's user can see.fromintegerOnly answers asked for at or after this time, in Unix seconds. Defaults to 30 days before
to.tointegerOnly answers asked for at or before this time, in Unix seconds. Defaults to now.
platformsstringOnly these assistants, by id, comma-separated, such as
chatgpt,gemini. Left out, all of them. An unknown id matches nothing.excludePlatformsstringLeave out these assistants, by id, comma-separated, such as
google-search,bing-search.topicsstringOnly these topics, by id, comma-separated. Left out, all of them.
brandsstringOnly answers that name at least one of these brands, by id, comma-separated. Ids of brands the account does not track are ignored.
arenastringWhich prompts' answers to read:
marketfor prompts about a subject,reputationfor prompts about a brand itself, orall. Defaults toall. Any other value answers with an error.One of
allmarketreputationnamedBrandintegerat least 1Only answers with a search that names this tracked brand, by id.
namedNameintegerat least 1Only answers with a search that names this untracked name, by
entityId.columnsstringThe columns to return, comma-separated, such as
url,pageViews. Left out, the table's default columns. Send a string even in a JSON body: an array is ignored.sortstringThe column to sort by, then
:afor ascending or:dfor descending, such aspageViews:d. Left out, the table's own order.searchstringOnly rows matching this text. What it searches depends on the table, most often the URL or title.
pageintegerat least 1The page of rows to return, from
1. Defaults to1.rowsPerPageintegerat least 1How many rows a page holds. Defaults to
100.
Response
200JSON.
resultobjectrequiredThe answer.
Show 6 fieldsHide fields
pageintegerrequiredat least 1The page returned. Not always the page asked for, when that was out of range.
minPageintegerrequiredat least 1The first page. Always
1.maxPageintegerrequiredThe last page at this
rowsPerPage. With no rows,0or1depending on the table.numRowsintegerrequiredHow many rows there are across every page.
rowsPerPageintegerrequiredat least 1How many rows a page holds.
rowslist of objectsrequiredThe rows on this page.
Show 10 fieldsHide fields
responseIdintegerrequiredat least 1The answer. One prompt put to one assistant, once.
promptIdintegerrequiredat least 1The prompt. See Get prompts.
promptTextstringrequiredThe prompt the assistant was answering.
isBrandedbooleanrequiredWhether the prompt names a brand.
requestedAtintegerrequiredWhen the answer was asked for.
searchListlist of stringsrequiredWhat it searched for, in order, up to 12 searches.
moreSearchesintegerrequiredHow many more searches it ran than
searchListholds.searchDetaillist of objectsrequiredThe same searches, with what each was for and who it names.
Show 4 fieldsHide fields
querystringrequiredWhat it searched for.
kindstringrequiredshortlistfor the answer's first search,sitefor a search within one website,checkfor a later search naming one brand or product, andfollowUpfor any other.One of
shortlistsitecheckfollowUpsubjectstringrequiredThe one name it searches for. Empty when it names none, or several.
segmentslist of objectsrequiredquerysplit where it names somebody.Show 3 fieldsHide fields
textstringrequiredA stretch of
query. Joined, they make the whole of it.brandIdintegerrequiredThe tracked brand it names.
0when it names none.entityIdintegerrequiredThe untracked name it is.
0when it is a tracked brand, or names nobody.
brandslist of stringsrequiredEvery name the searches look for, tracked brands first.
brandDetaillist of objectsrequiredThe same names, with what is known of each.
Show 6 fieldsHide fields
brandIdintegerrequiredThe tracked brand it names.
0when it names none.entityIdintegerrequiredThe untracked name it is.
0when it is a tracked brand, or names nobody.namestringrequiredThe name.
urlstringrequiredIts web address. Empty when none is known.
trackedbooleanrequiredWhether it is a brand you track.
isIdentitybooleanrequiredWhether it is one of your own brands.
selectorstringrequiredThe query that answered, as its path:
/v1/results/scores.durationnumberrequiredSeconds Silktide took to answer.
Errors
| Status | Type | When |
|---|---|---|
| 200 | EditionNotAvailable | The account does not have Silktide 5. Its status is 403. The body is an error despite the status. |
| 200 | Runtime | No workspaceId was sent, or arena is not one of its values. Its status is 500, and its message does not say why. The body is an error despite the status. |
| 200 | AccessDenied | No such workspace or market exists in the account, or the API key's user cannot see it. Its status is 403. The body is an error despite the status. |
| 401 | NotLoggedIn | No API key was sent, or it is not a key for this region.(any operation) |
| 429 | TooManyRequests | Too many requests to this path in five seconds. Retry after the number of seconds in the Retry-After header, which properties.retryAfter repeats.(any operation) |
| 503 | - | Silktide is busy. Retry after the number of seconds in the Retry-After header.(any operation) |
Every error has the same body. See Errors.
Access
- Permission
- Can see this market
- Plan feature
- None
- Edition
- Silktide 5 only
- Cost
- Free
- Available since
- v1.2.0
Try it
Sends a real request to your account from this browser. Your key stays in this tab and goes only to the Silktide API.