---
agentTools:
  projectIndex: https://pfpro.readme.io/llms.txt
---

# Count Alert

**1. Add your access profile, username, and search type to the request headers.**

[block:callout]
{
  "type": "danger",
  "body": "DataAlertsCountAlert will be the search type in your request headers for \"galaxy-search-type\"",
  "title": "Please Note:"
}
[/block]

[block:html]
{
  "html": "<div>\n  <ul class=\"headers\">\n    <li>galaxy-ap-name: [Access Profile Name]</li>\n\t\t<li>galaxy-ap-password: [Access Profile Password]</li>\n  \t<li>galaxy-client-session-id: (Optional) Session ID for logging</li>\n  \t<li>galaxy-client-type: [Galaxy Client Type] (required for Javascript clients)</li>\n    <li>galaxy-search-type: [DataAlertsCountAlert] </li>\n  </ul>\n</div>\n\n<style>\n  .muted { opacity: 0.7; }\n  .headers li { padding-left: 2rem; }\n</style>"
}
[/block]

**2. Add search criteria to your request.**

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"clientId\": \"9b0375f5-5053-465f-8086-08d98f38e5cd\",\n  \"subClientId\": \"\",\n  \"alertType\": \"NewBestPublicAddress\",\n  \"tahoeIds\": [\n    \"G-XXXXXXXXXXXXXXXXXX1\",\n    \"G-XXXXXXXXXXXXXXXXXX2\",\n    \"G-XXXXXXXXXXXXXXXXXX3\",\n  ]\n  \"sinceDate\": \"\"\n}",
      "language": "json"
    }
  ]
}
[/block]

**3. Set the desired pagination rules (defaults to 1000 results per page if not specified)**

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"clientId\": \"9b0375f5-5053-465f-8086-08d98f38e5cd\",\n  \"subClientId\": \"\",\n  \"alertType\": \"NewBestPublicAddress\",\n  \"tahoeIds\": [\n    \"G-XXXXXXXXXXXXXXXXXX1\",\n    \"G-XXXXXXXXXXXXXXXXXX2\",\n    \"G-XXXXXXXXXXXXXXXXXX3\",\n  ]\n  \"sinceDate\": \"\",\n  \"Page\": 1,\n  \"ResultsPerPage\": 10\n}",
      "language": "json"
    }
  ]
}
[/block]

**4. Submit your search.**