Dynamic, real-time knowledge, base updating via API or URL

Every API has a specific path, such as v1/quote
and a method ( GET, POST, PUT, etc.).

you can refer to the API provider documentation
then copy the server URL , method, and path that you wish to use.

Here’s an example:

  • API URL: https://finnhub.io/api/
  • Method and Path: GET /quote
  • JSON Body:
{
  "symbol":"AAPL"
}

If the documentation specifies that your request should be sent within the path instead of in JSON, the path would appear as follows:

/quote?symbol=AAPL and you don’t need to send it in JSON

In this case, “AAPL” is a variable. If you want GPT to search for any symbol, replace it with {variable} or {symbol}.

So, if you’ve determined what you need (server URL, method, path, and “JSON if required” ), you can go to ChatGPT, paste it, and say

Build API schema as JSON.

If your API provider is well-known, you can simply ask ChatGPT. For example, you could say:

“Build API schema as JSON for polygon.io Includes server url, path … etc”.


with GPT , You don’t need skills!

1 Like