User Guide Española
Admin GuidesVersionsAiimi
  • Introducing Aiimi Insight Engine
    • Española Release
    • Versions
  • Search
    • Searching for Information
      • Advanced Searches
      • Search Focus
      • Folder Browsing
    • Saved Searches
      • Saving a Search Query
      • Accessing Saved Searches
      • Bulk Search
        • Use Cases
        • Create a Bulk Search
          • Search Details
          • Map Fields
          • Review Search
          • Notifications
        • Bulk Search Template
    • Search Results
      • Lenses and Result Views
        • Map Lens
        • Timeline Lens
        • Relationship
          • Finding Result Connections
          • Minimum Results
          • Relationship Type
          • Accessible Relationship Map
        • Related Result Connections
          • Understand Connections
          • Adding card details
          • Explore More Connections
      • Filtering Results
        • Using Minimum Matching Terms
        • Using Synonyms
      • Sorting Results
      • Quick Actions
      • Why These Results
        • Find Searched Terms
        • Why My Search Matched
      • Related Results
      • Watermarking
    • Item Classification
      • Editing a Classification
    • AI Helper
    • Item Previews
      • Inline Preview
      • Full Screen Preview
  • Collections
    • What is a Collection?
      • Collection Types
    • Manage Collections
      • Create a Collection
      • Status Management
      • Edit, Delete or Merge
    • Using a Collection
      • Add Items to a Collection
      • Import Items to a Collection
      • Sharing a Collection
      • Adding Comments to a Collection
      • Redacting Collection Information
      • Exporting a Collection
  • Subject Access Request
    • Subject Access Requests
    • Create or Receive Data Requests
      • Create a Request From The Portal
      • Assigning a Request
      • Create a Manual Request
      • Create and Manage Data Subject Types
    • Finding a Request
    • Items for a Request
      • Redacting Sensitive Information
      • Getting Items Reviewed
    • Completing a Request
    • Assigning Users to a SAR
    • Message the Requestor
    • Internal Messaging
  • Profile
    • Profile Pictures
  • Help and Support
    • Leaving Feedback
    • Accessibility Statement for Aiimi Insight Engine
  • Advanced Applications
    • Metrics
    • Manage Collection Type
      • Create a Collection Type
    • Using The Manage Chart
    • OData API
      • Set Access
      • Aggregating Results
      • Query Parameters
Powered by GitBook
On this page
  • Optional query parameters:
  • Available Operators
  • Structure example
  • OData ID
  • Saved Search
  • Name
  • ID
  1. Advanced Applications
  2. OData API

Query Parameters

Optional query parameters:

$top - The number of results to return. If not given it will return the maximum set by your administrator. Return the top 200 results:

?$top=200

$skip - The number of results that are not returned in a result set. Don't return the first 10 results:

?$skip=10

Note - If you apply both Skip and Top, skip will be applied first so you always get the correct number of results. For Example, skip=10 and top=30 would return results 11-40.

$search - The search term to be used. Return results for water bills:

?$search=water bills

$orderby - Choose which fields to order by and if ascending or descending. If no order is given asc (ascending) is applied by default.

?$orderby=Owner desc

$filter - Add filters to your search.

?$filter= Year gt 2008

Combining Filters - You can combine multiple filters using "and" "or", "not" and "()".

$filter= Year le 2004 and status eq false

Available Operators

eq - equal

ne - not equal

lt - less than

gt- greater than

le - less than or equal to

ge - greater than or equal to

Structure example

The curly brackets {} show where data is needed they are not needed in the query.

{apiUrl}/odata/{entitySetName}?username={username}&api-key={apikey}&{OtherParameters}

OData ID

All results will be returned with a unique ODataID. This can be used as the unique identifier or used to request a single file.

You can request a single result from the API if you have its ODataID. the ID must be within single quotation marks.

apiURL/odata/entitysetname('odataID')

Saved Search

You can use any saved searches from Aiimi Insight Engine. You can reference them by Name or ID.

  1. If you do not provide a type in the query it will default to name.

  2. it is not possible to query ?savedsearch and $search together.

Name

The name must be unique and the user must have access to that saved search.

?savedSearch={SavedSearchName}&type=name

ID

If the saved search does not have a unique name you can use the ID.

?savedSearch={savedSearchID}&type=id

You can find your saved search ID within Aiimi Insight Engine.

  1. Go to your saved searches.

  2. Select the options menu of the relevant saved search.

  3. Select the Saved Search ID to copy it to your clipboard.

PreviousAggregating Results