Title: Rewrite with external JSON API
Last modified: August 30, 2016

---

# Rewrite with external JSON API

 *  [thommycgn](https://wordpress.org/support/users/thommycgn/)
 * (@thommycgn)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/rewrite-with-external-json-api/)
 * Hi,
 * I’m trying to develop a new theme wich integrates an extern already existing 
   JSON Api for cities and events.
 * URL-Structure:
    example.com/[city]
 * should check the api for existing city. If not and not a page with this name 
   existing -> 404 Error, else use template for showing city-view.
 * URL-Structure:
    example.com/[city]/[event-name]
 * The same like before but checking events.
 * Is this possible with WordPress? I’m new in WP Developing, so I would be happy
   for any hints how to realize this. Maybe some examples?

The topic ‘Rewrite with external JSON API’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 0 replies
 * 1 participant
 * Last reply from: [thommycgn](https://wordpress.org/support/users/thommycgn/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/rewrite-with-external-json-api/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
