Using the API
Last updated
Was this helpful?
Last updated
Was this helpful?
In order to use the GraphQL endpoints, you'll need to . You will need a Apps to access this endpoint. Only a subset of the endpoints can be accessed with a public token. This makes it possible to access functionality like querying product recommendations in an environment where it's not possible to protect the token, for example in a web browser. Each publicly accessible endpoint is denoted in the embedded documentation inside the .
Note: Nosto does not rate-limit the API usage but follows a fair-use policy. Nosto reserves the right to revoke API access for any abusive API usage patterns.
You can send your GraphQL requests as JSON to our API and have it correctly interpolate variables passed into it. To do so, set the Content-Type
header to application/json
.
Basic
API_APPS
POST
https://api.nosto.com/v1/graphql
If you want to send raw GraphQL queries to the API, you can still do so but you must set the Content-Type
header to application/graphql
.
Note: If you do not set the correct Content-Type header, the request will be interpreted as JSON and will fail.
Basic
API_APPS
POST
https://api.nosto.com/v1/graphql
You can use the browser's fetch API to request data from GraphQL. You will need to authenticate yourself and set the appropriate content-type headers.
You can send your GraphQL requests as JSON to our API and have it correctly interpolate variables passed into it. To do so, set the Content-Type
header to application/json
.
If you want to send raw GraphQL queries to the API, you can still do so but you must set the Content-Type
header to application/graphql
.
**NOTE:**If you do not set the correct Content-Type header, the request will be interpreted as JSON and will fail.