Skip to content

Add endpoint to fetch year-based match counts by ngram text #2

@mtrenkmann

Description

@mtrenkmann

Fetching year-based match counts is currently a two-step process:

  1. Send a search request and get a list of matching lite ngrams (including ngram IDs).
  2. Send an ngram ID in an ngram request and get the corresponding full ngram with year-based stats.

This feature request proposes to support this use case in a one-step process by introducing a new endpoint like:

GET {base_url}/{corpus}/get?ngram={ngram_text}&flags={flags}
  • The response is a full ngram.
  • The lookup is case-sensitive.
  • Supported flags are ri, rn, rt, ra, see flags.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrest apiRelated to REST API

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions