# How to get the synchronized new file information of WorkplaceSearch?

**URL:** <https://discuss.elastic.co/t/how-to-get-the-synchronized-new-file-information-of-workplacesearch/358889>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [May 7, 2024, 3:36am UTC](https://discuss.elastic.co/t/how-to-get-the-synchronized-new-file-information-of-workplacesearch/358889 "2024-05-07T03:36:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-amano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m-amano/32/62977_2.png) [@m-amano](https://discuss.elastic.co/u/m-amano)\
**Post date:** [May 7, 2024, 3:36am UTC](https://discuss.elastic.co/t/how-to-get-the-synchronized-new-file-information-of-workplacesearch/358889/1 "2024-05-07T03:36:34Z")

</div>

Hello.  
I'm using WorkplaceSearch of v.8.12.0 Elastic Cloud.  
I managed to get the last runtime of content source synchronization with this code.

`POST <ENTERPRISE_SEARCH_BASE_URL>/api/ws/v1/sources/<content-source-id>`

Now, I have a question which new file has been synchronized last runtime?  
Is there any API to get that info??

---

<div class="post-metadata">

**Author:** ![Artem\_Shelkovnikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artem_shelkovnikov/32/134322_2.png) [@Artem\_Shelkovnikov](https://discuss.elastic.co/u/Artem_Shelkovnikov)\
**Post date:** [May 7, 2024, 9:21am UTC](https://discuss.elastic.co/t/how-to-get-the-synchronized-new-file-information-of-workplacesearch/358889/2 "2024-05-07T09:21:48Z")

</div>

Hi Mizuki,

There is no direct API to get this information, however you can get this information in several steps:

1. Get the date and time when the sync was happening
2. Call the [Search API](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-search-api.html) for your content source and check the meta fields - there is a field `last_updated` that should answer your question. You should be able to use filters and sorting to make it return only results that changed from specific point in time

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 4, 2024, 9:22am UTC](https://discuss.elastic.co/t/how-to-get-the-synchronized-new-file-information-of-workplacesearch/358889/3 "2024-06-04T09:22:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
