---
title: "Discussion on \"URLs building for the API's\" | Hashnode"
description: "Discussion on \"URLs building for the API's\". If you find yourself in this case:\nconst API_URL = 'https://api.example.com/';\n\nfunction getUserPosts(id, blogId, limit, offset) {\n  const requestUrl = `${API_URL}/users/${id}/blogs/${blogId}/posts?limit=${limit}&offset=${offset}`;\n  // send HTTP req..."
url: "https://hashnode.com/posts/urls-building-for-the-apis/5f8735a6c5c9ff500d6cb6f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [URLs building for the API's](https://electron.hashnode.dev/urls-building-for-the-apis?utm_source=hashnode&utm_medium=feed)

If you find yourself in this case: const API\_URL = 'https://api.example.com/'; function getUserPosts(id, blogId, limit, offset) { const requestUrl = \`${API\_URL}/users/${id}/blogs/${blogId}/posts?limit=${limit}&offset=${offset}\`; // send HTTP req...

Oct 14, 2020 · 1 min read · electron.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#ajax](https://hashnode.com/tag/ajax)
-   [#http](https://hashnode.com/tag/http)

## Written by

[Cristian Gherghel](https://hashnode.com/@electron)

@electron · Transilvania, RO

  
[View profile](https://hashnode.com/@electron)

art

I am a web dev, specialized in FE technologies, but also very comfortable in BE.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
