Skip to content
Navigation

List reads

GET
https://whyviral.ai/api/v1/reads

Your account’s latest reads from all its keys, newest first. Free.

Authorization

  • bearer
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • apiKeyHeader
    optional
    API key in header

    x-api-key: <token>

Query parameters

  • limit
    optional
    integer

    How many reads, 1 to 100.

    maximum: 100 · minimum: 1 · default: 20

Returns

200

The reads.

JSON
  • object
    string
    required
  • data
    array of
    object
    required

    Newest first.

    • id
      string
      required

      The read’s id on your account.

    • object
      string
      required

      "read".

    • status
      pending
      or
      ready
      or
      failed
      required

      "pending", "ready" or "failed".

    • url
      string
      required

      The post’s link, as you sent it.

      format: uri
    • platform
      tiktok
      or
      instagram
      or
      youtube
      or
      x
      required

      "tiktok", "instagram", "youtube" or "x".

    • cached
      boolean
      required

      True when WhyViral had already read the post, so it came back at once.

    • credits
      integer
      required

      What this read cost; 0 when it failed.

      minimum: 0
    • created_at
      string
      required

      When you asked, in ISO 8601 UTC.

      format: date-time
    • finished_at
      required

      When it became ready or failed; null while pending.

      Any of the following:

      • string
      • null
    • error
      required

      {code, message} when it failed, else null.

      Any of the following:

      • ReadError
        • code
          string
          required

          TOO_LONG: A video longer than 180 seconds. NOT_FOUND: The post doesn’t exist or was deleted. PRIVATE: The post is private. UNAVAILABLE: The post was taken down or isn’t available to us. TIMEOUT: Reading the post took too long. Any other code means the read didn’t work this time.

        • message
          string
          required

          What went wrong, in words.

      • null
    • post
      required

      The post as the platform shows it; null until it’s fetched.

      Any of the following:

      • Post
        • kind
          video
          or
          slides
          or
          text
          required

          "video", "slides" (photo post, carousel or slideshow) or "text".

        • caption
          string
          required

          The caption or the post’s text.

        • posted_at
          required

          When it was posted, or null.

          Any of the following:

          • string
          • null
        • duration_sec
          required

          A video’s length in seconds, else null.

          Any of the following:

          • number
          • null
        • slide_count
          required

          How many slides a photo post has, else null.

          Any of the following:

          • integer
          • null
        • cover_url
          required

          A public cover image WhyViral hosts, or null.

          Any of the following:

          • string
          • null
        • creator
          required

          {handle, name, profile_url, avatar_url, followers}, or null when unknown.

          Any of the following:

          • Creator
          • null
        • stats
          object
          required
          • views
            required

            Any of the following:

            • integer
            • null
          • likes
            required

            Any of the following:

            • integer
            • null
          • comments
            required

            Any of the following:

            • integer
            • null
          • shares
            required

            Any of the following:

            • integer
            • null
          • saves
            required

            Any of the following:

            • integer
            • null
          • as_of
            required

            Any of the following:

            • string
              When the counts were read.
            • null
      • null
    • read
      required

      What the post says and shows; null until it’s ready.

      Any of the following:

      • ReadContent
        • category
          string
          ·
          one of 12 values
          required

          One of the categories below.

          Allowed values: places, recipes, shopping, guides, articles, books, movies_tv, workouts, events, software_tools, ideas, other
        • title
          string
          required

          A short headline naming the concrete thing, in the post’s language.

        • summary
          array of
          string
          required

          One to three short sentences on what the post gives you.

        • language
          required

          The post’s main language as an ISO 639-1 code, or null.

          Any of the following:

          • string
          • null
        • unit
          second
          or
          slide
          or
          line
          required

          What every at counts: "second", "slide" or "line".

        • transcript
          array of
          object
          required

          [{at, text}]: spoken lines verbatim, or a text post’s lines.

          • at
            number
            required

            A second, slide or line number, by the read’s unit.

          • text
            string
            required
        • on_screen_text
          array of
          object
          required

          [{at, text}]: words shown on screen or on each slide, verbatim.

          • at
            number
            required

            A second, slide or line number, by the read’s unit.

          • text
            string
            required
        • ingredients
          array of
          object
          required

          [{quantity, item}]: food or drink ingredients, quantities as stated.

          • quantity
            required

            Any of the following:

            • string
            • null
          • item
            string
            required
        • steps
          array of
          string
          required

          The steps the post gives, in order.

        • places
          array of
          object
          required

          [{name, address, city, country}]; country is an ISO 3166-1 alpha-2 code.

          • name
            string
            required
          • address
            required

            Any of the following:

            • string
            • null
          • city
            required

            Any of the following:

            • string
            • null
          • country
            required

            Any of the following:

            • string
            • null
        • events
          array of
          object
          required

          [{name, when, where}] as stated.

          • name
            string
            required
          • when
            required

            Any of the following:

            • string
            • null
          • where
            required

            Any of the following:

            • string
            • null
        • products
          array of
          object
          required

          [{name, brand, price, store}] as stated.

          • name
            string
            required
          • brand
            required

            Any of the following:

            • string
            • null
          • price
            required

            Any of the following:

            • string
            • null
          • store
            required

            Any of the following:

            • string
            • null
        • apps
          array of
          object
          required

          [{name, platforms, price}]: apps, websites and AI tools named.

          • name
            string
            required
          • platforms
            array of
            string
            required
          • price
            required

            Any of the following:

            • string
            • null
        • works
          array of
          object
          required

          [{kind, title, by}]: books, films and shows; kind is "book", "movie" or "show".

          • kind
            book
            or
            movie
            or
            show
            required
          • title
            string
            required
          • by
            required

            Any of the following:

            • string
            • null
      • null

401

INVALID_API_KEY: The key is missing, mistyped or revoked.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

403

ACCOUNT_DISABLED: The key’s account is disabled.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

500

INTERNAL: Something broke on our side; try again.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

Type to search…

↑↓ navigate↵ selectEsc close