Stay organized with collections
Save and categorize content based on your preferences.
Cloud Natural Language API has both traditional REST/HTTP and gRPC
interfaces. If you don't want to use our client
libraries to access the Cloud Natural Language API, you have the option of writing your own client libraries that use its
REST/HTTP or gRPC API surface. We recommend this approach only if your language
or other needs are not met by our provided client libraries.
gRPC API
You can generate your own gRPC client libraries in any gRPC-supported language
for the Cloud Natural Language API API from its .proto service definition using these
resources:
There are a number of possible options for interacting with a service's REST interface.
Use the following resources to help you create your own clients for the REST API:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Service APIs Overview\n\nCloud Natural Language API has both traditional REST/HTTP and [gRPC](http://grpc.io)\ninterfaces. If you don't want to use our [client\nlibraries](/natural-language/docs/reference/libraries) to access the Cloud Natural Language API, you have the option of writing your own client libraries that use its\nREST/HTTP or gRPC API surface. We recommend this approach only if your language\nor other needs are not met by our provided client libraries.\n\ngRPC API\n--------\n\nYou can generate your own gRPC client libraries in any gRPC-supported language\nfor the Cloud Natural Language API API from its .proto service definition using these\nresources:\n\n- [Cloud Natural Language API service definition](https://github.com/googleapis/googleapis/blob/master/google/cloud/language/v1/language_service.proto)\n- [gRPC documentation](http://www.grpc.io/docs/): Everything you need to generate and use your own gRPC client code\n- [RPC API Reference](/natural-language/docs/reference/rpc): Language-independent overview of the RPC surface\n\nREST/HTTP API\n-------------\n\nThere are a number of possible options for interacting with a service's REST interface.\nUse the following resources to help you create your own clients for the REST API:\n\n- [REST API Reference](/natural-language/docs/reference/rest)\n- [Guidelines for working with Google HTTP APIs](https://cloud.google.com/apis/docs/http)\n- [API\n Discovery Service](https://developers.google.com/discovery/v1/getting_started): Exposes machine readable metadata about the REST/HTTP API surface, useful for creating client libraries, tools, and plugins.\n- [Directory of client samples](https://developers.google.com/discovery/libraries) built with REST/HTTP APIs and the Google API Discovery Service."]]