v1

latestOpenAPI 3.0.32026-07-26710398.3 KB
Project

List Fanout Shopping Queries

List the fanout shopping queries of a project

post/queries/shopping

Query parameters

project_idstring

Required if using a company api key

Example:or_f45b94ba-5e35-4982-93ed-285e72ee14eb

Request body

project_idstring

Required if using a company api key

limitnumber
offsetnumber
start_datestring date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

end_datestring date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

Example request

{
  "project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb",
  "start_date": "2025-09-22",
  "end_date": "2025-09-22",
  "filters": [
    {
      "field": "prompt_id",
      "operator": "in",
      "values": [
        "pr_abc123"
      ]
    }
  ]
}

Response

Success

total_countnumber required

Total number of matching shopping queries, ignoring pagination

totalCountnumber required

Total number of matching shopping queries, ignoring pagination

Example response

{
  "data": [
    {
      "prompt": {
        "id": "pr_93f790de-5b7a-45ee-b782-61103c81f20d"
      },
      "chat": {
        "id": "ch_61184892-36ad-4e1a-8178-3a83608f7711"
      },
      "model": {
        "id": "gpt-4o-search"
      },
      "model_channel": {
        "id": "openai-1"
      },
      "date": "2025-09-17",
      "query": {
        "text": "What is Peec?",
        "products": [
          "Peec AI",
          "Peec Pro"
        ]
      }
    }
  ],
  "total_count": 42,
  "totalCount": 42
}