Java NodeJS Python .NET PHP Ruby Scala Go C++ Tools
  • Java API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Transactions KV Mutate
  • Transactions N1QL
  • Upsert
  • NodeJS API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Python API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • .NET API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • PHP API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Ruby API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Scala API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Go API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • C++ API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Tools
  • N1QL Query Using curl
  • Generate Test Data
  • More Online Tools

shell - N1QL Query Using curl

The above example shows a primary key lookup using N1QL through the query service's REST API via curl.

Visit our docs to learn more about N1QL REST API.
Also try Couchbase Server in an online playground: Start Playground Session