AlgoViz

API search and filtering

easy 25 min

A list API lets the caller narrow, order and search.

Where it shows up

The same pattern appears across everyday software.

  • Stripe

    List endpoints take bracket operators such as created[gte], and a separate search endpoint has its own query language. The docs say new data is normally searchable in under a minute.

  • GitHub search

    Qualifiers such as is:open and label:bug in one text box. The REST search returns at most 1,000 results and marks incomplete_results when a query ran out of time.

  • Google APIs

    AIP-160 defines one filter expression language for list methods, so every service reads the same.

  • JSON:API

    sort with a minus sign, sparse fieldsets, and a reserved filter family whose strategy each server chooses.

  • OData

    $filter, $orderby, $select and $top as a standard query language in the URL.

  • Shop search pages

    Text goes to a search engine that returns ids and facet counts; price and stock are read fresh from the database.