Support Forums

How can I get API for my domain?

Hi, I need the API of my domain for development. How can I get it? and Netlify has an API for yourself. Thank you

Hi @warrenbitbyte

You should find these resources useful

1 Like

Thanks. and do you have any videos for instructions using Netlify’s API ?

I’m not aware of any.

1 Like

So, how can I get it like the screenshot? I mean my API is https://api.mydomain.netlify.app or something like that.
Screen Shot 0033-09-08 at 20.40.11

If you simply want a subdomain, you can add a custom DNS entry in your domain’s DNS panel. This would work only if you’re using Netlify DNS. If you’re using some other DNS service, you’d have to add the subdomain there.

No, it is not just a subdomain. I need them for Blockchain using Javascript like that:
METASWAP_ETH_API_HOST = ‘https://api.metaswap.codefi.network’;
METASWAP_BSC_API_HOST = ‘https://bsc-api.metaswap.codefi.network’;

SWAPS_TESTNET_HOST = ‘https://metaswap-api.airswap-dev.codefi.network’;

I’m not sure what you’re asking for.

Are you trying to set environment variables?