Skip to content
Menu
SilktideDevelopers

List the ads served with answers to your prompts

GET/v1/results/accounts/presence/ads/table
View as Markdown

Lists the ads that came with answers to your prompts, one row per ad, with how many answers carried it.

responses counts answers the ad was served with, and shown counts the ones that displayed it. Use shown for what somebody asking would have seen.

shown is a string of digits, such as "40", where the other counts are numbers. Convert it before you add it up.

Ads are sorted by responses, most first. search matches the headline, the advertiser and the host. For the answers that carried an ad, send its creativeKey as ad to List answers.

Request
curl "https://api.eu.silktide.com/v1/results/accounts/presence/ads/table?workspaceId=1&rowsPerPage=1" \
  -H "Authorization: silktide token=$SILKTIDE_API_KEY"
Response: The ad most often served
{
  "result": {
    "page": 1,
    "minPage": 1,
    "maxPage": 10,
    "numRows": 10,
    "rowsPerPage": 1,
    "rows": [
      {
        "creativeKey": "6b1c856ea2fc6bde0b228ed46e6f21b0",
        "title": "Used oak barrels, delivered",
        "snippet": "Inspected, steamed and ready to fill.",
        "platform": "bing-search",
        "advertiser": "Oakmoor Cooperage",
        "advertiserDomain": "oakmoor.example",
        "advertiserUrl": "https://oakmoor.example",
        "url": "https://oakmoor.example/used",
        "host": "oakmoor.example",
        "domain": "oakmoor.example",
        "imageUrl": "",
        "responses": 42,
        "prompts": 5,
        "shown": "40",
        "firstSeen": 1791018000,
        "lastSeen": 1793610000
      }
    ]
  },
  "selector": "/v1/results/accounts/presence/ads/table",
  "duration": 0.15
}

Request

Query parameters

  • workspaceIdintegerrequiredat least 1

    Where the account's markets live. Get the workspace answers with it.

  • marketIdintegerat least 1

    Only this market: the number after /presence/ in the market's address in Silktide. Left out, every market the API key's user can see.

  • frominteger

    Only answers asked for at or after this time, in Unix seconds. Defaults to 30 days before to.

  • tointeger

    Only answers asked for at or before this time, in Unix seconds. Defaults to now.

  • platformsstring

    Only these assistants, by id, comma-separated, such as chatgpt,gemini. Left out, all of them. An unknown id matches nothing.

  • excludePlatformsstring

    Leave out these assistants, by id, comma-separated, such as google-search,bing-search.

  • topicsstring

    Only these topics, by id, comma-separated. Left out, all of them.

  • brandsstring

    Only answers that name at least one of these brands, by id, comma-separated. Ids of brands the account does not track are ignored.

  • arenastring

    Which prompts' answers to read: market for prompts about a subject, reputation for prompts about a brand itself, or all. Defaults to all. Any other value answers with an error.

    One ofallmarketreputation

  • hoststring

    Only ads that open a page on this host, exactly.

  • domainstring

    Only ads that open a page on this domain.

  • advertiserstring

    Only this advertiser's ads: an advertiserDomain from Get advertisers.

  • renderedstring

    1 to count only ads that were displayed. Left out or 0, every ad served.

    One of01

  • columnsstring

    The 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.

  • sortstring

    The column to sort by, then :a for ascending or :d for descending, such as pageViews:d. Left out, the table's own order.

  • searchstring

    Only rows matching this text. What it searches depends on the table, most often the URL or title.

  • pageintegerat least 1

    The page of rows to return, from 1. Defaults to 1.

  • rowsPerPageintegerat least 1

    How many rows a page holds. Defaults to 100.

Response

200JSON.

  • resultobjectrequired

    The answer.

    Show 6 fields
    • pageintegerrequiredat least 1

      The page returned. Not always the page asked for, when that was out of range.

    • minPageintegerrequiredat least 1

      The first page. Always 1.

    • maxPageintegerrequired

      The last page at this rowsPerPage. With no rows, 0 or 1 depending on the table.

    • numRowsintegerrequired

      How many rows there are across every page.

    • rowsPerPageintegerrequiredat least 1

      How many rows a page holds.

    • rowslist of objectsrequired

      The rows on this page.

      Show 16 fields
      • creativeKeystringrequired

        The ad's id. The same headline and landing page on two assistants is two ads.

      • titlestringrequired

        Its headline.

      • snippetstringrequired

        Its text. Empty when it has none.

      • platformstringrequired

        The assistant or search engine that served it, by id.

      • advertiserstringrequired

        Who paid for it, as the ad says. Empty when it does not.

      • advertiserDomainstringrequired

        The advertiser's domain. Empty when unknown.

      • advertiserUrlstringrequired

        The advertiser's website. Empty when unknown.

      • urlstringrequired

        The page it opens.

      • hoststringrequired

        The host of that page.

      • domainstringrequired

        The domain of that page.

      • imageUrlstringrequired

        Its image. Empty when it has none.

      • responsesintegerrequired

        Answers that carried it.

      • promptsintegerrequired

        Prompts whose answers carried it.

      • shownstringrequiredmatches ^\d+$

        How many of those answers displayed it, as a string of digits. An ad can be served with an answer and not displayed.

      • firstSeeninteger

        The earliest of those answers. Sent unless columns leaves it out.

      • lastSeenintegerrequired

        The latest of those answers.

  • selectorstringrequired

    The query that answered, as its path: /v1/results/scores.

  • durationnumberrequired

    Seconds Silktide took to answer.

Errors

StatusTypeWhen
200EditionNotAvailableThe account does not have Silktide 5. Its status is 403. The body is an error despite the status.
200RuntimeNo 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.
200AccessDeniedNo 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.
401NotLoggedInNo API key was sent, or it is not a key for this region.(any operation)
429TooManyRequestsToo 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.