HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Searching

All user-specified searches in the API are done with a simple search syntax where comparison expressions may be joined together with logical operators. See below for some quick tips and examples.

Syntax

Logical Operators

šŸ“˜

AND takes precedence over OR, but parentheses may be used to change precedence.

  • AND :Ā ;
  • OR:Ā ,

Comparison Operators

šŸ“˜

For comparison operators, the first operand should be a searchable field. The searchable fields are listed in the description of the search parameter for each searchable endpoint. The second operand (for binary operators) will be interpreted as a literal.

  • Equal to :Ā ==
  • Not equal to :Ā !=
  • Less than :Ā <
  • Less than or equal to :Ā <=
  • Greater than operator :Ā >
  • Greater than or equal to :Ā >=
  • In :Ā =in=
    • The second operand for this operator is a set. Sets can be defined with parentheses with elements separated using commas, such as (A,B,C)
    • This is shorthand for many equality expressions OR'd together
  • Not in :Ā =out=
    • The second operand for this operator is a set. Sets can be defined with parentheses with elements separated using commas, such as (A,B,C)
    • This is shorthand for many inequality expressions AND'd together
  • Null : =isnull=true
    • Note: this is a unary operator and changing true to something else will have no effect
  • Not null: =notnull=true
    • Note: this is a unary operator and changing true to something else will have no effect

Examples

šŸ‘

You can use * as a wildcard at the end of a search string literal!

🚧

Be sure to URL encode the searches or it may not work as you intend

Providers starting with "Georgia"

  • https://api.arcadia.com/plug/providers?search=providerName==Georgia*

Searching for enabled accounts with a specific account number

  • https://api.arcadia.com/plug/accounts?search=enabled==true;normalizedAccountNumber==123

Searching for meters within a specified list

  • https://api.arcadia.com/plug/meters?search=meterNumber=in=(123,456,789)

Searching for a provider by exact name

🚧

When searching for a term with a space in it, use quotes around the string

  • https://api.arcadia.com/plug/providers?search=providerName=="Georgia Power"

Searching for webhooks that have succeeded OR are scheduled to retry

  • https://api.arcadia.com/plug/webhooks?search=status==SUCCESS,nextScheduledSend=notnull=true