# Amity Content Search API question: metadata search?

**URL:** https://forum.social.plus/t/amity-content-search-api-question-metadata-search/984
**Category:** General
**Created:** [November 19, 2023, 7:21pm UTC](https://forum.social.plus/t/amity-content-search-api-question-metadata-search/984 "2023-11-19T19:21:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.social.plus/u/Ryan)
#### Post date: [November 19, 2023, 7:21pm UTC](https://forum.social.plus/t/amity-content-search-api-question-metadata-search/984/1 "2023-11-19T19:21:27Z")

</div>

We are using the content-search API and running into an issue with searching a posts metadata. The metadata in a post is like this:

![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/661df1a84643e0424560a2d788ed4b3bec6741d1.png)

We are searching for it like this, but we do not get any posts back. It returns nothing. I removed the API key and userid from this code for this post:

```auto
{
    "apiKey": "hidden",
    "userId": "hidden",
    "categoryId": "71652faa3729304f3bbc369849f6708e",
    "populatePostObject": true,
    "from": 0,
    "size": 5,
    "query": {
        "targetId": [
            "64af01593714fddb10e0c7d2"
        ],
        "targetType": "community",
        "metadata": {
            "type": "normalBattle"
        }
    },
    "sort": [
        {
            "createdAt": {
                "order": "desc"
            }
        }
    ]
}

```

Any ideas?

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [November 20, 2023, 10:48am UTC](https://forum.social.plus/t/amity-content-search-api-question-metadata-search/984/2 "2023-11-20T10:48:37Z")

</div>

Hello, your request seems correct, we will need to verify a few things on our end. Our support team will contact you via email to assist further 🙏
