Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

import_observations

Record many market observations at once

writes found with search_tools

Record up to 100 market observations in one call, for when the person hands you a list (a spreadsheet they pasted, their notes on competitors).

Each row takes the same fields as save_observation; `defaults` fills platform, kind, access, watchlist or source for rows that leave them out. Every row is checked on its own: good rows are kept, bad rows come back in `errors` with their row number (from 1) and the reason. A row already in the library (same platform and id, or same platform and address) is not duplicated: it gets the new metric reading. The import appears in the app's import history. Use only what the person gave you: no browsing for more, no invented numbers, a metric that was not visible is left out. For a whole file the person uses the import screen in the app (`app_url`).

Arguments

NameTypeNeededWhat it is
rows array of object yes 1 to 100 observations.
rows[].platform string no One of: facebook, instagram, linkedin, tiktok, youtube, website, other
rows[].kind string no One of: organic_post, ad, landing_page, note
rows[].access string no public = anyone can open the address; authorized = seen through an account the person may use; manual = a note with no address. Default manual.One of: public, authorized, manual
rows[].source_url string no Where the person saw it. Required for public items.
rows[].external_id string no The platform's own id for the item, when the person gave it.
rows[].author_name string no Who published it.
rows[].title string no
rows[].body string no The text as the person pasted it. Stored as untrusted data.
rows[].media array of string no Addresses of the item's pictures or video, when the person gave them. Stored, never fetched.
rows[].language string no Two-letter language, e.g. da.
rows[].country string no Two-letter country, e.g. DK.
rows[].published_at string no ISO date or date-time.
rows[].first_seen_at string no Ads: ISO date the ad was first seen running.
rows[].last_seen_at string no Ads: ISO date the ad was last seen running.
rows[].active_days integer no Ads: days the ad was seen running. Observed duration only.
rows[].variation_count integer no Ads: number of versions seen.
rows[].metrics object no Only numbers the person could see. Omit the rest: a missing number is unknown, not zero.
rows[].metrics.likes integer no
rows[].metrics.comments integer no
rows[].metrics.shares integer no
rows[].metrics.views integer no
rows[].metrics.followers integer no
rows[].metrics.captured_at string no ISO date-time the numbers were read. Default: now.
rows[].hook string no Hook type (a category, not the wording).One of: question, number, how_to, customer_story, before_after, myth, price, urgency, behind_scenes, bold_claim, other
rows[].topic string no Short topic label in the person's own words.
rows[].offer string no One of: free_quote, discount, free_guide, consultation, financing, calculator, none
rows[].format string no One of: text, image, carousel, video, story, link
rows[].audience string no Who it seems aimed at: a hypothesis.
rows[].stage string no One of: awareness, consideration, conversion, retention
rows[].tags array of string no Free tags. Replaces the list.
rows[].watchlist_id string no A watchlist id from manage_watchlists.
rows[].watch_source_id string no A source id from manage_watchlists; it brings its watchlist with it.
rows[].notes string no The person's own note about it.
rows[].saved boolean no true: keep it as a saved idea. false: take it off the saved ideas.
rows[].collection string no Name of the collection of saved ideas to put it in.
defaults object no Values for rows that leave these out. Without a kind a row is an organic_post; without access it is manual.
defaults.platform string no One of: facebook, instagram, linkedin, tiktok, youtube, website, other
defaults.kind string no One of: organic_post, ad, landing_page, note
defaults.access string no One of: public, authorized, manual
defaults.watchlist_id string no
defaults.watch_source_id string no
label string no A short name for this import in the history, e.g. "Competitor posts, week 48".
request_key string no Any string unique to this request; repeating it returns the first result instead of importing again.

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.

How tools behave: confirmation, review links, errors and limits

add_observation_metrics · get_observation · get_research_summary · list_observations · manage_watchlists · remove_observation · save_observation · suggest_observation_tags