# Catalog API - catalog/search not retrieving item with sku

**URL:** <https://developer.squareup.com/forums/t/catalog-api-catalog-search-not-retrieving-item-with-sku/3374>\
**Category:** Questions\
**Created:** [September 3, 2021, 11:03am UTC](https://developer.squareup.com/forums/t/catalog-api-catalog-search-not-retrieving-item-with-sku/3374 "2021-09-03T11:03:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thestitchbug.ca](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@thestitchbug.ca](https://developer.squareup.com/forums/u/thestitchbug.ca)\
**Post date:** [September 3, 2021, 11:03am UTC](https://developer.squareup.com/forums/t/catalog-api-catalog-search-not-retrieving-item-with-sku/3374/1 "2021-09-03T11:03:43Z")

</div>

For almost a year now, my custom program that I built has been searching items with the sku. My program has stopped working in the past day or so. Come to find out, all I get from my search now is.

```auto
{
  "latest_time": "2021-09-02T21:54:15.432Z"
}

```

I tried text\_query and exact\_query to no avail. So since this is in the questions category, my questions are, is the sku search coming back, it’s been over 24 hours now, if not, is there another way to search by sku? Is there another section of the Square site that I should be reporting this problem?

Thank you for any help provided.

---

<div class="post-metadata">

**Author:** ![bebca](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@bebca](https://developer.squareup.com/forums/u/bebca)\
**Post date:** [November 7, 2021, 8:41pm UTC](https://developer.squareup.com/forums/t/catalog-api-catalog-search-not-retrieving-item-with-sku/3374/2 "2021-11-07T20:41:40Z")

</div>

I had an issue with this as well.

I found that the fix was to select ITEM\_VARIATION in object\_types

So I ended up with

```auto
{
    "begin_time": "2021-21-06T12:00:00Z",
    "query": {
      "exact_query": {
        "attribute_name": "sku",
        "attribute_value": "MYBARCODE"
      }
    },
    "object_types": [
      "ITEM_VARIATION"
    ]
  }

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![thestitchbug.ca](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@thestitchbug.ca](https://developer.squareup.com/forums/u/thestitchbug.ca)\
**Post date:** [November 8, 2021, 9:07pm UTC](https://developer.squareup.com/forums/t/catalog-api-catalog-search-not-retrieving-item-with-sku/3374/3 "2021-11-08T21:07:13Z")

</div>

Thank you. I wish that I could have had this a couple of months earlier. It took me a few hours… many hours, but I was able to do a work around by using v2/catalog/search-catalog-items instead. I’ll have to remember this if my workaround stops working in the same manner.
