Title: Query Third Party API
Last modified: April 28, 2022

---

# Query Third Party API

 *  Resolved [barrenth](https://wordpress.org/support/users/barrenth/)
 * (@barrenth)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/query-third-party-api/)
 * Hi there,
 * I am looking for a way to query a third party GraphQL API to integrate a [car parts finder](https://docs.partly.com/api/).
 * Is it possible to make external queries between this API and the WPGraphQL plugin?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * (@jasonbahl)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/query-third-party-api/#post-16038430)
 * [@barrenth](https://wordpress.org/support/users/barrenth/) it is possible to 
   use WPGraphQL as an API that can then fetch data from other sources and return
   it.
 * WPGraphQL focuses on exposing data managed in WordPress in the Schema, but there
   are a lot of APIs that allow you to add Fields and Types to the Schema and you
   can control how those fields are resolved. The data can come from anywhere!
 * I have a basic example showing how to fetch data from a remote API and return
   it here: [https://github.com/wp-graphql/wp-graphql-dad-jokes/blob/master/wp-graphql-dad-jokes.php#L20-L34](https://github.com/wp-graphql/wp-graphql-dad-jokes/blob/master/wp-graphql-dad-jokes.php#L20-L34)
 * It’s a simple example, but it shows how to register a field to the Schema, and
   have it resolve with data from a remote API.
 * You can see an example of the outcome in the README here: [https://github.com/wp-graphql/wp-graphql-dad-jokes#readme](https://github.com/wp-graphql/wp-graphql-dad-jokes#readme)
 * Additionally, you can read up on the different APIs in WPGraphQL for registering
   fields, types, connections and more: [https://www.wpgraphql.com/functions](https://www.wpgraphql.com/functions)
    -  This reply was modified 3 years, 8 months ago by [Jason Bahl](https://wordpress.org/support/users/jasonbahl/).

Viewing 1 replies (of 1 total)

The topic ‘Query Third Party API’ is closed to new replies.

 * ![](https://ps.w.org/wp-graphql/assets/icon-256x256.png?rev=3111985)
 * [WPGraphQL](https://wordpress.org/plugins/wp-graphql/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-graphql/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-graphql/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-graphql/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-graphql/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-graphql/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/query-third-party-api/#post-16038430)
 * Status: resolved