List the news stories written for a market
/v1/results/accounts/presence/news/storiesLists the news stories written for one market, from what was published about its topics and brands. Silktide writes each story with AI, from the pages it found.
Stories are sorted newest day first, and within a day by relevance. search matches the headline and the body.
curl "https://api.eu.silktide.com/v1/results/accounts/presence/news/stories?marketId=3&criteria=relevance%3Amin-4&columns=headline%2Cday%2Crelevance%2Clead%2Cbody&rowsPerPage=1" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"result": {
"page": 1,
"minPage": 1,
"maxPage": 3,
"numRows": 3,
"rowsPerPage": 1,
"rows": [
{
"storyId": 14,
"headline": "Oakmoor promises delivery in two days",
"imageUrl": "",
"day": 1793577600,
"relevance": 4,
"pageCount": 2,
"keyPoints": [
"Oakmoor will deliver stocked barrels in two working days from January"
],
"actions": [
"Say on your delivery page how long your own barrels take"
],
"brands": [
{
"brandId": 5,
"isIdentity": false,
"isPrincipal": true
}
],
"lead": "A direct competitor is now faster than you.",
"body": "Oakmoor Cooperage will deliver stocked barrels in two working days from January."
}
]
},
"selector": "/v1/results/accounts/presence/news/stories",
"duration": 0.02
}Request
Query parameters
workspaceIdintegerat least 1The workspace, when you do not send
marketId. Send at least one of them.marketIdintegerat least 1The market: the number after
/presence/in its address in Silktide. Left out, the account's default market.fromintegerOnly stories about a day at or after this time, in Unix seconds. Defaults to 30 days before
to.tointegerOnly stories about a day at or before this time, in Unix seconds. Defaults to now.
brandsstringOnly stories that name at least one of these brands, by id, comma-separated.
unbrandedstring1for only stories that name no tracked brand.brandsis then ignored.One of
01topicIdintegerat least 1Only stories about this topic.
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.criteriastringFilters on the table's columns, as
column:value, joined with;.relevancetakesmin-1(every story, the default) tomin-5, such asrelevance:min-4for 4 or more.
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 12 fieldsHide fields
storyIdintegerrequiredat least 1The story.
headlinestringrequiredIts headline.
imageUrlstringrequiredAn image from one of its sources. Empty when there is none.
dayintegerrequiredThe day it is about.
relevanceintegerrequired1 to 5How much it matters to this market, from
1(background) to5(critical).pageCountintegerrequiredHow many published pages it was written from.
keyPointslist of stringsrequiredWhat happened, in short points.
actionslist of stringsrequiredWhat you could do about it.
brandslist of objectsrequiredThe tracked brands it names.
Show 3 fieldsHide fields
brandIdintegerrequiredat least 1The tracked brand. See Get brands.
isIdentitybooleanrequiredWhether it is your own brand.
isPrincipalbooleanrequiredWhether the story is mainly about it.
leadstringWhy it matters, in a sentence or two. Empty on older stories. Only when
columnsnames it.bodystringThe story. Only when
columnsnames it.createdintegerWhen it was written. Only when
columnsnames it.
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 | Neither workspaceId nor marketId was sent, or marketId is not in that workspace. 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.