For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Query Product Feed Products

POST
/feeds/{feed_id}/products/query

List products in a feed that match the supplied ad group product filters.

Query Product Feed Products

curl https://api.ads.openai.com/v1/feeds/$FEED_ID/products/query \
    -X POST \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "data": [
    {
      "body": "body",
      "brand": "brand",
      "filter_values": {
        "foo": "bar"
      },
      "image_url": "image_url",
      "item_id": "item_id",
      "offer_id": "offer_id",
      "price": "price",
      "product_id": "product_id",
      "target_url": "target_url",
      "title": "title",
      "availability": "availability",
      "variant": "variant"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "matched_count": 0,
  "object": "object",
  "total_count": 0
}
Path Parameters
feed_id: string
Body Parameters
JSON
after: optional string
filters: optional array of object { field, operator, values }
field: string

Feed attribute to filter. Filters are combined with AND. You can repeat a field to express a bounded range, for example price gte a lower bound and price lte an upper bound.

operator: "in" or "not_in" or "gt" or 6 more

Use in for membership; gt, gte, lt and lte only with price or star_rating.

One of the following:
"in"
"not_in"
"gt"
"gte"
"lt"
"lte"
"contains"
"not_contains"
"starts_with"
values: array of string

Match values. Numeric comparisons still use strings, for example ["4.5"].

limit: optional integer
minimum1
maximum500
target_country: optional string
Returns
data: array of object { body, brand, filter_values, 9 more }
body: string or null
brand: string or null
filter_values: map[unknown]
image_url: string or null
item_id: string or null
offer_id: string or null
price: string or null
product_id: string
target_url: string or null
title: string or null
availability: optional string or null
variant: optional string or null
first_id: string or null
has_more: boolean
last_id: string or null
matched_count: integer
object: string
total_count: integer
Returns Examples
200 — Example
{
  "data": [
    {
      "body": "body",
      "brand": "brand",
      "filter_values": {
        "foo": "bar"
      },
      "image_url": "image_url",
      "item_id": "item_id",
      "offer_id": "offer_id",
      "price": "price",
      "product_id": "product_id",
      "target_url": "target_url",
      "title": "title",
      "availability": "availability",
      "variant": "variant"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "matched_count": 0,
  "object": "object",
  "total_count": 0
}