# Synthetic check for change in the API output

**URL:** <https://community.dynatrace.com/t/synthetic-check-for-change-in-the-api-output/53679>\
**Category:** Synthetic Monitoring\
**Tags:** problem-detection, synthetic-monitoring, dynatrace-api\
**Created:** [October 9, 2025, 7:56pm UTC](https://community.dynatrace.com/t/synthetic-check-for-change-in-the-api-output/53679 "2025-10-09T19:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![girish\_dindukur](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@girish\_dindukur](https://community.dynatrace.com/u/girish_dindukur)\
**Post date:** [October 9, 2025, 7:56pm UTC](https://community.dynatrace.com/t/synthetic-check-for-change-in-the-api-output/53679/1 "2025-10-09T19:56:27Z")

</div>

My requirement is

for one of the API i am getting output as

{  
“syncToken”: “1738496063”,  
“createDate”: “2025-02-02-11-34-23”,  
“prefixes”: [  
{  
“region”: “ap-northeast-1”,  
“provider”: “aws”,  
“ip\_prefix”: [  
“100.100.100.100/23”  
]  
},  
{  
“region”: “ap-northeast-2”,  
“provider”: “aws”,  
“ip\_prefix”: [  
“200.200.200.200/23”  
]  
}  
]  
}

can i create a synthetic script and throw an alert if there are any change to this output?

is this possible?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 10, 2025, 6:30am UTC](https://community.dynatrace.com/t/synthetic-check-for-change-in-the-api-output/53679/2 "2025-10-10T06:30:00Z")

</div>

If you want to detect only change (e.g. not validate a particular IP address) in synthetic, then you have at least two options:

- Have the last value stored in a credential vault, and validate it in your tests (use the [script execution](https://docs.dynatrace.com/docs/shortlink/http-monitor-pre-post-script#retrieve-data) for that) - I recommend this approach.
- Have update the test using [API](https://docs.dynatrace.com/docs/shortlink/api-synthetic)
