# Twitter API doubt regarding place.fields

**URL:** <https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260>\
**Category:** Help Hub\
**Tags:** api, twitter\
**Created:** [October 20, 2022, 7:26am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260 "2022-10-20T07:26:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 20, 2022, 7:26am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/1 "2022-10-20T07:26:28Z")

</div>

So, I’m using POSTMAN for the first time for Twitter API v2 and I’m getting some details like id, created\_at, search tweets etc. but when I search using place.fields=country, geo or anything related to place.fields it does not showcase any output. Need some help regarding it.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 20, 2022, 8:20am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/2 "2022-10-20T08:20:38Z")

</div>

Hi @avionics-administra7  
Can you share your response body, so that we can see the structure?

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 20, 2022, 9:00am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/3 "2022-10-20T09:00:34Z")

</div>

![Screenshot (547)](https://us1.discourse-cdn.com/getpostman/original/3X/3/5/3553f416665f88b9d899625f27329d319fa30a91.png)  
 ![Screenshot (548)](https://us1.discourse-cdn.com/getpostman/original/3X/0/6/0613ebd8a823ebd0d2ec3b6d5b8e3cd50a77b551.png)  
 ![Screenshot (549)](https://us1.discourse-cdn.com/getpostman/original/3X/5/e/5e61172aa3e348b2a58fe9f86be29cc4bcf9f162.png)  
So, here I gave place.fields as an input but I did not get its output.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 20, 2022, 4:06pm UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/4 "2022-10-20T16:06:38Z")

</div>

> **[Place objects](https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/place)**

Looks like you need to include the following in the request expansions as place is not a field that is returned by default.

```auto
&expansions=geo.place_id

```

It looks like place is actually a child object to the tweet resource.

This then allows you to view child objects related to place.

```auto
&place.fields=

```

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 20, 2022, 8:11pm UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/5 "2022-10-20T20:11:45Z")

</div>

Nope, it’s not working!! I tried beforehand only.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 20, 2022, 9:22pm UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/6 "2022-10-20T21:22:38Z")

</div>

To use ‘place.fields’ you need to add ‘geo.place\_id’ to the ‘expansions’ values, like this;

![image](https://us1.discourse-cdn.com/getpostman/original/3X/2/4/24d5a48e88611465e34d97da19278545f518c8ed.png)

Without;

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/6/76b3c136cf986aaf8a0e28046e952e128987597b.png)

With;

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/a/5ae3d5ca3c348eb72f7e8f721fbe0d219508c2a9.png)

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 21, 2022, 6:13am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/7 "2022-10-21T06:13:26Z")

</div>

![Screenshot (551)](https://us1.discourse-cdn.com/getpostman/original/3X/6/4/64b09a002b538ae0c07e6887bc3b189222afa4d6.png)  
I did try it but it’s still showing the same thing. Is there any other reason why it might not be coming?

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 21, 2022, 6:29am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/8 "2022-10-21T06:29:02Z")

</div>

Thank You, got it!! For some of the tweets not geo-tagged, I think it’s not fetching the values.

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 21, 2022, 10:14am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/9 "2022-10-21T10:14:40Z")

</div>

Need another help!! Do you know how to get data using the BODY? I’m trying to fetch the data using the JSON but it’s not working

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 21, 2022, 10:15am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/10 "2022-10-21T10:15:23Z")

</div>

Can you share what you have tried so that we can understand your requirement?

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 21, 2022, 11:11am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/11 "2022-10-21T11:11:43Z")

</div>

![Screenshot (555)](https://us1.discourse-cdn.com/getpostman/original/3X/6/1/614320f92e7b2aa7131a6576e83c4676cd7d3799.png)

 ![Screenshot (554)](https://us1.discourse-cdn.com/getpostman/original/3X/2/5/25a51cd6afc6b7607117d1600c7e3b140cf70a24.png)  
So, I’ve been trying to search for a number of tweets by passing out queries and also passing the place.fields and expansions but I’m not getting the locations. So, I thought that there might be a way for fetching using the BODY and using raw data (JSON). But I don’t know how to fetch it. So need some help over here!

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 21, 2022, 1:12pm UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/12 "2022-10-21T13:12:25Z")

</div>

I’m not sure if I’m honest …

Is it possible that depending on how the tweet is posted that there may not be a location?

For example; a tweet from a phone would likely have geo-tag but a tweet from a 3rd party like Hootsuit may not publish a location for tweets?

---

<div class="post-metadata">

**Author:** ![avionics-administra7](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@avionics-administra7](https://community.postman.com/u/avionics-administra7)\
**Post date:** [October 22, 2022, 5:29am UTC](https://community.postman.com/t/twitter-api-doubt-regarding-place-fields/40260/13 "2022-10-22T05:29:43Z")

</div>

Yeah, even I’m thinking the same thing. Thanks for all the help!!
