We are integrating some web-services in our website and it is mostly about integrating post codes search within the website.
There are couple of ways to build this, the easiest is below but we are not sure what would be the impact of that on SEO
If the client directly hits the same URL above, JS would parse the URL and load the same page with the same results. With this way we don't have to create pages manually for each post code search and we can just manipulate the DOM with the result from the API. We aren't sure if the page is same , google would index these pages or not or might index only half of it.
Other way of doing is that once the results are obtained from the API's we create the page dynamically for each and every search result which seems ugly.
Any pointers to this would be helpful. Thanks folks. Looking forward for the reply.